• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you write it /Hobbypage.do instead of /HobbyPage.do ?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic