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
-
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
://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
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:
c:out value=${USER.username} default=username /
bean:write name=USER property=username/
USER is a user session
bean:write can work
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:
c:out value=${USER.username} default=username
/
bean:write name=USER property=username/
USER
, November 01, 2003 12:14 PM
To: Struts Users Mailing List
Subject: RE: use html:link pass two param
Thank you, James
But even:
c:out value=${USER.username}
default=username
/
bean:write name=USER property=username/
USER is a user session
bean:write can work
If you have the parameters stored in a java.util.Map object, simply
specifying the name of that object as the name attribute to html:link
(without any paramId/paramName/paramProperty attributes, will do the
trick for you.
If your bean list isn't a java.util.Map, you can create one on the fly
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
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
web.xml:
!-- mapping for ActionServlet --
servlet-mapping
servlet-nameaction/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
doesn't this still put 'do' somewhere in the URL?
Kris Schneider wrote:
web.xml:
!-- mapping for ActionServlet --
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/do/*/url-pattern
/servlet-mapping
Quoting Ruth, Brice [EMAIL PROTECTED]:
How do you go about enabling path mapping
-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
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:
html:link action=next.do ...
when he said, you should never have to put .do any where in your
)
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
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
15 matches
Mail list logo