This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!