Originally posted by Adeel Ansari:
Tips:
- Use MVC Model 2 architecture. Or atleast use servlet as a controller and JSp as a view.
- Dont mess your JDBC code up with your servlet. Servlet should only care about request/response mechanism.
Answer would be:
you can bind your attributes with your request object, using request.setAttribute(name, value).
Cheers.
I have absolutely no idea what Use MVC Model 2 architecture is.
I have actually never used JSP's I have tried to do request.setAttribute(name,value) but it does not work. Well I actually tried request.setAttribute("name",name)
where the second name is actually a string with there name.
I then tried to do a
dispatcher.forward(request,response)
and on the wifi_menu servlet the only parameter it gets is nxsid
Is this wrong?
[ May 19, 2005: Message edited by: Ben ]