This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 60741
    
  65

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
     
    Similar Threads
    need help in jquery
    Error while running jsp
    Displaying dynamic content on page that resubmits to itself
    dreamweaver & access
    jsp+javamail. how to get the same session with url connection?