You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arnaud Gadby <ar...@eileo.com> on 2003/04/22 18:29:02 UTC
forms and modules
Hi !
I want to display myModule/myJsp
In this JSP, I've got a <html:form action="login"> tag.
As the "login" action is in the default module and not in myModule, I've
got a "Cannot retrieve mapping for action /login" error when displaying
myJsp
How can I specify the path to login (action="../login" does not work)
Arnaud
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
nested:iterator and JavaScript
Posted by ashokd <as...@visualsoft-tech.com>.
Hi,
I am using nested iterators to display ArrayList of ValueObjects as Forms.
User can update any row and finally he will click update button.
My Problem:
How to identify the property in a nested:iterator in JavaScript.
I tried like below even though it is not working. Is any help on this.
document.formName.nestedIterator[0].propertyName.value
Thanks & Regards,
Ashok.D
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: forms and modules
Posted by Patrick Refondini <pa...@pobox.com>.
Arnaud Gadby wrote:
>Hi !
>
>I want to display myModule/myJsp
>
>In this JSP, I've got a <html:form action="login"> tag.
>
>As the "login" action is in the default module and not in myModule, I've
>got a "Cannot retrieve mapping for action /login" error when displaying
>myJsp
>
>How can I specify the path to login (action="../login" does not work)
>
>Arnaud
>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
I had a similar requirement with a user profile available to users
through several modules and solved it this way:
In the struts config file for the default module:
<action path="/profile"
forward="/profile.jsp" />
In the struts config file for the any other module (using the SwitchAction):
<!-- Module switching action -->
<action path="/service"
type="org.apache.struts.actions.SwitchAction"/>
<action name="profile"
path="/service.extentis?prefix=&page=/profile.extentis" />
Then from where ever you are (default, mod1, mod2, ...) you can use:
<html:link action="profile" >...</html:link>
to create an html link on your profile, for instance.
Note: prefix=
switches you to the default module, prefix=/mod1 would do it for module
mod1.
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org