permaculture playing cards
The moose likes Struts and the fly likes use action without actionMapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "use action without actionMapping" Watch "use action without actionMapping" New topic

use action without actionMapping

jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
normally I associate an action with a form-bean in the action-mapping,
can I just call an action without providing an action-mapping? or can I associate an action with a path but without a bean associated?
thanks in advance
jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
Sorry I found out that I can use an action-mapping without specifying a form-bean... so my question is answered. another question arises:

can I use global-forward in a local forward's path?
for example:
<global-forwards >
<forward name="logon" path="/Login.jsp"/>


<action path="/view" type="com.xxxxxx">
<forward name="success" path="/logon"/>

the way it is now, it doesn't work,
does the forward path needs to be the actual path to the file name?
thanks in advance
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
The path of the forward atg should be either another action r a cant look for anothe forward
I agree. Here's the link:
subject: use action without actionMapping
It's not a secret anymore!