Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

all getParameter returns null!  RSS feed

 
Anita Wang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to JSP. This should be an easy question but I cannot figure it out and I have read all relevant postings here:
I have a html page that includes a form:
<form action="process.jsp" method="get">
...
Then I have process.jsp which prints out all the values of the fields inside the form using request.getParameter("fieldname"). But for all fields I get null, no matter it is a testbox or a select.
Can anyone tell me why?
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
send the code. It will help to better understand.
 
Anita Wang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I found the problem. It is because I used fieldset tag in my form somehow and I don't know why. But when I delete that tag everything works fine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!