This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JSP and the fly likes request a parameter on the same JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "request a parameter on the same JSP page" Watch "request a parameter on the same JSP page" New topic
Author

request a parameter on the same JSP page

Carlos Marquez
Greenhorn

Joined: Sep 10, 2007
Posts: 13

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

Joined: Jan 10, 2002
Posts: 61981
    
  67

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().


  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: request a parameter on the same JSP page