See Section 11.2 of the Servlet 2.3 API Specification or Section 10.2 of
the Servet 2.2 API Specification.

Then "do" some testing....pun intended ;)



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




> -----Original Message-----
> From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 31, 2003 11:03 AM
> To: Struts Users Mailing List
> Subject: Re: use html:link pass two param
> 
> 
> doesn't this still put 'do' somewhere in the URL?
> 
> Kris Schneider wrote:
> 
> >web.xml:
> >
> ><!-- mapping for ActionServlet -->
> ><servlet-mapping>
> >  <servlet-name>action</servlet-name>
> >  <url-pattern>/do/*</url-pattern>
> ></servlet-mapping>
> >
> >Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:
> >
> >  
> >
> >>How do you go about enabling path mapping v. extension mapping in 
> >>web.xml (or struts-config.xml)?
> >>
> >>James Mitchell wrote:
> >>
> >>    
> >>
> >>>First of all, you should never have to put ".do" any where in your
> >>>application except the web.xml file.
> >>>That way, you change the mapping in one place and it flows 
> to the rest
> >>>of the application.
> >>>
> >>>Here's what I do:
> >>>
> >>>
> >>><%@ page contentType="text/html;charset=UTF-8" language="java" %>
> >>><%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html" %>
> >>><%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
> >>>
> >>>
> >>><jsp:useBean id="userDetailLink" class="java.util.HashMap"/>
> >>>
> >>><c:set target="${userDetailLink}" property="action" 
> value="editUser"/>
> >>><c:set target="${userDetailLink}" property="id" 
> value="${user.id}"/>
> >>>
> >>><html:link action="/manageUsers" name="userDetailLink">
> >>>   Edit this user
> >>></html:link>
> >>>
> >>>
> >>>
> >>>Which produces a link like this:
> >>>
> >>><a 
> href="/app/admin-tool/manageUsers?action=editUser&amp;id=44">Edit
> >>>this user</a>
> >>>
> >>>
> >>>The above example uses path mapping, but if I were using extension
> >>>mapping (*.do), it looks like this:
> >>>
> >>>(with no changes to the source jsp)
> >>>
> >>><a href="/app/manageUsers.do?action=editUser&amp;id=44">Edit this
> >>>user</a>
> >>>
> >>>
> >>>
> >>>--
> >>>James Mitchell
> >>>Software Engineer / Struts Evangelist
> >>>http://www.struts-atlanta.org
> >>>678.910.8017 (c)
> >>>770.822.3359 (h)
> >>>AIM:jmitchtx
> >>>
> >>>
> >>>
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>-----Original Message-----
> >>>>From: javen fang [mailto:[EMAIL PROTECTED] 
> >>>>Sent: Friday, October 31, 2003 1:58 AM
> >>>>To: struts
> >>>>Subject: use html:link pass two param
> >>>>
> >>>>
> >>>>I have a bean list that have two property id / name
> >>>>
> >>>>code:
> >>>>------------------------------------------------------
> >>>>
> >>>><html:link action="next.do" paramId="first"
> >>>>paramName="list" paramProperty="id"> next action
> >>>></html:link>
> >>>>
> >>>>------------------------------------------------------
> >>>>
> >>>>
> >>>>And how can I pass the second parameter name after the
> >>>>action next.do??
> >>>>Thanks.
> >>>>
> >>>>
> >>>>
> >>>>__________________________________________________
> >>>>Do You Yahoo!?
> >>>>Tired of spam?  Yahoo! Mail has the best spam protection around 
> >>>>http://mail.yahoo.com 
> >>>>
> >>>>----------------------------------------------------------
> -----------
> >>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>-----------------------------------------------------------
> ----------
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>-- 
> >>Brice D. Ruth
> >>Sr. IT Analyst
> >>Fiskars Brands, Inc.
> >>    
> >>
> >
> >  
> >
> 
> -- 
> Brice D. Ruth
> Sr. IT Analyst
> Fiskars Brands, Inc.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to