so what is the path under which you would like to access the action?
(like you would typ it into the browser)
we could give you the right mapping
On 2004-07-05 at 19:24:50 -0400, Erik Weber wrote:
> 1) Typo: I meant that my login page is:
>
> http://localhost:8080/Test/login.jsp, not index.jsp.
>
Speaking of newbie tips, I've been banging my head with struts/JSTL for the
past two weeks and discovered this gem today.
<% if (image.trim().length()>0) { %>
...
This lets me grab an object out of a form bean and switch to JSP script
mode so that I can use the full force of Java rather t
Well I have found the answer to the relative URI problem with the
html:img, html:rewrite and html:link tags. Now those are quite useful!
Unfortunately, the O'Reilly Struts book was of no help to me with any of
these matters. If any newbie reads this and wants to get up to speed
quickly, I found
I finally figured it out, thanks to your help.
I was trying to match what the controller servlet was mapped to in my
action parameter to the html:form tag, when in reality, I should have
been doing the opposite. The html:form tag apparently prefixes the
controller path token to whatever action y
okay, before i leave for the day, for path based mapping, you need
something like:
controller
/do/
then all your urls must be like:
localhost/app/do/login
that's how i understand it. you may wanna have look at struts docos for
this parameter.
ATTA
On Jul 5, 2004, at 4:57 PM, Erik Weber wrot
Thanks for helping.
I assume you mean this part:
controller
/
The above code works (hooray), but if I try to change the url pattern to
anything more specific (such as /login, or /login*, or /login/*) I get
the wrong action parameter value . . .
atta-ur rehman wrote:
Okay, now you need to show
Okay. this all i have in my web.xml and it works:
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
2
detail
2
2
action
*.do
hope this helps.
ATTA
On Jul 5, 2004
I should make one more correction. Actually when I mapped the controller
Servlet to "/", the correct action parameter did show up in the form,
and things worked correctly. However, I don't want to use "/" as my
controller mapping -- I would rather do something more specific. But
"/login" and "/
Okay, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do extension
first and then try path mapping in web.xml
ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:
I have tried mapping the controller servlet to all kinds of path
prefixes
I have tried mapping the controller servlet to all kinds of path
prefixes including "/login" and "/login/*" and "/". None of them result
in the correct action parameter in the form. I don't want to use
extension mapping. I want to use path mapping. Is this where the problem is?
1) Typo: I meant that my login page is:
http://localhost:8080/Test/login.jsp, not index.jsp.
2) I am finding that playing around with the servlet mappings in web.xml
is having an effect on what is rendered as the value of the action
parameter, but I still cannot make any sense of it.
If anyone c
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to
ignore the value I specify to the action parameter, and instead,
rewrite the action parameter value to be e
Could someone please tell me what would cause the html:form tag to
ignore the value I specify to the action parameter, and instead, rewrite
the action parameter value to be equal to the context root of the
application?
For example, my web app login page is:
http://localhost:8080/Test/index.jsp
13 matches
Mail list logo