You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Carr <ja...@gmail.com> on 2008/07/28 21:41:43 UTC
[s2] using ognl for iterator value
I have a method that takes a string arg and returns a list. the object
is accessible from the action.
how can I pass a value accessible on my page to the method and use the
result in an iterator?
thanks,
james
On 7/28/08, dynamicd <dh...@gmail.com> wrote:
>
> Hi,
>
> I am new to Struts2 and I am having a problem displaying content with IE. It
> works fine in Firefox.
> I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax tags
> for display
>
> I have a parent tabbed panel and a child tabbed panel.
> Once I login everything works fine however after a few clicks around I get
> the following error.
>
> Error loading
> '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK)
>
> I am not sure why it is working when I log in and not after a few clicks.
> Again it works as expected in Firefox.
>
> Myjsp looks like this
>
> Parent tab has the following tab
>
> <authz:authorize ifAnyGranted="ROLE_ADMINISTRATOR"> /** this is for the
> Acegi stuff */
> <s:url id="listOM" value="/Dashboard/ViewManagedEntities.action" />
> <s:div
> id="OM"
> label ="Operations Manager"
> theme="ajax"
> href="%{listOM}"
> autoStart="false"
> refreshOnShow="true"
> errorText="Unable to retrieve data!">
> </s:div>
> </authz:authorize>
>
> This will get the child jsp which is below which is also tabbed panel
>
>
> <s:head theme="ajax" debug="true"/>
> <s:div id="OMpage">
> <s:tabbedPanel id="insideOMTab" selectedTab="allOM">
>
> <s:url id="allOM" action="ViewOMTable.action" />
> <s:div
> id="allOM"
> label ="LIST"
> theme="ajax"
> href="%{allOM}"
> autoStart= "false"
> refreshOnShow="true"
> >
> </s:div>
>
>
> <s:url id="addOM" action="showaddOMform" />
> <s:div
> id="addOM"
> label ="ADD"
> theme="ajax"
> href="%{addOM}"
> autoStart= "false"
> refreshOnShow="true"
> >
> </s:div>
>
> </s:tabbedPanel>
>
> </s:div>
>
>
> Any help is greatly appreciated
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Strtus2-tags-IE-issue-error-loading-page-200-ok-tp18691505p18691505.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [s2] using ognl for iterator value
Posted by Paweł Wielgus <po...@gmail.com>.
Hi,
have You tried <s:property value="myMethod('string')"/>?
Best gretings,
Pawel Wielgus.
On 28/07/2008, James Carr <ja...@gmail.com> wrote:
> I have a method that takes a string arg and returns a list. the object
> is accessible from the action.
>
> how can I pass a value accessible on my page to the method and use the
> result in an iterator?
>
> thanks,
> james
>
> On 7/28/08, dynamicd <dh...@gmail.com> wrote:
>>
>> Hi,
>>
>> I am new to Struts2 and I am having a problem displaying content with IE.
>> It
>> works fine in Firefox.
>> I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax
>> tags
>> for display
>>
>> I have a parent tabbed panel and a child tabbed panel.
>> Once I login everything works fine however after a few clicks around I get
>> the following error.
>>
>> Error loading
>> '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK)
>>
>> I am not sure why it is working when I log in and not after a few clicks.
>> Again it works as expected in Firefox.
>>
>> Myjsp looks like this
>>
>> Parent tab has the following tab
>>
>> <authz:authorize ifAnyGranted="ROLE_ADMINISTRATOR"> /** this is for the
>> Acegi stuff */
>> <s:url id="listOM" value="/Dashboard/ViewManagedEntities.action" />
>> <s:div
>> id="OM"
>> label ="Operations Manager"
>> theme="ajax"
>> href="%{listOM}"
>> autoStart="false"
>> refreshOnShow="true"
>> errorText="Unable to retrieve data!">
>> </s:div>
>> </authz:authorize>
>>
>> This will get the child jsp which is below which is also tabbed panel
>>
>>
>> <s:head theme="ajax" debug="true"/>
>> <s:div id="OMpage">
>> <s:tabbedPanel id="insideOMTab" selectedTab="allOM">
>>
>> <s:url id="allOM" action="ViewOMTable.action" />
>> <s:div
>> id="allOM"
>> label ="LIST"
>> theme="ajax"
>> href="%{allOM}"
>> autoStart= "false"
>> refreshOnShow="true"
>> >
>> </s:div>
>>
>>
>> <s:url id="addOM" action="showaddOMform" />
>> <s:div
>> id="addOM"
>> label ="ADD"
>> theme="ajax"
>> href="%{addOM}"
>> autoStart= "false"
>> refreshOnShow="true"
>> >
>> </s:div>
>>
>> </s:tabbedPanel>
>>
>> </s:div>
>>
>>
>> Any help is greatly appreciated
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Strtus2-tags-IE-issue-error-loading-page-200-ok-tp18691505p18691505.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org