How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
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

RE: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread James Childers
-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

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
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,

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
]To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: How do you mimic the 'a href

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
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

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
] cc: Subject: Re: How do you mimic the 'a href' functionality in Struts? 09/09/03 17:53

RE: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Slattery, Tim - BLS
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

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
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