Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request a parameter on the same JSP page

 
Carlos Marquez
Greenhorn
Posts: 13
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

Im having a trouble here trying to get a parameter within my jsp page, here's the code


The "xAction" parameter says is null and if I use the equals function to compare strings says that the line cannot be compiled, I've done this before, I don't know why this code doesn't work
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two biggies:
  • Java in a JSP is a big no-no. Refactor the Java code out into a servlet or Java class.
  • Strings must be compared with equals().
  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic