• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP

 
shanthisri mocherla
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi freinds,
I'm trying to create a JSP that will produce this output.
The friends who share your hobby of extreme knitting are:Fred, Pradeep,Philippe
Here the word "extreme knitting" should come from a form request parameter.
The three names(Fred etc) come from an ArrayList request attribute called "names".
Actually the JSP code is given in the HFSJ book.But I'm trying to write the servlet.I'm not sure whether my servlet code is correct or not?
I'm getting error when I'm working on this.

The Error is :/HobbyPage.do not available
In my HobbyPage.html I've given the action = "HobbyPage.do".
In DD,servlet-mapping,I've given the url-pattern as /HobbyPage.do

servlet(HobbySelect.java) code which dispatches the attribute to the Hobby.jsp.

jsp code(Hobby.jsp)


I've created another class HobbyExpert.java(as model) which I've used in the servlet.

Can anybody please give me the correct code for this servlet.
Thank you very much in advance
shanthi
[ December 01, 2005: Message edited by: shanthisri mocherla ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you write it /Hobbypage.do instead of /HobbyPage.do ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic