Get your CodeRanch badge!*
The moose likes Servlets and the fly likes Cannot pass parameter to Servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cannot pass parameter to Servlet?" Watch "Cannot pass parameter to Servlet?" New topic
Author

Cannot pass parameter to Servlet?

YuenLian Wu
Ranch Hand

Joined: Nov 16, 2005
Posts: 73
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
Bartender

Joined: Oct 14, 2005
Posts: 18140
    
    8

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

Joined: Jan 10, 2002
Posts: 60059
    
  65

Moved to the Servlets forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Is your servlet even being invoked?
YuenLian Wu
Ranch Hand

Joined: Nov 16, 2005
Posts: 73
yes, it can be invoked !!!
Ganesh Chinni
Greenhorn

Joined: Dec 30, 2005
Posts: 24
Post the servlet code that you are using to get the request parameter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot pass parameter to Servlet?
 
Similar Threads
Servlet Problems
Dispatch VS LookupDispatch
How to Actually UpLoad ?
what's the # btw include , pageContext.include and jsp:include
Problem with scripting-invalid