[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Struts Tags Include?
From:       Eric Rank <ericrank () lo-fi ! net>
Date:       2007-04-30 22:54:56
Message-ID: 0304BAF4-2942-4A31-9E97-02E59B18E6C2 () lo-fi ! net
[Download RAW message or body]

It looks like the only required attribute is the "name" for the  
<s:action > tag.

Somthing to note, as Dave Newton alluded to, is that if you omit the  
"executeResult" attribute, you will have passively chosen to make  
that attribute 'false'. When this happens, the action you specified  
in the "name" attribute will not render anything on your page, but  
rather, it will put the action's properties into the request scope so  
you can access them.

If you need the <s:action> tag to render the result on your page as  
if it were included, the correct syntax is:

<s:action name="includedAction" executeResult="true" />

Eric


On Apr 30, 2007, at 3:43 PM, Martin Gainty wrote:

> should the jasper compiler throw an exception when this required  
> attribute is missing?
> Thanks
> Martin--
> This email message and any files transmitted with it contain  
> confidential
> information intended only for the person(s) to whom this email  
> message is
> addressed.  If you have received this email message in error,  
> please notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message ----- From: "Eric Rank" <ericrank@lo-fi.net>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Monday, April 30, 2007 3:35 PM
> Subject: Re: Struts Tags Include?
>
>
>> I have to admit, I haven't used the <s:action ...  > tag, but I  
>> think  it might do what you want.
>>
>> instead of :
>>
>> <s:url action="listUserAction" id="userlist />
>> <s:include value="%{userlist}" />
>>
>> try this:
>>
>> <s:action name="listUserAction" />
>>
>> More info: http://struts.apache.org/2.x/docs/action.html
>>
>>
>> -----------------------
>> Eric Rank

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic