Hi,
I have the following link in my JSP page:
td width=130a href=/servlets/blotter/Contact?page=viewcontactlist
target=rightframe class=linkboldContact List/a/td
I want to mimic the above using Struts JSP tags(I don't want to use a SUBMIT button).
However, I want to call my ActionForm class
-Original Message-
From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 8:24 AM
To: Struts Users Mailing List
Subject: How do you mimic the 'a href' functionality in Struts?
td width=130a
href=/servlets/blotter/Contact?page=viewcontactlist
target
In general, you use the html:link tag
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
For the destination of the link, it takes one of four attributes:
forward, action, href, or page.
The mechanism for specifying a single parameter for the link uses
these attributes: paramId,
]To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject: Re: How do you mimic the 'a
href
At 15:03 +0100 9/9/03, Mehran Zonouzi wrote:
Yes I am going to pass the same param to the link every time.
This is what I have replaced the link with.
I am not too sure if I should be using the href
property to call my ActionForm class.
html:link href=ContactForm paramId=page
]
cc:
Subject: Re: How do you mimic the 'a
href' functionality in Struts?
09/09/03 17:53
i.e.
Do I need to put ContactForm instead of 'contacts' for path...
action path=/contacts
type=com.db.gcp.lemweb.blotter.servlets.ContactAction
name=contactForm
input=/viewcontactlist.jsp
scope=request
/action
No, contacts
The action attribute of the html:link tag and the path attribute
of the action element should be identical.
Note that the value of the paramName attribute (viewcontactlist
in your example) is not a string literal, but rather the name of a
bean in some scope (page, request, session, or
8 matches
Mail list logo