Not sure about the error, but you aren't referencing the bean properties properly. ... ^^^^^^^^^ ...and... ^^^^^^^^^^^^^ When referencing dynamic properties with JSTL, be sure to use ${} syntax. Try doing this: value="${list.id}" -- 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:fajaven2000@yahoo.com.cn] > Sent: Saturday, November 01, 2003 10:45 AM > To: Struts Users Mailing List > Subject: Re: use html:link pass two param > > > Thanks all, thanks James Mitchell! > > I use the method James Mitchell tell me. > And I read JSTL Spec and tutorial in javaword.com > http://www.javaworld.com/javaworld/jw-02-2003/jw-0228-jstl-p3.html > > But I encouter a error,and I don't know why this > occur: > > javax.servlet.ServletException: Invalid property in > : "cid" > > These are my code: > > ... > value="list.id"/> > value="list.company"/> > name="cus">Linkman > > My container is tomcat5.0 > > > > > --- Kris Schneider wrote: > > You can call it whatever you want - "admin-tool" > > from James' example. The > > difference is this: > > > > /app/do/manageUsers > > > > vs. this: > > > > /app/manageUsers.do > > > > I think James was referring to the use of: > > > > > > > > when he said, "you should never have to put ".do" > > any where in your > > application..." You really only need to do: > > > > > > > > which will work regardless of how you do your > > servlet mapping. > > > > Quoting "Ruth, Brice" : > > > > > doesn't this still put 'do' somewhere in the URL? > > > > > > Kris Schneider wrote: > > > > > > >web.xml: > > > > > > > > > > > > > > > > action > > > > /do/* > > > > > > > > > > > >Quoting "Ruth, Brice" : > > > > > > > > > > > > > > > >>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"%> > > > >>> > > > >>> > > > >>> > class="java.util.HashMap"/> > > > >>> > > > >>> > property="action" value="editUser"/> > > > >>> > value="${user.id}"/> > > > >>> > > > >>> > name="userDetailLink"> > > > >>> Edit this user > > > >>> > > > >>> > > > >>> > > > >>> > > > >>>Which produces a link like this: > > > >>> > > > >>> > > href="/app/admin-tool/manageUsers?action=editUser&id=44">Edit > > > >>>this user > > > >>> > > > >>> > > > >>>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) > > > >>> > > > >>> > > href="/app/manageUsers.do?action=editUser&id=44">Edit > > this > > > >>>user > > > >>> > > > >>> > > > >>> > > > >>>-- > > > >>>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:fajaven2000@yahoo.com.cn] > > > >>>>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: > > > > > > >>>>------------------------------------------------------ > > > >>>> > > > >>>> > > >>>>paramName="list" paramProperty="id"> next > > action > > > >>>> > > > >>>> > > > > > > >>>>------------------------------------------------------ > > > >>>> > > > >>>> > > > >>>>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: > > struts-user-unsubscribe@jakarta.apache.org > > > >>>>For additional commands, e-mail: > > struts-user-help@jakarta.apache.org > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > > > > > >>>----------------------------------------------------------- > ---------- > > > >>>To unsubscribe, e-mail: > > struts-user-unsubscribe@jakarta.apache.org > > > >>>For additional commands, e-mail: > > struts-user-help@jakarta.apache.org > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>-- > > > >>Brice D. Ruth > > > >>Sr. IT Analyst > > > >>Fiskars Brands, Inc. > > > >> > > > >> > > > > > > > > > > > > > > > > > > -- > > > Brice D. Ruth > > > Sr. IT Analyst > > > Fiskars Brands, Inc. > > > > -- > > Kris Schneider > > D.O.Tech > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > struts-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > > struts-user-help@jakarta.apache.org > > > === message truncated === > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org