wood burning stoves 2.0*
The moose likes JSP and the fly likes parameter value should be null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "parameter value should be null" Watch "parameter value should be null" New topic
Author

parameter value should be null

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
member_page.jsp


1. I call this jsp like: member_page.jsp?foo=1
1.1 I can read that foo ok.

2. click submit button
2.1 reading foo returns "member_page.jsp", instead of null ?


Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

You can't use getParameter() (or similar methods) with a multi-part form. I assume you are doing a file upload? If so, whatever file upload package you are using will have a means to get the parameters.


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

Joined: Jan 10, 2002
Posts: 60773
    
  65

P.S. Submitting a form to a JSP? Should be to a servlet.
 
Consider Paul's rocket mass heater.
 
subject: parameter value should be null
 
Similar Threads
scope of setAttribute() and getAttribute()
String Code
Submit button
Doubt about Unknown Attributes in EL
Submit and Excel buttons and my Jsp