On Thu, 2002-12-05 at 12:44, Konstantin Priblouda wrote:
> > -then the first one is ignored. 
> > 
> > Is this a bug or a feature?
> 
> It's java grammar. 

Ok, I guess you refer to "A doc comment is written in HTML and must
precede a class, field, constructor or method declaration." from the
javadoc documentation.

I tried to separate the two doc tag blocks because I have a single
struts action class, which are used by multiple action definitions, and
if I just stick them all together before the class statement, the local
forward statements are defined for all the actions, not just the
preceeding action. 

So for the definition I gave, I get the following in my
struts-config.xml file;

<action path="/addInvestor"
type="com.something.admin.InvestorAdminAction" name="investorForm"
scope="request" input="/addInvestor.jsp" parameter="addInvestor"
unknown="false" validate="true">
<forward name="view" path="/listInvestors.do" redirect="true"/>
<forward name="view" path="/listInvestors.do" redirect="true"/>
<forward name="edit" path="/updateInvestor.jsp" redirect="false"/>
</action>
-
<action path="/listInvestors"
type="com.something.admin.InvestorAdminAction" name="investorForm"
scope="request" parameter="listInvestors" unknown="false"
validate="false">
<forward name="view" path="/listInvestors.do" redirect="true"/>
<forward name="view" path="/listInvestors.do" redirect="true"/>
<forward name="edit" path="/updateInvestor.jsp" redirect="false"/>
</action>

Is there a way of defining local forwards only for the preceeding action
definition, without putting them in different files?


-- 
Torgeir Veimo <[EMAIL PROTECTED]>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to