Struts cannot support relative uri ?
Hi, all. I am fajaven from matrix(www.matrix.org.cn) in China. I wonder it seems like Struts cannot support relative uri. In tomcat 5.0 , my webapp looks like: tomcat/webapps/asales Two files are: tomcat/webapps/asales/pages/left.jsp tomcat/webapps/asales/pages/images/logo.jpg Normally, in left.jsp, I use logo.jpg, like this: but if in left.jsp include struts tags, or it mapping from struts action, then relative uri will fail, and "absolute" uri is required: You know, relative uri cannot be used is not convinient very much. How can I solve this question? Thanks. javen fang from matrix __ 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]
RE: Problem with UTF-8 characters in a mutlipart/form-data encoded form
It's true, although servlet filter is not pure struts method, but it is used to solve character-encoding widely in struts framework. --- Jos開Gustavo_Zagato <[EMAIL PROTECTED]> wrote: > Hi ! > > I don't if it will fit into your needs but, to > handler UTF-8 I > build a serverlet filter with handles all encode / > Decode operations. As > far as I know this approach is not a pure Struts > solution but works > really fine ! > I didn't test with a upload form like yours, but > it抯 a shot ! > > Regards > > Jos?Gustavo Zagato Rosa > System Analyst - Atos Origin > [EMAIL PROTECTED] > > > -Original Message- > From: Paul Barry [mailto:[EMAIL PROTECTED] > Sent: ter鏰-feira, 28 de outubro de 2003 12:07 > To: [EMAIL PROTECTED] > Subject: Problem with UTF-8 characters in a > mutlipart/form-data encoded > form > > I am using Struts 1.1 in an application that needs > to support the UTF-8 > character set. I am using Resin 2.1.10 with > character-encoding="UTF-8", and on most of my forms > this seems to work > just fine. I am having problems with forms that > have to use the multipart/form-data enctype for > handling uploading > files. If I print out the value of a text element > in > an html:form where the enctype is not set at all > (which ends up using > application/x-www-form-urlencoded), using UTF-8 > characters works fine. This is what I get: > > INFO - test.TestAction - The value is: ?> > Here is what the actual HTTP request that gets sent > to the server looks > like: > > --- Start HTTP Request > - > POST /testForm.do HTTP/1.1 > Accept: image/gif, image/x-xbitmap, image/jpeg, > image/pjpeg, > application/x-shockwave-flash, */* > Referer: http://pbdesktop/test.do > Accept-Language: en-us > Content-Type: application/x-www-form-urlencoded > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.0) > Host: pbdesktop > Content-Length: 11 > Connection: Keep-Alive > Cache-Control: no-cache > Cookie: SERVER=op; locale=en_US; > JSESSIONID=aoUCARQpqsLd > > test=%C3%AD > --- End HTTP Request > -- > > But if I modify my html:form to use > enctype="multipart/form-data", I get > this: > > INFO - test.TestAction - The value is: A?> > And the HTTP request looks like this: > > --- Start HTTP Request > - > POST /testForm.do HTTP/1.1 > Accept: image/gif, image/x-xbitmap, image/jpeg, > image/pjpeg, > application/x-shockwave-flash, */* > Referer: http://pbdesktop/test.do > Accept-Language: en-us > Content-Type: multipart/form-data; > boundary=---7d319628600e4 > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.0) > Host: pbdesktop > Content-Length: 141 > Connection: Keep-Alive > Cache-Control: no-cache > Cookie: SERVER=op; locale=en_US; > JSESSIONID=aoUCARQpqsLd > > -7d319628600e4 > Content-Disposition: form-data; name="test" > > 铆 > -7d319628600e4- > --- End HTTP Request > -- > > It looks as if the character is already messed up > before it even gets to > the servlet container. There are messages in > the mailing list archive that discuss this problem, > but I didn't see a > solution. What is the best way to handle UTF-8 > characters in a multipart/form-data encoded form? > > Here is the code that I am testing with: > > /test/test.jsp: > <%@ taglib uri="WEB-INF/taglib/struts-html.tld" > prefix="html" %> > <%@ taglib uri="WEB-INF/taglib/struts-bean.tld" > prefix="bean" %> > > > > enctype="multipart/form-data"> > > > > > > > Relavent parts of struts-config.xml: > > > > type="test.TestActionForm" /> > > > > type="org.apache.struts.actions.ForwardAction" > parameter="/test/test.jsp" /> > name="testForm" > input="/test.do" scope="request" /> > > > /> > > > > test.TestAction: > package test; > > import javax.servlet.http.*; > import org.apache.commons.logging.*; > import org.apache.struts.action.*; > > public class TestAction extends Action { > private static final Log log = > LogFactory.getLog(TestAction.class); > > public ActionForward execute( > ActionMapping mapping, > ActionForm pform, > HttpServletRequest request, > HttpServletResponse response) > throws Exception { > TestActionForm form = (TestActionForm)pform; > log.info("The value is: "+form.getTest()); > return null; > } > } > > test.TestActionForm: > package test; > > import org.apache.struts.action.ActionForm; > > public class TestActionForm extends ActionForm { > private String test; > publ
Re: Struts cannot support relative uri ?
>but if in left.jsp include struts tags, or it mapping >from struts action, then relative uri will fail, and >"absolute" uri is required: > If in this condition, I do like this: then html is : "http:/localhost/images/logo.jsp" so I think "asales/pages/" is required. --- "Ruth, Brice" <[EMAIL PROTECTED]> wrote: > If relative URIs work or don't work is dependent on > the HTML being > produced, more than anything else, since its the > browser that then has > to request the correct image from the server. > > What is the HTML being produced in the cases where > you don't see it working? > > javen fang wrote: > > >Hi, all. I am fajaven from > matrix(www.matrix.org.cn) > >in China. > > > >I wonder it seems like Struts cannot support > relative > >uri. > > > >In tomcat 5.0 , my webapp looks like: > >tomcat/webapps/asales > > > >Two files are: > >tomcat/webapps/asales/pages/left.jsp > >tomcat/webapps/asales/pages/images/logo.jpg > > > >Normally, in left.jsp, I use logo.jpg, like this: > > > > > >but if in left.jsp include struts tags, or it > mapping > >from struts action, then relative uri will fail, > and > >"absolute" uri is required: > > > > > >You know, relative uri cannot be used is not > >convinient very much. > > > >How can I solve this question? > > > >Thanks. > > > >javen fang from matrix > > > >__ > >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] > > > > > > > > -- > Brice D. Ruth > Sr. IT Analyst > Fiskars Brands, Inc. > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ 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]
Re: Struts cannot support relative uri ?
Thanks very much. I lost this tag: And so relative uri is OK. thanks... --- George Steimer <[EMAIL PROTECTED]> wrote: > Do you have a tag within your html > element? > > > Hi, all. I am fajaven from > matrix(www.matrix.org.cn) > > in China. > > > > I wonder it seems like Struts cannot support > relative > > uri. > > > > In tomcat 5.0 , my webapp looks like: > > tomcat/webapps/asales > > > > Two files are: > > tomcat/webapps/asales/pages/left.jsp > > tomcat/webapps/asales/pages/images/logo.jpg > > > > Normally, in left.jsp, I use logo.jpg, like this: > > > > > > but if in left.jsp include struts tags, or it > mapping > > from struts action, then relative uri will fail, > and > > "absolute" uri is required: > > > > > > You know, relative uri cannot be used is not > > convinient very much. > > > > How can I solve this question? > > > > Thanks. > > > > javen fang from matrix > > > > __ > > 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] > __ 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]
use html:link pass two param
I have a bean list that have two property id / name code: -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Iterating List of Lists
Where is tag from??? Your own taglib? --- "Choopong C." <[EMAIL PROTECTED]> wrote: > Try like this > > > name="organizations"> > > >property="title"/> >property="items"> > > - property="title"/> > > > > > > > > > > >From: "Chris Gastin" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >Subject: Iterating List of Lists > >Date: Thu, 30 Oct 2003 21:55:53 -0600 > > > >I have List of Lists of DataObjects. I want to > iterate through that List of > >Lists to get access to the Data Object, where I > will print the values of > >the > >attributes on the data object. I have the outer > loop working, but I don't > >understand how to get the Data out of the list in > the inner loop. > > > >This is my latest attempt: > > > > scope="request"> > > collection="list"> > > name="data" property="word"/> - > > property="definition"/> > > > > > > > > > >- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > _ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ 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]
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: ... Linkman My container is tomcat5.0 --- Kris Schneider <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>: > > > doesn't this still put 'do' somewhere in the URL? > > > > Kris Schneider wrote: > > > > >web.xml: > > > > > > > > > > > > action > > > /do/* > > > > > > > > >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"%> > > >>> > > >>> > > >>> 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:[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: > > > >>>>-- > > >>>> > > >>>> > >>>>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: > [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. > > -- > Kris Schneider <mailto:[EMAIL PROTECTED]> > D.O.Tech <http://www.dotech.com/> > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > === message truncated === __ 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]
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: ... Linkman My container is tomcat5.0 --- Kris Schneider <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>: > > > doesn't this still put 'do' somewhere in the URL? > > > > Kris Schneider wrote: > > > > >web.xml: > > > > > > > > > > > > action > > > /do/* > > > > > > > > >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"%> > > >>> > > >>> > > >>> 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:[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: > > > >>>>-- > > >>>> > > >>>> > >>>>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: > [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. > > -- > Kris Schneider <mailto:[EMAIL PROTECTED]> > D.O.Tech <http://www.dotech.com/> > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > === message truncated === __ 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]
RE: use html:link pass two param
Thank you, James But even: USER is a user session can work,and prints myname can not work, and prints ${USER.username} why ??? I seems like my JSTL does not work rightly. tomcat 5.0 can support jsp2.0 and jstl 1.1 --- James Mitchell <[EMAIL PROTECTED]> wrote: > Not sure about the error, but you aren't referencing > the bean properties > properly. > > > > ... > value="list.id"/> > ^ > > ...and... > > value="list.company"/> > ^ > > 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:[EMAIL PROTECTED] > > > 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>: > > > > > > > doesn't this still put 'do' somewhere in the > URL? > > > > > > > > Kris Schneider wrote: > > > > > > > > >web.xml: > > > > > > > > > > > > > > > > > > > > action > > > > > /do/* > > > > > > > > > > > > > > >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"%> > > > > >>> > > > > >>> > > > > >>> > > class="java.util.HashMap"/> > > > > >>> > > > > >>> > > property="action" value="editUser"/> > > > > >>> property="id" > > > 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 > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > === message truncated === __ 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]
RE: use html:link pass two param
in web.xml /tags/struts-logic /WEB-INF/tld/struts-logic.tld /tags/core /WEB-INF/tld/c.tld in jsp file: <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <%@ taglib uri="/tags/core" prefix="c" %> tags can work rightly. And I use IDE idea it will check if this style is not right. And also, when run it does not prints error that say he does not know. I wonder --- James Mitchell <[EMAIL PROTECTED]> wrote: > Do you have the directive at the top? > > <%@ taglib uri="http://java.sun.com/jstl/core"; > prefix="c"%> > > > > -- > 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: Saturday, November 01, 2003 12:14 PM > > To: Struts Users Mailing List > > Subject: RE: use html:link pass two param > > > > > > Thank you, James > > > > But even: > > > > /> > > > > USER is a user session > > can work,and prints myname > > can not work, and prints > ${USER.username} > > > > why ??? > > I seems like my JSTL does not work rightly. > > > > tomcat 5.0 can support jsp2.0 and jstl 1.1 > > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > Not sure about the error, but you aren't > referencing > > > the bean properties > > > properly. > > > > > > > > > class="java.util.HashMap"/> > > > ... > > > > > value="list.id"/> > > > ^ > > > > > > ...and... > > > > > > > > value="list.company"/> > > > ^ > > > > > > 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:[EMAIL PROTECTED] > > > > > > > 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: > > > > class="java.util.HashMap"/> > > > > ... > > > >> > > value="list.id"/> > > > >> > > value="list.company"/> > > > > > > > name="cus">Linkman > > > > > > > > My container is tomcat5.0 > > > > > > > > > > > > > > > > > > > > --- Kris Schneider <[EMAIL PROTECTED]> 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 re
RE: use html:link pass two param
And I change uri to uri="http://java.sun.com/jstl/core"; in web.xml and jsp file, the result is same. I am so downcast that where is the matter. --- javen fang <[EMAIL PROTECTED]> wrote: > in web.xml > > /tags/struts-logic > > /WEB-INF/tld/struts-logic.tld > > > /tags/core > > /WEB-INF/tld/c.tld > > > in jsp file: > <%@ taglib uri="/tags/struts-logic" prefix="logic" > %> > <%@ taglib uri="/tags/core" prefix="c" %> > > tags can work rightly. > And I use IDE idea it will check if this style is > not > right. > > And also, when run it does not prints error that say > > he does not know. > > I wonder > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > Do you have the directive at the top? > > > > <%@ taglib uri="http://java.sun.com/jstl/core"; > > prefix="c"%> > > > > > > > > -- > > 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: Saturday, November 01, 2003 12:14 PM > > > To: Struts Users Mailing List > > > Subject: RE: use html:link pass two param > > > > > > > > > Thank you, James > > > > > > But even: > > > > > > default="username" > > /> > > > > > > USER is a user session > > > can work,and prints myname > > > can not work, and prints > > ${USER.username} > > > > > > why ??? > > > I seems like my JSTL does not work rightly. > > > > > > tomcat 5.0 can support jsp2.0 and jstl 1.1 > > > > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > > Not sure about the error, but you aren't > > referencing > > > > the bean properties > > > > properly. > > > > > > > > > > > > > class="java.util.HashMap"/> > > > > ... > > > > > > > value="list.id"/> > > > > ^ > > > > > > > > ...and... > > > > > > > > > > > value="list.company"/> > > > > ^ > > > > > > > > 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:[EMAIL PROTECTED] > > > > > > > > > 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: > > > > > > class="java.util.HashMap"/> > > > > > ... > > > > >> > > > value="list.id"/> > > > > >> > > > value="list.company"/> > > > > > > > > > name="cus">Linkman > > > > > > > > > > My container is tomcat5.0 > > > > > > > > > > > > > > > > > > > > > > > > > --- Kris Schneider <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>: > > > > > > > > > > > > > doesn't this still put 'do' somewhere in > > the > > > > URL? > > > > > > > > > > > > > > Kris Schneider wrote: > > > > > > > > > > > > > > >web.xml: > > > > > > > > > > > > > > > > > > > > > > > > > === message truncated === __ 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]
why jstl does not work rightly
hi, all USER is a user session can work,and prints myname can not work, and prints ${USER.username} Because of the output ${USER.username} , my config about JSTL may be right. and now , why it does not work rightly my container is tomcat 5.0 thanks a lot. javen __ 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]
Re: Help with framesets
your frames have names: header / left / right so when you action mapping, you may use target tag. Example, if left , an action is a query data,and view it in right,just: target = right. form and href both have target attribute. Good luck. javen --- Vijay Kandy <[EMAIL PROTECTED]> wrote: > Hello, > > Could some one point me to a frameset based web > application or war file? I > am having trouble understanding the flow in a > frameset situation. I am > trying to redesign an existing non struts based > webapp. The current layout > is that there is frameset within frameset containing > "menu" and "content > area" as frames, like so: > > topmargin="0" > leftmargin="0" marginheight="0" marginwidth="0"> > scrolling=no noresize > action="header.do"/> > frameborder=0> >action="menu.do"/> >action="content.do"/> > > > > I am not sure how to forward actions now. I will be > grateful for any help. > > -Vijay > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ 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]
RE: Help with framesets
left have a query: then view the result in the rigth content frame. javen --- Vijay Kandy <[EMAIL PROTECTED]> wrote: > Javen, > > Thank you for your response. So you are saying > tag in > struts-config.xml has a "target" attribute or does > it go in the JSP? I > looked in the struts-config.dtd but couldnt find > "target". > > If its not too much to ask, could you explain with a > sample action? > > --Vijay > > -Original Message- > From: javen fang [mailto:[EMAIL PROTECTED] > Sent: Monday, November 03, 2003 11:16 AM > To: Struts Users Mailing List > Subject: Re: Help with framesets > > > your frames have names: header / left / right > > so when you action mapping, you may use target tag. > > Example, if left , an action is a query data,and > view > it in right,just: > > target = right. > > form and href both have target attribute. > > Good luck. > javen > > > --- Vijay Kandy <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Could some one point me to a frameset based web > > application or war file? I > > am having trouble understanding the flow in a > > frameset situation. I am > > trying to redesign an existing non struts based > > webapp. The current layout > > is that there is frameset within frameset > containing > > "menu" and "content > > area" as frames, like so: > > > > framespacing="0" > > topmargin="0" > > leftmargin="0" marginheight="0" marginwidth="0"> > > > scrolling=no noresize > > action="header.do"/> > > > frameborder=0> > >> action="menu.do"/> > >frameName="right" > > action="content.do"/> > > > > > > > > I am not sure how to forward actions now. I will > be > > grateful for any help. > > > > -Vijay > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __ > 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] > __ 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]
why jstl does not work rightly
hi, all USER is a user session can work,and prints myname can not work, and prints ${USER.username} Because of the output ${USER.username} , my config about JSTL may be right. and now , why it does not work rightly my container is tomcat 5.0 thanks a lot. javen = ## javen fang from china __ 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]