Ben Murphy

Greenhorn
+ Follow
since May 18, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ben Murphy

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 ]
18 years ago
OK I am new and am still learning so if you have any tips or suggestions please tell me
THis is what I currently have

what I would like to do is find a way to send this to /wifi_menu without having all the stuff on the end of the URL.
I have tried using a dispatcher but it would never send the name /wifi_menu would never even see the attribute there.
I am doing this with the extra at the end of the url many times in other places and I really do not like it.
THank you in advance
Ben

[ May 18, 2005: Message edited by: Ben ]
[ May 19, 2005: Message edited by: Ben ]
18 years ago