Erik,

Cheers! Works flawlessly now.

Regards,
Paul

-----Original Message-----
From: Eric Rank [mailto:[EMAIL PROTECTED]
Sent: Monday, April 30, 2007 3:35 PM
To: Struts Users Mailing List
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



On Apr 30, 2007, at 12:47 PM, Paul wrote:

> Hey Dave,
>
> Yup just realized that. Thanks. I changed it to the following:
> <s:url action="listUserAction" id="userlist" includeContext="false" />
>
> I no longer have the double {project}s but unfortunately still have
> the same error with the include:
>
> "The requested resource (/{project}/listUserAction.do) is not  
> available."
>
> Regards,
> Paul
>
> -----Original Message-----
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 30, 2007 2:39 PM
> To: Struts Users Mailing List;Paul
> Subject: Re: Struts Tags Include?
>
> --- Paul <[EMAIL PROTECTED]> wrote:
>> In one of my JSPs I declare:  <s:url
>> action="listUserAction" id="userlist"/>
>>
>> Shouldn't I then be able to include the output from
>> the above via:
>>
>> <s:include value="%{userlist}"/> ?
>>
>> It keeps dumping "requested resource
>> (/{project}/{project}/listUserAction.do) is not
>> available".
>
> I believe <s:include.../> adds the context name to the
> url, hence the doubled {project}s.
>
> Someone else will chime in, but in the meantime you
> could, I suppose, just put the action URL in (with
> .do, without context) and see if that works.
>
> d.


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




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

Reply via email to