This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot pass parameter to Servlet?

 
YuenLian Wu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am currently encountering some unexpected errors from jsp and servlet. I hope I can get some help from you guys.

I have a jsp that includes a html file, the html file contains serveral hyper links as shown in the below



What I am tring to do is to pass the "action_type" parameter from html to a Servlet class. However, I couldn't get back this parameter from the servlet class, and I don't know why.

I am getting dizzy and crazy about this, I hope you guys can solve my problem so that I can get a good sleep tonight.

Myriad Thanks

Transistor
[ April 19, 2006: Message edited by: Bear Bibeault ]
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us the code that you use in your servlet class? The code that fails to get the parameter?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Servlets forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your servlet even being invoked?
 
YuenLian Wu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it can be invoked !!!
 
Ganesh Chinni
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the servlet code that you are using to get the request parameter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic