Author Login
Post Reply
user Digest 28 Jul 2008 20:40:31 -0000 Issue 8164
Topics (messages 189372 through 189401):
Re: Iterator index: how to index html elements?
189372 by: Dave Newton
Re: Compose String value and stack value into String, set result as property value of struts2 tag
189373 by: Joachim Ansorg
<s:a dojo-anchor, parse result, output it and then execute JS
189374 by: holod
189375 by: Dave Newton
189380 by: holod
189381 by: holod
189382 by: Dave Newton
Session management when using IE 7
189376 by: OTA_DZ
Re: [S2] Form doesn't redirect
189377 by: Milan Milanovic
189379 by: Dave Newton
189383 by: Milan Milanovic
189384 by: Dave Newton
189387 by: Milan Milanovic
[OT] Re: Session management when using IE 7
189378 by: Dave Newton
189392 by: Gabriel Belingueres
Re: Iterator index: how to index html elements? count works, but status doesn't
189385 by: Jim Kiley
Re: s:include tag and s:param
189386 by: Eric Nielsen
189388 by: Dave Newton
189393 by: Becky.L.O'Sullivan.mhn.com
189394 by: Dave Newton
Strtus2 tags IE issue error loading page 200 ok
189389 by: dynamicd
189397 by: dynamicd
Background Threads
189390 by: dave.smith
189391 by: dave.smith
Re: possibly strange namespace use case
189395 by: Andy Law
Struts 2 select tag
189396 by: Deepika Appana
[s2] using ognl for iterator value
189398 by: James Carr
There is no Action mapped for namespace / and action name ...
189399 by: John Moose
189400 by: Dave Newton
189401 by: John Moose
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_189372.ezm (zipped)--- On Mon, 7/28/08, holod <serega.sheypak@(protected):
> <tr id="attachedMainDocRow<s:property value="#document.status"/>">
> Some content
> </tr>
>
> Is there any issues with status of iterator?
None that I'm aware of; I use it all the time.
I'd strongly recommend not naming your status variable "document", since it's not a document. It's a status.
It wouldn't be #document.status, it would be #document.index; see [1].
Dave
[1] http://struts.apache.org/2.0.11.2/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html

Attachment:
user_189373.ezm (zipped)Hi,
> This is my code:
> <s:a id="" showLoadingText="false"
> targets="%{'attachedMainDocRow'#document.count}"
>
Use something like targets="attachedMainDocRow%{#status.index}" .
Joachim

Attachment:
user_189374.ezm (zipped)
I use <s:a/> tag (dojo-anchor)
This tag invokes action, which has result type="json" (I'm using JSON plugin
for struts2).
It returns values of all public get*() methods of invoked action in JSON.
I want to do this thing:
1.catch result, parse it and get value of only one public get*() method.
2.write it (targets attribute is specified). Seems like I just need to
override data accept functionality
3.Execute JS script. This script will blur targets"" and then delete them.
Please, tell me, how can parse data from action and then execute script?
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189375.ezm (zipped)--- On Mon, 7/28/08, holod <serega.sheypak@(protected):
> I want to do this thing:
> 1.catch result, parse it and get value of only one public
> get*() method.
> 2.write it (targets attribute is specified). Seems like I
> just need to
> override data accept functionality
> 3.Execute JS script. This script will blur
> targets"" and then delete them.
>
> Please, tell me, how can parse data from action and then
> execute script?
Why not just use the "includeProperties" param? Or specify a root object?
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
The result comes back in JSON: that's a JavaScript question, not Struts.
Dave

Attachment:
user_189380.ezm (zipped)
Thanks! I've read manual you gave me and I've decided to use
documentTitle
I've excluded one property, the final result looks like:
{"resultOfAction":"Error appeared.Please call support service."}
I don't know how to put away "key" (resultOfAction), { and }, also I don't
need quotes and :.
And the second question:
How is it possible to execute my own JS script right after <s:a/>
execution?
newton.dave wrote:
>
> --- On Mon, 7/28/08, holod <serega.sheypak@(protected):
>> I want to do this thing:
>> 1.catch result, parse it and get value of only one public
>> get*() method.
>> 2.write it (targets attribute is specified). Seems like I
>> just need to
>> override data accept functionality
>> 3.Execute JS script. This script will blur
>> targets"" and then delete them.
>>
>> Please, tell me, how can parse data from action and then
>> execute script?
>
> Why not just use the "includeProperties" param? Or specify a root object?
>
> http://cwiki.apache.org/S2PLUGINS/json-plugin.html
>
> The result comes back in JSON: that's a JavaScript question, not Struts.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189381.ezm (zipped)
Thanks! I've read manual you gave me and I've decided to use
documentTitle
I've excluded one property, the final result looks like:
{"resultOfAction":"Error appeared.Please call support service."}
I don't know how to put away "key" (resultOfAction), { and }, also I don't
need quotes and :.
And the second question:
How is it possible to execute my own JS script right after <s:a/>
execution?
newton.dave wrote:
>
> --- On Mon, 7/28/08, holod <serega.sheypak@(protected):
>> I want to do this thing:
>> 1.catch result, parse it and get value of only one public
>> get*() method.
>> 2.write it (targets attribute is specified). Seems like I
>> just need to
>> override data accept functionality
>> 3.Execute JS script. This script will blur
>> targets"" and then delete them.
>>
>> Please, tell me, how can parse data from action and then
>> execute script?
>
> Why not just use the "includeProperties" param? Or specify a root object?
>
> http://cwiki.apache.org/S2PLUGINS/json-plugin.html
>
> The result comes back in JSON: that's a JavaScript question, not Struts.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189382.ezm (zipped)--- On Mon, 7/28/08, holod <serega.sheypak@(protected):
> I've excluded one property, the final result looks
> like:
> {"resultOfAction":"Error appeared.Please
> call support service."}
>
> I don't know how to put away "key"
> (resultOfAction), { and }, also I don't
> need quotes and :.
What do you mean, you don't "need it"? That's what JSON is. If you don't want JSON, don't use a JSON result, use JSP or FreeMarker or something.
> And the second question:
> How is it possible to execute my own JS script right after
> <s:a/> execution?
Topics. Read the documentation.
http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTags-dojoTopics
http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTags-anchorTag
Dave

Attachment:
user_189376.ezm (zipped)
Hi,
When I start my struts application in the same IE instance in 2 tabs I get
the same sessionid and when I disconnect from one the other is
systematically disconnected. I think there is an overlapping of session in
my application. The same problem occur using FireFox. Additionally, I don’t
have the problem when using 2 different instance of my browser in 2 machine
or in the same machine.
Could you please help me?
Thanks.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189377.ezm (zipped)
Hi Newton,
my first form doesn't redirect, it just send some data to action class and
updates targeting div in the page to show updated data from my class, so it
works fine, but it shouldn't redirect from page. But, this second form
should redirect and yes it doesn't have target specified, as I don't want to
specify any part of the page, but I want to show (redirect to) completely
new page. What can I do ?
--
Thanks, Milan
newton.dave wrote:
>
> --- On Sun, 7/27/08, Milan Milanovic <milanmilanovich@(protected):
>>>> <s:form action="save" validate="false">
>>>> <s:textfield id="value" tabindex="1" label="Value" name="value"/>
>>>> <s:submit theme="ajax" tabindex="2" cssStyle="submit"
>>>> cssClass="submit" align="right" value="Save"/>
>>>> </s:form>
>
> Do Ajax forms redirect? I thought they submitted in the background via an
> XHR. Since you don't have a target specified, would the result just be
> ignored?
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189379.ezm (zipped)--- On Mon, 7/28/08, Milan Milanovic <milanmilanovich@(protected):
> this second form should redirect and yes it doesn't have target
> specified, as I don't want to specify any part of the page, but
> I want to show (redirect to) completely new page. What can I do ?
Don't use Ajax?
Dave

Attachment:
user_189383.ezm (zipped)
Hi Dave,
well I don't understand what is the problem, I use ajax for my first form,
but not to second which should redirect ?
--
Thx, Milan
newton.dave wrote:
>
> --- On Mon, 7/28/08, Milan Milanovic <milanmilanovich@(protected):
>> this second form should redirect and yes it doesn't have target
>> specified, as I don't want to specify any part of the page, but
>> I want to show (redirect to) completely new page. What can I do ?
>
> Don't use Ajax?
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189384.ezm (zipped)--- On Mon, 7/28/08, Milan Milanovic <milanmilanovich@(protected):
> well I don't understand what is the problem, I use ajax
> for my first form, but not to second which should redirect?
...
Not reloading the entire page is one of the main points of Ajax.
If you want to reload the entire page (like with a redirect) and you're not handling that yourself in JavaScript I don't really see the point (in general; there are exceptions).
You may want to read up on Ajax fundamentals; JJG's article is one of the more popular ones, even though people have been doing it for a decade+ now.
http://www.adaptivepath.com/ideas/essays/archives/000385.php
The Wikipedia article gives a shorter, higher-level overview. The second sentence may be informative:
"With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page."
http://en.wikipedia.org/wiki/AJAX
Dave

Attachment:
user_189387.ezm (zipped)
I forgot to change theme from ajax to simple in my second form. Now it works,
sorry.
--
Milan
Milan Milanovic wrote:
>
> Hi Dave,
>
> well I don't understand what is the problem, I use ajax for my first form,
> but not to second which should redirect ?
>
> --
> Thx, Milan
>
>
> newton.dave wrote:
>>
>> --- On Mon, 7/28/08, Milan Milanovic <milanmilanovich@(protected):
>>> this second form should redirect and yes it doesn't have target
>>> specified, as I don't want to specify any part of the page, but
>>> I want to show (redirect to) completely new page. What can I do ?
>>
>> Don't use Ajax?
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
:blush::blush:
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189378.ezm (zipped)--- On Mon, 7/28/08, OTA_DZ <kouicin@(protected):
> I think there is an overlapping of session in
> my application.
Technically it's an overlapping of sessions in the browser.
Different browsers handle these things differently; in general tabbed browsing will share a single session. That's not a framework issue; if you want to support it you'll probably have to do something tricky, but maybe someone here already has a solution.
Dave

Attachment:
user_189392.ezm (zipped)You may want to add support for conversation scope to your application
so that objects stored in session scope doesn't get mixed up.
2008/7/28, Dave Newton <newton.dave@(protected)>:
> --- On Mon, 7/28/08, OTA_DZ <kouicin@(protected):
> > I think there is an overlapping of session in
> > my application.
>
> Technically it's an overlapping of sessions in the browser.
>
> Different browsers handle these things differently; in general tabbed browsing will share a single session. That's not a framework issue; if you want to support it you'll probably have to do something tricky, but maybe someone here already has a solution.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189385.ezm (zipped)The version of IteratorStatus found in version 2.0.11 of the docs [1] has a
getIndex() method; has it subsequently been vaporized?
[1]
http://struts.apache.org/2.0.11/struts2-core/apidocs/index.html?org/apache/struts2/views/jsp/IteratorStatus.html
jk
On Mon, Jul 28, 2008 at 4:28 AM, holod <serega.sheypak@(protected):
>
> <tr id="attachedMainDocRow<s:property value="#document.count"/>">
>
> works fine. It just starts from 1, not from 0
> Why? I can't understand what has happened to index.
> count is not so bad, thanks for you help and cooperation!
> --
> View this message in context:
> http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18686074.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_189386.ezm (zipped)Dave Newton <newton.dave <at> yahoo.com> writes:
> It already does; not sure what I was thinking there. (I do know; I was looking
at the wrong code.)
>
> I'm able to access parameters set via a nested <s:param.../> using both <c:out
value="${param.foo}"/>
> and ${param.foo}.
>
> If the value is coming from the action then you shouldn't even need to set it
via an <s:param.../> since the
> value stack is available in included pages--action properties are available
via both S2 tags and EL (via
> the custom request hoobie-doobie).
OK I'm now a little confused. It sounds like you're reversing yourself from the
first reply and that what I was trying should work? Can you see something
different between your test case and the code I sent before?
I can't use use the action's properties, since different actions back the
different views that use this snippet. In all cases the needed property is
navigateable from exposed properties, however. Hence the desire to use the
include to effectively rename the property from the main result jsp to the
included snippet.
Eric

Attachment:
user_189388.ezm (zipped)--- On Mon, 7/28/08, Eric Nielsen <nielsene@(protected):
> Dave Newton <newton.dave <at> yahoo.com> writes:
> > It already does; not sure what I was thinking there.
> (I do know; I was looking
> at the wrong code.)
> >
> > I'm able to access parameters set via a nested
> <s:param.../> using both <c:out
> value="${param.foo}"/>
> > and ${param.foo}.
>
> OK I'm now a little confused. It sounds like you're reversing
> yourself from the first reply and that what I was trying should work?
Yeah, that was why I said "not sure what I was thinking" (but I do know; I was looking at the wrong method).
> Can you see something different between your test case and
> the code I sent before?
I used the word "param" in my EL.
Dave

Attachment:
user_189393.ezm (zipped)Yes you can access them via JSTL, like Dave mentioned (using ${param.xx} ),
but not via OGNL.
If you want to access those params via OGNL use JSTL to set them into the
page scope, then use #attr to get them.
I hate JSTL's choose/otherwise tags, and prefer struts if/else tags, so I
use this a lot in that situation.
<s:include value="/WEB-INF/components/competitions/identity-readonly.jsp">
<s:param name="comp" value="competition" />
</s:include>
<%@(protected)" %>
<c:set var="comp" value="${param.comp}"/>
<div class="primaryBox">
<h1>Competition Information</h1>
<s:property escape="false" value="#attr.comp" />
</div>
Dave Newton
<newton.dave@(protected)
o.com> To
Struts Users Mailing List
07/28/2008 07:18 <user@(protected)>
AM cc
Subject
Please respond to Re: S2: s:include tag and s:param
"Struts Users
Mailing List"
<user@(protected)
he.org>
--- On Mon, 7/28/08, Eric Nielsen <nielsene@(protected):
> Dave Newton <newton.dave <at> yahoo.com> writes:
> > It already does; not sure what I was thinking there.
> (I do know; I was looking
> at the wrong code.)
> >
> > I'm able to access parameters set via a nested
> <s:param.../> using both <c:out
> value="${param.foo}"/>
> > and ${param.foo}.
>
> OK I'm now a little confused. It sounds like you're reversing
> yourself from the first reply and that what I was trying should work?
Yeah, that was why I said "not sure what I was thinking" (but I do know; I
was looking at the wrong method).
> Can you see something different between your test case and
> the code I sent before?
I used the word "param" in my EL.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
---------------------------------------------------------------------
This message, together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.
---------------------------------------------------------------------

Attachment:
user_189394.ezm (zipped)--- On Mon, 7/28/08, Becky.L.O'Sullivan@(protected):
> If you want to access those params via OGNL use JSTL to set
> them into the page scope, then use #attr to get them.
Or in request scope, then you don't need to specify scope or #attr, IIRC.
Dave

Attachment:
user_189389.ezm (zipped)
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
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189397.ezm (zipped)
please help ! SOS
dynamicd 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
>
>
>
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189390.ezm (zipped)
I have a function that POSTs data to a third party HTTPS server: void
postData(String sURL, String sData);
I need to call this function as a background thread from an Action class, so
that the user doesn't have to wait on the connection to establish. How can
I safely call this function so that it becomes a background thread?
Thanks,
Dave
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189391.ezm (zipped)
I forgot to mention that I am using Struts 1.1.
dave.smith wrote:
>
> I have a function that POSTs data to a third party HTTPS server: void
> postData(String sURL, String sData);
>
> I need to call this function as a background thread from an Action class,
> so that the user doesn't have to wait on the connection to establish. How
> can I safely call this function so that it becomes a background thread?
>
> Thanks,
> Dave
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189395.ezm (zipped)
All,
I have a usecase that I can't find any docs for in the usual places. Of
course, it may just be that I'm not looking hard enough. However, I wonder
if anyone else has done this kind of thing.
My problem is this...
I have a series of actions that map to distinct urls ... /Action1.action,
/Action2.action etc. Each codes a wizard-style sub-application. The problem
is that I want to add in more information in the URL to the *left* of the
action url and be able to intercept and pass that information into my
actions
e.g.
/foo/Action1.action runs action1 passing in 'foo' and /bar/Action1.action
runs the same action passing in 'bar'.
How should I code/configure/build this kind of thing.
Thanks in advance for any guidance that anyone can give me.
Later,
Andy Law
-----
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189396.ezm (zipped)Hi,
I am a newbie to struts 2. I have a question about the struts 2 select tag.
When I try to use a property defined in package.properties for the "list",
For Eg:
<s:select label="Names" list="project.names"/>
(project.names is defined in the package.properties)
i get an exception that states that the project.names is not a enumeration
or map. I am wondering why it does not evaluate to the list that I have
defined in the properties file.
Thanks,
D

Attachment:
user_189398.ezm (zipped)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 <dhaval.parekh@(protected):
>
> 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@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189399.ezm (zipped)I know what you're thinking... web.xml has no action mapping, but it does!
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>Struts 2 RESTful Ozone Services</display-name>
<!-- Filters -->
<filter>
<filter-name>action2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>com.myeclipse.ozone</param-value>
</init-param>
<init-param>
<param-name>struts.devMode</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>action2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
This file works well with another Struts2.1.3 app. Can someone help me
understand where to look for the cause of this???
Thanks folks

Attachment:
user_189400.ezm (zipped)The web.xml doesn't have anything to do with the error message; it thinks there isn't an action configured at the URL you're requesting.
Impossible to help without more information.
Dave
--- On Mon, 7/28/08, John Moose <jgmoose@(protected):
> From: John Moose <jgmoose@(protected)>
> Subject: There is no Action mapped for namespace / and action name ...
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Monday, July 28, 2008, 3:58 PM
> I know what you're thinking... web.xml has no action
> mapping, but it does!
>
>
> <?xml version="1.0"
> encoding="UTF-8"?>
> <web-app version="2.5"
> xmlns="http://java.sun.com/xml/ns/javaee"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>
> <display-name>Struts 2 RESTful Ozone
> Services</display-name>
>
> <!-- Filters -->
> <filter>
> <filter-name>action2</filter-name>
>
> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> <init-param>
>
> <param-name>actionPackages</param-name>
>
> <param-value>com.myeclipse.ozone</param-value>
> </init-param>
> <init-param>
>
> <param-name>struts.devMode</param-name>
> <param-value>true</param-value>
> </init-param>
> </filter>
>
> <filter-mapping>
> <filter-name>action2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
> </web-app>
>
>
>
> This file works well with another Struts2.1.3 app. Can
> someone help me
> understand where to look for the cause of this???
>
> Thanks folks

Attachment:
user_189401.ezm (zipped)Hi Dave,
I have the following snippet of DashbdController class that I am expecting
to hit with the following URL:
http:/localhost:8080/Dashbd
<---SNIPPET
package com.myeclipse.ozone;
import
java.util.Collection;
import com.myeclipse.hibernate.*;
import
org.hibernate.HibernateException;
import
org.hibernate.Session;
import
org.hibernate.cfg.Configuration;
import
org.apache.struts2.config.Result;
import
org.apache.struts2.config.Results;
import
org.apache.struts2.dispatcher.ServletActionRedirectResult;
import org.apache.struts2.rest.DefaultHttpHeaders;
import org.apache.struts2.rest.HttpHeaders;
import
com.opensymphony.xwork2.ModelDriven;
import
com.opensymphony.xwork2.Validateable;
import
com.opensymphony.xwork2.ValidationAwareSupport;
@Results({
@Result(name="success", type=ServletActionRedirectResult.class,
value="dashbd")
})
public class DashbdController extends ValidationAwareSupport implements
ModelDriven<Object>, Validateable{
//private static Gadget transientGadget = new Gadget();
//String id;
int id;
private static int dashboardId;
private Collection<Dashbd> dashboardList;
private Collection<Dashbd> model;
private Collection<DashbdType> dashboardTypeList;
private DashbdService dashboardService = new DashbdService(); // where
the DAOs live
/*
****************************************************************************************
* DASHBOARDS
*/
//
// GET .../dashbd get all dashboards in table
//
public HttpHeaders index() {
dashboardList = dashboardService.getAll();
return new DefaultHttpHeaders("index") // dashbd-index.jsp
.disableCaching();
}
and etc. ....
...END SNIPPET >
There are more methods in this calss of course, but all I'm trying to do
initially is hit the index() action with the URL above ?!?
the index.jsp is really simple:
<% response.sendRedirect("dashbd"); %>
this same scheme works perfectly with another RESTful app service and fir
the life of me, I can't find any
On Mon, Jul 28, 2008 at 4:17 PM, Dave Newton <newton.dave@(protected):
> The web.xml doesn't have anything to do with the error message; it thinks
> there isn't an action configured at the URL you're requesting.
>
> Impossible to help without more information.
>
> Dave
>
> --- On Mon, 7/28/08, John Moose <jgmoose@(protected):
>
> > From: John Moose <jgmoose@(protected)>
> > Subject: There is no Action mapped for namespace / and action name ...
> > To: "Struts Users Mailing List" <user@(protected)>
> > Date: Monday, July 28, 2008, 3:58 PM
> > I know what you're thinking... web.xml has no action
> > mapping, but it does!
> >
> >
> > <?xml version="1.0"
> > encoding="UTF-8"?>
> > <web-app version="2.5"
> > xmlns="http://java.sun.com/xml/ns/javaee"
> >
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> >
> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
> >
> > <display-name>Struts 2 RESTful Ozone
> > Services</display-name>
> >
> > <!-- Filters -->
> > <filter>
> > <filter-name>action2</filter-name>
> >
> >
> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> > <init-param>
> >
> > <param-name>actionPackages</param-name>
> >
> > <param-value>com.myeclipse.ozone</param-value>
> > </init-param>
> > <init-param>
> >
> > <param-name>struts.devMode</param-name>
> > <param-value>true</param-value>
> > </init-param>
> > </filter>
> >
> > <filter-mapping>
> > <filter-name>action2</filter-name>
> > <url-pattern>/*</url-pattern>
> > </filter-mapping>
> >
> > <welcome-file-list>
> > <welcome-file>index.jsp</welcome-file>
> > </welcome-file-list>
> > </web-app>
> >
> >
> >
> > This file works well with another Struts2.1.3 app. Can
> > someone help me
> > understand where to look for the cause of this???
> >
> > Thanks folks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>