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

Getting error on response.getParameter("");  RSS feed

 
Joshua Ebarvia
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am trying to build/do my first JSP page (submitting a form), I am encountering
an error about the response.getParameter()
I'm getting a cannot find symbol for all the lines with response.getParameter().

Please help,

Here is my code:
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apart from the fact that scriptlets are not commonly used these days, where do you get the error exactly ? In an editor ? In a web browser ?
 
Joshua Ebarvia
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK guys, I found out my error.

It should have been request.getParameter instead of response.getParameter

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take to heart the other advice you got. Putting Java code and scriptlets in a JSP is a very poor practice that has been discredited for 8 years now.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!