This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts and request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts and request" Watch "Struts and request" New topic
Author

Struts and request

Georg Joo
Ranch Hand

Joined: Feb 24, 2004
Posts: 49
Hi
I will give an URL some parameter. But I do not get this parameter in the action.

In JSP:
<bean efine id="mitarbeiterID" value="joo"/>
<html:link page="/MitarbeiterDelete.do?&action=Action_delete" paramId="mitarbeiterID" >DEL
</html:link>

In action:
request.getParameter("mitarbeiterID")

What is wrong in this code ?

Thanks

Georg


SCJP, SCWCD, SCBCD<br /> <br />Vienna, Austria
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the Web Application Frameworks forum...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

Georg,
You need to set the paramName or paramValue attribute to go with the paramId. Otherwise, you are creating a parameter with the value null.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts and request
 
Similar Threads
use html:link pass two param
Struts html:link problem
dynamic hyperlink (struts & ?JSTL)
can i call DispatchAction from global forward
Dispatch Action Issue/Exception