• 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

servlets + jsp

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
i am creating an application using jsp & servlets...In my application,i need to capture the input details from two jsp pages..so i use session object ..Initially i capture the data from the first jsp using javabean and redirect to the servlet to second jsp and get the secong page details in second servlet and redirect the second servlet to the output jsp..
here in jsp(i call the servlet1 in action tag of jsp1 & servlet2 in action tag of jsp2)
my problem is:jsp pages are not calling the corresponding servlet and processing)
can anybody help??
thanks
 
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
What did you set the action of the forms to ?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
If it is not calling the expected servlet, where it is getting submitted or is it throwing some kind of exception. Throw some more light on our problem.
let me know.

Regards
Makarand
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

Usually the session objects wont be working consistently, if you are switching between different context paths. For example if you are using tomcat5.5 and didn't deploy your application, then you should use different context paths(servlets-examples and jsp-examples). That could create problems in your application.
 
Did you miss me? Did you miss this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic