facebook

Struts Tutorial

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #206794 Reply

    mabehr
    Member

    Hi,

    I think there may be a small error with the tutorial at
    http://www.myeclipseide.com/images/tutorials/StrutsTutorial.htm

    The JSP that you list uses the getAttribute(“name”) command, but I think that it’s really getParameter(“name”). Following the tutorial step by step did *not* in fact leave me with a working struts example…

    -Mike

    #206798

    Riyad Kalla
    Member

    Mike,
    getAttribute is the correct call as the action sets the ‘name’ value in the request attributes. You use getParameter for query string parameters, of which there are none in that application.

    Can you paste your code from your action (the execute method) and your JSP page where you try and print out the value, and we’ll have a look?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Struts Tutorial

You must be logged in to post in the forum log in