Hi Jan,

Try :

html:form action="/account/Login.do" ....

Regards,

Michael :-)

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 11:14 PM
Subject: problem using html:form in different struts-modules


Hi,

i want to use seperate modules in my application (i.e. general, account,
registration ... ).

At the bottom of my website is a login panel ( username and password
field ).

I used the html:form jsp-tag to render the login panel, but i seems like the
html:form tag cannot lookup action mappings from different modules.

example:

default config contains:

action path="/ShowHome.do"
action path="/ShowFaq.do"

config/account contains:

action path="/Login.do"
action path="/ShowAccount.do"

the html:form tag at the bottom of my website is defined as

html:form action="/Login.do"

when i call http://domain/account/ShowAccount.do in my browser the
login-panel is rendered well, but calling http://domain/ShowHome.do results
in an error:

[ServletException in:/jsp/tiles/general/footer.jsp] Cannot retrieve mapping
for action /Login'

First i thought i have to add the modules name as prefix to the action like

html:form action="/account/Login.do"

but these neither renders the html:form tag in "default-config" nor in
"account-config" actions.

Has anyone experienced the same problem ?

It would be great if someone could help me.

Jan Zimmek



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

Reply via email to