Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 18 Aug 2008 09:24:44 -0000 Issue 8197

user-digest-help

2008-08-18


Author LoginPost Reply

user Digest 18 Aug 2008 09:24:44 -0000 Issue 8197

Topics (messages 190114 through 190135):

Struts loses action configuration
 190114 by: tjstavenger
 190127 by: dusty

Re: Validate associate Map
 190115 by: Dave Newton
 190119 by: Al Sutton
 190120 by: stanlick.gmail.com
 190125 by: "Stephan Schröder"

Re: javascript in returned jsp through xhr
 190116 by: Jeromy Evans
 190117 by: Dave Newton
 190118 by: Jeromy Evans

Image inside struts2 form
 190121 by: Raghunath
 190122 by: Dave Newton

Re: Object put in HttpSession can't be found by S2
 190123 by: "Stephan Schröder"
 190124 by: Dave Newton
 190126 by: "Stephan Schröder"

Re: Struts2 Application Structure
 190128 by: dusty

Re: Using struts.xworkTextProvider (overriding the default TextProvider )
 190129 by: Chris Pratt

[S2] 2.1.3GA?
 190130 by: Mike Watson

Re: simple ajax form - returns value to a new page (not to a DIV)
 190131 by: MyAshok

how to disable the back button in Struts 1.2.3 ?
 190132 by: Fernandes Celinio SGCF
 190133 by: Nils-Helge Garli Hegvik

problem with checkbox
 190134 by: Muralidhar Y

NullPointer Exception On IE7
 190135 by: Pranab

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_190114.ezm (zipped)

I'm using Struts 2.1.2 and Tiles 2.0.5 on WebLogic 9.2.1. Periodically I see
a TilesException in my server logs caused by a SocketException: Broken Pipe.
The next request made into Struts seems to lose the Struts action
configuration as I subsequently get a message "There is no Action mapped for
action name search_loadItemSearch. - [unknown location]". After these
errors, the application no longer works until I restart the server (I would
assume redeploying the application would work too).

I'm curious to know if someone else has seen a similar error or if anyone
has pointers as to places to start looking for the source of the problem and
potentially the solution??

Thanks!

Here's the stack trace from the SocketException:

java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite (SocketOutputStream.java:92)
 at java.net.SocketOutputStream.write (SocketOutputStream.java:136)
 at
weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:525)
 at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:504)
 at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)
 at
weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:249)
 at
weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:469)
 at
weblogic.servlet.internal.CharsetChunkOutput.implWrite(CharsetChunkOutput.java:396)
 at
weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput.java:198)
 at
weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:133)
 at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:245)
 at
jsp_servlet._web_45_inf._jsp._layouts.__default._writeText(__default.java:45)
 at
jsp_servlet._web_45_inf._jsp._layouts.__default._jspService(__default.java:197)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
 at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
 at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
 at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
 at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
 at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
 at
org.apache.tiles.servlet.context.ServletTilesRequestContext.forward (ServletTilesRequestContext.java:198)
 at
org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch (ServletTilesRequestContext.java:185)
 at
org.apache.tiles.impl.BasicTilesContainer.render (BasicTilesContainer.java:419)

And the portion of the stack trace (not including wrapped exceptions) from
Struts:

There is no Action mapped for action name search_loadItemSearch. - [unknown
location]
 at
com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java:178)
 at
org.apache.struts2.impl.StrutsActionProxy.prepare (StrutsActionProxy.java:61)
 at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java:39)
 at
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (DefaultActionProxyFactory.java:47)
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_190127.ezm (zipped)

This is kind of a wild guess, but it sounds like you are having problems with
keeping a connection open to the database. Maybe its a MySQL database
connection that goes idle and closes but the pool thinks its still open. It
happens...  Anyways so what if the following happened...

1) You app is idle for a while and your connection times out.
2) The app restarts or redeploys and a listener or something on start up
trys to connect to the database, errors out and your struts config gets
interrupted and your app is hosed.

I have seen #1 happen. I am not sure how #2 would happen on its own unless
Weblogic is doing something crazy or you are actually restarting the app....
But I would look in the logs or stdout for WebLogic and see what is
happening right before the error.

-D



tjstavenger wrote:
>
> I'm using Struts 2.1.2 and Tiles 2.0.5 on WebLogic 9.2.1. Periodically I
> see a TilesException in my server logs caused by a SocketException: Broken
> Pipe. The next request made into Struts seems to lose the Struts action
> configuration as I subsequently get a message "There is no Action mapped
> for action name search_loadItemSearch. - [unknown location]". After these
> errors, the application no longer works until I restart the server (I
> would assume redeploying the application would work too).
>
> I'm curious to know if someone else has seen a similar error or if anyone
> has pointers as to places to start looking for the source of the problem
> and potentially the solution??
>
> Thanks!
>
> Here's the stack trace from the SocketException:
>
> java.net.SocketException: Broken pipe
>  at java.net.SocketOutputStream.socketWrite0(Native Method)
>  at java.net.SocketOutputStream.socketWrite (SocketOutputStream.java:92)
>  at java.net.SocketOutputStream.write (SocketOutputStream.java:136)
>  at
> weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:525)
>  at
> weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:504)
>  at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)
>  at
> weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:249)
>  at
> weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:469)
>  at
> weblogic.servlet.internal.CharsetChunkOutput.implWrite(CharsetChunkOutput.java:396)
>  at
> weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput.java:198)
>  at
> weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:133)
>  at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:245)
>  at
> jsp_servlet._web_45_inf._jsp._layouts.__default._writeText(__default.java:45)
>  at
> jsp_servlet._web_45_inf._jsp._layouts.__default._jspService(__default.java:197)
>  at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
>  at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
>  at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
>  at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
>  at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
>  at
> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
>  at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
>  at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.forward (ServletTilesRequestContext.java:198)
>  at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch (ServletTilesRequestContext.java:185)
>  at
> org.apache.tiles.impl.BasicTilesContainer.render (BasicTilesContainer.java:419)
>
> And the portion of the stack trace (not including wrapped exceptions) from
> Struts:
>
> There is no Action mapped for action name search_loadItemSearch. -
> [unknown location]
>  at
> com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java:178)
>  at
> org.apache.struts2.impl.StrutsActionProxy.prepare (StrutsActionProxy.java:61)
>  at
> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java:39)
>  at
> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (DefaultActionProxyFactory.java:47)
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_190115.ezm (zipped)
On a vaguely-related side note, I spent yesterday floating in my kayak counting herons (1 great blue), egrets (4, species unknown), and, parenthetically, turtles, wondering where my bug spray was.

The variety in turtle size was astonishing; some were bigger than my head (I know, right?!) while others were smaller than the palm of my hand (but still managed to avoid me--apparently they can swim).

If I could just figure out a decent laptop mount for the cockpit I'd be all set.

--- On Sat, 8/16/08, stanlick@(protected):

> Dude, I totally think technical books on audio would sell!
> Most NERDS (like myself) have the attention span of a moth
> and are so busy chasing shiny things they can never get to
> the end of a book! I would slam an aBook in my iPod for
> the commute. For a great example of what I mean by attention
> span disorder, check this <http://www.coudal.com/regrets.php> out.
>
> On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton
> <newton.dave@(protected):
>
> > --- On Sat, 8/16/08, Al Sutton wrote:
> > > lol... I've just had a mental image of Dave
> reading the
> > > XML examples.....
> >
> > I have a very soothing XML voice.
> >
> > I'm like the Isaac Hayes (but alive-ier) of
> structured text.
> >
> > Dave
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> > For additional commands, e-mail:
> user-help@(protected)
> >
> >

Attachment: user_190119.ezm (zipped)
If you can tell me how to put XML example code into an audio form I
might start to believe you about them selling as anything more than a
novelty.

The biggest problem is that when dealing with computers you are
extremely rarely dealing with the English language and the various code
snippets, configuration files, etc. are only really of benefit when
available visually as reference when reading (or hearing) the other
parts of the text.

But hey, if you want to record a podcast that has code
snippets/configuration examples in it and prove me wrong feel free to go
for it.

Al.

P.S. I've you want some career advice, work on the attention span. I've
seen a number of people fired for looking incompetent because they kept
disrupting co-workers with questions which could have been answered by
reading the manual and they got bored of the job they have to do and
churn out some really s**t code whilst messing around with other
things.. most employers really don't like it.


stanlick@(protected):
> Dude, I totally think technical books on audio would sell! Most NERDS (like
> myself) have the attention span of a moth and are so busy chasing shiny
> things they can never get to the end of a book! I would slam an aBook in my
> iPod for the commute. For a great example of what I mean by attention span
> disorder, check this <http://www.coudal.com/regrets.php> out.
>
> On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton <newton.dave@(protected):
>
>  
>> --- On Sat, 8/16/08, Al Sutton wrote:
>>  
>>> lol... I've just had a mental image of Dave reading the
>>> XML examples.....
>>>    
>> I have a very soothing XML voice.
>>
>> I'm like the Isaac Hayes (but alive-ier) of structured text.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>  
>
>  


Attachment: user_190120.ezm (zipped)
Big Al --

I started working on the Podcast last night and after a few moments playing
with the recording spftware, decided to switch over to the You Tube format.
It seemed that video and audio would solve many of the "code snippet"
problems. After a few minutes working on this, I detected an AC/DC song on
the radio and decided to play my drums awhile, after which I decided
technology is boring!

P.S. I will be uploading several hours of my home concert footage to You
Tube later today.

Peace,
Scott

On Sun, Aug 17, 2008 at 7:32 AM, Al Sutton <al.sutton@(protected):

> If you can tell me how to put XML example code into an audio form I might
> start to believe you about them selling as anything more than a novelty.
>
> The biggest problem is that when dealing with computers you are extremely
> rarely dealing with the English language and the various code snippets,
> configuration files, etc. are only really of benefit when available visually
> as reference when reading (or hearing) the other parts of the text.
>
> But hey, if you want to record a podcast that has code
> snippets/configuration examples in it and prove me wrong feel free to go for
> it.
>
> Al.
>
> P.S. I've you want some career advice, work on the attention span. I've
> seen a number of people fired for looking incompetent because they kept
> disrupting co-workers with questions which could have been answered by
> reading the manual and they got bored of the job they have to do and churn
> out some really s**t code whilst messing around with other things.. most
> employers really don't like it.
>
>
> stanlick@(protected):
>
>> Dude, I totally think technical books on audio would sell! Most NERDS
>> (like
>> myself) have the attention span of a moth and are so busy chasing shiny
>> things they can never get to the end of a book! I would slam an aBook in
>> my
>> iPod for the commute. For a great example of what I mean by attention
>> span
>> disorder, check this <http://www.coudal.com/regrets.php> out.
>>
>> On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton <newton.dave@(protected)>
>> wrote:
>>
>>
>>
>>> --- On Sat, 8/16/08, Al Sutton wrote:
>>>
>>>
>>>> lol... I've just had a mental image of Dave reading the
>>>> XML examples.....
>>>>
>>>>
>>> I have a very soothing XML voice.
>>>
>>> I'm like the Isaac Hayes (but alive-ier) of structured text.
>>>
>>> Dave
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_190125.ezm (zipped)
i guess the short answer is: write it validateSave()-Method. The workflow interceptor should only call it if "save" is the invoke method.

> > I have to write custom validation method where I iterate all
> > "PageText" class and validate it. I want to use validate()
> > method from ActionSupport class but the method is invoke always.
> > I need invoke validator method only when is invoke method
> > save(); Is better resolution?
>
> One option would be to read the documentation for the validation
> interceptor [1,2] and its superclass, MethodFilterInterceptor [3].
>
> Dave
>
> [1] Validation interceptor overview:
> http://struts.apache.org/2.x/docs/validation-interceptor.html
>
> [2] ValidationInterceptor Javadocs:
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html
>
> [3] MethodFilterInterceptor Javadocs:
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@(protected)

Attachment: user_190116.ezm (zipped)
Kropp, Henning wrote:
> Hi,
>
> I am a little stuck here. A action loads a jsp into a div. For this I
> use the ajax theme (dojo) and a form submit with target. Works fine.
> The Problem ist, that the jsp returned by the action has javascript in
> it. Its the jcalendar. Having this jsp load normally the calendar
> works fine, but not in div.
>
> To solve this I tried executeScripts option, but that did not work. I
> searched and found out that eval might help, but I simply dont know
> how this could help.
>
> Any hints would be greatly appreciated. Many thanks in advanced!

Ensure separateScripts is also true.

Cut back the javascript to the bare minmial first (eg. an alert). A lot
of javascript has problems in this scenario because it assumes the DOM
is complete or won't change before it's executed. I think dojo updates
the DOM, the executes discovered scripts, but in some browsers you can
get race conditions. eg. calls getElementById before that element
exists properly (eg. exists and all its content exists).

The best approach is to use a listener that initialises the javascript
calendar only after it's certain the DOM is up-to-date, rather than
using inline javascript in the result..

Hope that helps.

Jeromy Evans








Attachment: user_190117.ezm (zipped)
Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki page.

Dave

--- On Sat, 8/16/08, Jeromy Evans wrote:

> From: Jeromy Evans <jeromy.evans@(protected)>
> Subject: Re: javascript in returned jsp through xhr
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Saturday, August 16, 2008, 10:35 PM
> Kropp, Henning wrote:
> > Hi,
> >
> > I am a little stuck here. A action loads a jsp into a
> div. For this I
> > use the ajax theme (dojo) and a form submit with
> target. Works fine.
> > The Problem ist, that the jsp returned by the action
> has javascript in
> > it. Its the jcalendar. Having this jsp load normally
> the calendar
> > works fine, but not in div.
> >
> > To solve this I tried executeScripts option, but that
> did not work. I
> > searched and found out that eval might help, but I
> simply dont know
> > how this could help.
> >
> > Any hints would be greatly appreciated. Many thanks
> in advanced!
>
> Ensure separateScripts is also true.
>
> Cut back the javascript to the bare minmial first (eg. an
> alert). A lot
> of javascript has problems in this scenario because it
> assumes the DOM
> is complete or won't change before it's executed.
> I think dojo updates
> the DOM, the executes discovered scripts, but in some
> browsers you can
> get race conditions. eg. calls getElementById before that
> element
> exists properly (eg. exists and all its content exists).
>
> The best approach is to use a listener that initialises the
> javascript
> calendar only after it's certain the DOM is up-to-date,
> rather than
> using inline javascript in the result..
>
> Hope that helps.
>
> Jeromy Evans
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_190118.ezm (zipped)
Dave Newton wrote:
> Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki page.
>
> Dave
>  

Agreed!
I can't reproduce the JIRA issue either. It works for me...except in
cases where it's obvious it can't work.


Attachment: user_190121.ezm (zipped)

Hi ALL,
I struck with one problem. That is I want to include image inside struts
form.
<s:from ...>
<s:textfied ../>
 
</s:from>
But the problem is the image is not getting rendered inside the form. It's
getting rendered on top of the form.

please suggest me..

thanks
raghu
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_190122.ezm (zipped)
--- On Sun, 8/17/08, Raghunath <visumagic@(protected):
> I struck with one problem. That is I want to include image
> inside struts form.
> <s:from ...>
> <s:textfied ../>
>  
> </s:from>
> But the problem is the image is not getting rendered inside
> the form. It's getting rendered on top of the form.

Have you looked at the generated HTML?

It might provide you with a clue.

Dave


Attachment: user_190123.ezm (zipped)
i'm pretty sure <s:if test="#skillsFound != null"> works too.

/Stephan

> use "#session.skillsFound" or "#session[''skillsFound']"
>
> musachy
> >
> > In my action I put a Set called "skillsFound" in the HttpSession. Then
> > I want to access it (and iterate through it) from a jsp, but this line
> > of code gives a False result:
> >
> > <s:if test = "skillsFound != null">
> >
> > Is there something I've forgotten to do or have I misunderstood things?
> >
> > Thanks in advance!
> >
> > /Ylva

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@(protected)

Attachment: user_190124.ezm (zipped)
--- On Sun, 8/17/08, "Stephan Schröder" wrote:
> i'm pretty sure <s:if test="#skillsFound != null"> works too.

AFAIK the "#" syntax will work only if the variable was defined as a named stack context variable via something like <s:set...> or as the value of a "var" ("id" in S2.0) attribute and so on.

Dave

>> use "#session.skillsFound" or "#session[''skillsFound']"
> >
> > musachy
> > >
> > > In my action I put a Set called
> "skillsFound" in the HttpSession. Then
> > > I want to access it (and iterate through it) from
> a jsp, but this line
> > > of code gives a False result:
> > >
> > > <s:if test = "skillsFound !=
> null">
> > >
> > > Is there something I've forgotten to do or
> have I misunderstood things?
> > >
> > > Thanks in advance!
> > >
> > > /Ylva
>
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen
> Interessen!
> Jetzt dabei sein:
> http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_190126.ezm (zipped)
> --- On Sun, 8/17/08, "Stephan Schröder" wrote:
> > i'm pretty sure <s:if test="#skillsFound != null"> works too.
>
> AFAIK the "#" syntax will work only if the variable was defined as a named
> stack context variable via something like <s:set...> or as the value of a
> "var" ("id" in S2.0) attribute and so on.
>
> Dave

good to know.

Thanks,
Stephan
--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

Attachment: user_190128.ezm (zipped)

So it would appear that your servlet engine is also serving as your primary
HTTP stack? running on port 80? If you ran Apache on port 80 instead and
used ajp-proxy for your struts requests, then you could just serve all your
static resources directly from apache.

Now, if you want an integrated security model that covers your Struts and
static resources then things can get sticky. It might be worthwhile to
serve your static files from your J2EE container if I can easily protect
them with a Spring Security configuration, rather than integration with the
Apache auth.

A very common technique for getting some performance boost is to actually
serve your static resources from a different server, so that requests for
these (images, stylesheets, etc) don't take up threads on your application
server... Rails has a nice switch for doing this. I don't think we have a
Struts2 construct for it <s:img name='something.png' ... or <s:resource
environment="dev"...



Roger Varley wrote:
>
> On Saturday 16 August 2008 13:06:19 Al Sutton wrote:
>> Not sure where you get the action-per page is the generally accepted
>> norm, but if your page is purely static (i.e. accesses no variables and
>> includes no forms), go straight to the html page.
>>
>> Not only does this save you the JSP compile/post-compile interpretation
>> time it also allows you to move the page onto an separate Apache HTTPD
>> server to improve performance.
>>
>
> This is where I think I'm getting confused. How do I seperate my static
> HTML
> from my application? Any link http://www.host.com/MyApplication passes
> directly to Struts 2.
>
> Regards
>
>>
>> Roger wrote:
>> > Having followed this group for a while I know that the generally
>> accepted
>> > wisdom is that every page should be handled via an Action. However, I
>> > have an application that is probably going to be 70% static pages with
>> > 30% Strut-able actions to handle form entry etc etc. This means that
>> I'm
>> > going to have an awful lot of action classes that do nothing other than
>> > display the next page which feels kludgy. How would people deal with
>> > this?
>> >
>> > Regards
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>
>
>
> ---------------------------------------------------------------------
> 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_190129.ezm (zipped)
Oliver, did you get this working? I'm having a terrible time getting Struts
to use my TextProvider. I've set

<constant name="struts.xworkTextProvider"
value="com.anodyzed.util.config.ConfigTextProvider"/>

in my struts.xml and overridden all the TextProvider methods in my
BaseAction (that extends ActionSupport) (which really shouldn't be necessary
if Struts actually allows configurable TextProviders).

But it's definitely not working. Any ideas?
(*Chris*)

On Wed, Aug 13, 2008 at 12:29 PM, Olivier Lamy <olamy@(protected):

> Sorry for noise.
> It looks overriding methods from ActionSupport (as it implements
> TextProvider) helps me.
>
> Thanks,
> --
> Olivier
>
> 2008/8/13 Olivier Lamy <olamy@(protected)>:
> > Hi,
> > I'd like to overriding the default TextProvider to use my own
> > implementation (labels come from a database).
> > I have configured in my struts.properties :
> > struts.xworkTextProvider=fqcn of my TextProvider implementation.
> > But at the end it doesn't works :-(.
> >
> > I have found some jira issues some says it's fixed some says no.
> > Is-it possible ? (maybe with an Interceptor and how ?)
> >
> > Thanks in advance,
> > --
> > Olivier
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_190130.ezm (zipped)
Is there an ETA on when 2.1.3 (or greater) will go GA?

Mike

Attachment: user_190131.ezm (zipped)

I do have the same issue. on click of submit, the loadingtext is displaying
but the result in a new page as i am redirect to a action.

Any solutions? please asap.

<action name="activateSubscriber" class="subscriberAction"
     method="activateSubscriber">
     <result name="success" type="redirect-action">viewPartners</result>
   </action>
Waiting for reply......


Jeromy Evans - Blue Sky Minds wrote:
>
> View the html source in the browser.
>
> The head should contain a script like this one from the struts2-showcase:
>
> <script type="text/javascript">
>   // Dojo configuration
>   djConfig = {
>      baseRelativePath: "/struts2-showcase/struts/dojo",
>      isDebug: false,
>      bindEncoding: "UTF-8",
>      debugAtAllCosts: true // not needed, but allows the Venkman
> debugger to work with the includes
>   };
> </script>
> <script type="text/javascript"
>      src="/struts2-showcase/struts/dojo/dojo.js"></script>
> <script type="text/javascript"
>      src="/struts2-showcase/struts/simple/dojoRequire.js"></script>
>
> <script type="text/javascript"
>      src="/struts2-showcase/struts/ajax/dojoRequire.js"></script>
> <script type="text/javascript"
>      src="/struts2-showcase/struts/CommonFunctions.js"></script>
>
>
> In FireBug, you should see all those scripts being found.
>
> xianwinwin wrote:
>>
>> "Check that dojo is setup in the head of your page (view the html)"
>> how do I do that?
>>
>> Thank you!
>>
>>
>> Jeromy Evans - Blue Sky Minds wrote:
>>  
>>> Use the FireBug plugin for FF.
>>>
>>> Check that dojo is setup in the head of your page (view the html) and
>>> that all of the resources it requires are loaded (using the net tab).
>>> Ensure that struts filter is receiving requests for the /struts/*
>>> resources.
>>>
>>> xianwinwin wrote:
>>>  
>>>> :-(
>>>> I think I have an issue with the ajax configuration (I'm not sure).
>>>> How can I verify that my theme="ajax" is configured properly?
>>>>
>>>> thank you!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Jeromy Evans - Blue Sky Minds wrote:
>>>>  
>>>>    
>>>>> No, it seems fine now.
>>>>>
>>>>> Turn on debugging:
>>>>>
>>>>> <s:head theme="ajax" debug="true/>
>>>>>
>>>>> Also use FireBug to see if there's any javascript errors reported.
>>>>>
>>>>>
>>>>> xianwinwin wrote:
>>>>>  
>>>>>      
>>>>>> thanks you for the reply. I added the code:
>>>>>>
>>>>>>   <s:head theme="ajax"/>
>>>>>>
>>>>>> on top, plus
>>>>>>
>>>>>> <s:submit value="GO2" showLoadingText="false" theme="ajax"
>>>>>> targets="two"
>>>>>> />
>>>>>>
>>>>>> but I get the same result - it goes to an empty page with the result
>>>>>> and
>>>>>> not
>>>>>> to the DIV?
>>>>>> :-(
>>>>>>
>>>>>> any idea?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> xianwinwin wrote:
>>>>>>  
>>>>>>    
>>>>>>      
>>>>>>> Hi all,
>>>>>>> I'm trying to return a result to DIV in a form (in the example
>>>>>>> id='two')
>>>>>>>
>>>>>>> this is my form:
>>>>>>>
>>>>>>> <div id='two' style="border: 1px solid yellow;">initial
>>>>>>> content</div>
>>>>>>> <s:form
>>>>>>>      id='theForm2'
>>>>>>>      cssStyle="border: 1px solid green;"
>>>>>>>      action='testing_AjaxRemoteForm'
>>>>>>>      method='post'
>>>>>>>      theme="ajax">
>>>>>>>
>>>>>>>   <input type='text' name='data' value='Struts User'>
>>>>>>>
>>>>>>>   <s:submit value="GO2" theme="ajax" targets="theForm2"/>
>>>>>>>
>>>>>>> </s:form>
>>>>>>>
>>>>>>> when the user clicks the GO2 --> the action, AjaxRemoteForm, is
>>>>>>> 'activated' (showing the 'data' the user has input)
>>>>>>>
>>>>>>>  public String AjaxRemoteForm()
>>>>>>>  {
>>>>>>>    System.out.println("active ajax test 1 with data: "+data);
>>>>>>>    return "test.ajax.2";
>>>>>>>  }
>>>>>>>
>>>>>>> and routed to AjaxResult3.jsp:
>>>>>>>
>>>>>>>      <action name="testing_*" method="{1}"
>>>>>>> class="com.struts.user.account.TestingAction">      
>>>>>>>      <result name="test.1"      type="tiles">test_1</result>
>>>>>>>      <result
>>>>>>> name="test.ajax.2">/pages/welcome/AjaxResult3.jsp</result>
>>>>>>>         <interceptor-ref name="user"/>
>>>>>>>      </action>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The result comes in a NEW page with the 'data' value the user has
>>>>>>> input
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "AjaxResult3.jsp"
>>>>>>> -----------------
>>>>>>> <%@(protected)" %>
>>>>>>>
>>>>>>> <%
>>>>>>>   request.setAttribute("decorator", "none");
>>>>>>>   response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
>>>>>>>   response.setHeader("Pragma","no-cache"); //HTTP 1.0
>>>>>>>   response.setDateHeader ("Expires", 0); //prevents caching at the
>>>>>>> proxy
>>>>>>> server
>>>>>>> %>
>>>>>>>
>>>>>>> The value you entered was: <s:property value="data"/><br/>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Q: How can I incorporate the 'data' value in the DIV and not in a
>>>>>>> new
>>>>>>> page?
>>>>>>>
>>>>>>>  
>>>>>>>      
>>>>>>>        
>>>>>>  
>>>>>>    
>>>>>>      
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>      
>>>>  
>>>>    
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>>  
>>
>>  
>
> ---------------------------------------------------------------------
> 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_190132.ezm (zipped)

Hi,
I want to forbid the user to go back.

This Javascript trick does not work in actions:

<script language="JavaScript">
 window.history.forward(1);
</script>


Is there a way to disable the back button in Struts ?
Thanks



=========================================================

Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.

=========================================================

This message and any attachments (the "message") are confidential,
intended solely for the addressees, and may contain legally privilegedxi
information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.

=========================================================

Attachment: user_190133.ezm (zipped)
In case you missed the reply the first time you asked:

http://www.nabble.com/how-to-disable-the-back-button-in-Struts-1.2.3---to18982816.html#a18989078

Nils-H

On Mon, Aug 18, 2008 at 9:51 AM, Fernandes Celinio SGCF
<Celinio.Fernandes@(protected):
>
> Hi,
> I want to forbid the user to go back.
>
> This Javascript trick does not work in actions:
>
> <script language="JavaScript">
>  window.history.forward(1);
> </script>
>
>
> Is there a way to disable the back button in Struts ?
> Thanks
>
>
>
> =========================================================
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont confidentiels et susceptibles de contenir des informations
> couvertes par le secret professionnel. Ce message est etabli
> a l'intention exclusive de ses destinataires. Toute utilisation
> ou diffusion non autorisee interdite.
> Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
> et ses filiales declinent toute responsabilite au titre de ce message
> s'il a ete altere, deforme falsifie.
>
> =========================================================
>
> This message and any attachments (the "message") are confidential,
> intended solely for the addressees, and may contain legally privilegedxi
> information. Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
> of its subsidiaries or affiliates shall be liable for the message
> if altered, changed or falsified.
>
> =========================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_190134.ezm (zipped)
Hi , when I typed the code in my jsp like the following

<s:checkbox name="searchedPoP%{#stat.index}" value="one" />

In the html file the following code is being shown. By default the attribute
value is being true. Instead I want to give some other value. Kindly help.

<input type="checkbox" name="searchedPoP0" value="true"
id="addPalettePoP_searchedPoP0"/>





Warm regards,

Muralidhar Y

muralidhary@(protected)



US Main: 877 KENSIUM (536.7486)
India Main: +91 9949495511

India Fax:  +91 9949495522

Kensium

200 S Wacker Dr, Suite 3100

Chicago, IL 60606





Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.



_____




Attachment: user_190135.ezm (zipped)

Hi Folks,

We are facing NullPointer Exceptions in IE7, though such error are not coming in IE6, actually this error is coming at our client on IE7 only. We unable to recreate the same at our side even in IE7.

Implementation-Version: 1.0
Specification-Title: Struts Framework
Specification-Version: 1.0
Implementation-Title: Struts Framework
Extension-Name: Struts Framework
Created-By: Ant 1.4.1
Internet Explorer: 7.0
JRE: 1.4.x
Plumtree Portal: version 4.5 WS1
Deployment Server: Weblogic 8.1 SP5

Also please find attached is the screen shot of error for your reference. We have implemented the Struts based web application on Plumtree portal.

If checking log, only one session is showing for each nullpointer exceptions nothing else.

Please let me know if you need anymore details on this.

- Pranab



©2008 gg3721.com - Jax Systems, LLC, U.S.A.