File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  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: 60046
    
  65

P.S. Submitting a form to a JSP? Should be to a servlet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parameter value should be null
 
Similar Threads
String Code
Doubt about Unknown Attributes in EL
Submit button
Submit and Excel buttons and my Jsp
scope of setAttribute() and getAttribute()