Author Login
Post Reply
user Digest 10 Apr 2008 18:13:14 -0000 Issue 7973
Topics (messages 185250 through 185272):
Re: Need help getting started with remote tabs
185250 by: Jiang, Jane (NIH/NCI) [C]
185258 by: Musachy Barroso
185261 by: Jiang, Jane (NIH/NCI) [C]
Re: how to handle an action with parameter?
185251 by: Lukasz Lenart
Struts2, SiteMesh and Struts Menu
185252 by: Matthew Seaborn
185265 by: Al Sutton
Re: interesting proxy + action chain issue
185253 by: Brad A Cupit
interceptor-stack and param problem
185254 by: Tomasz Pankowski
Re: How to use "Autocompleter" like GMail style.
185255 by: Allen, Daniel
Re: Help using Ajax form validation
185256 by: goelshek
185260 by: Musachy Barroso
Re: Local Host Error
185257 by: Alvaro Ernesto Gomez Cerna
Struts 2.0: Ajax based client side validation "onblur"
185259 by: goelshek
185262 by: Musachy Barroso
Re: retrotranslating struts 2.0.11 not working
185263 by: Paula Estrella
185264 by: Antonio Petrelli
Using closable div in tabbedpanel
185266 by: Gustavo Felisberto
Re: Again: question to interceptors
185267 by: Peter Theissen
Does Struts 2 support clustering?
185268 by: mojoRising
185269 by: Ian Roughley
185270 by: Dave Newton
How to show html generated files?
185271 by: Jerome
Re: 404 Not Found :Parsing error processing resource path /WEB-INF/cfg/struts-config.xml
185272 by: hardik pandya
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_185250.ezm (zipped)Musachy,
Thanks for your suggestion. Do you mean this showcase?
http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/example3.j
sp
I found the source for the jsp, but there is no source code for the
action. Is there a place to download the complete source code?
Thank you,
Jane
-----Original Message-----
From: Musachy Barroso [mailto:musachy@(protected)]
Sent: Wednesday, April 09, 2008 5:38 PM
To: Struts Users Mailing List
Subject: Re: Need help getting started with remote tabs
There are examples in the showcase application.
musachy
On Wed, Apr 9, 2008 at 8:55 PM, Jiang, Jane (NIH/NCI) [C]
<jiangja@(protected):
> Is there a complete working example for the tabbedPanel tag? I found
> this example in the tag reference document. How do I set up the
result
> for AjaxTest.action? I loaded the dynamic contents in that action
and
> directed it to the jsp that displays that content. The action was
> invoked, but the tab shows up empty. I tried to include the jsp
inside
> the s:div tag and still nothing.
>
> <s:tabbedpanel id="test" beforeSelectTabNotifyTopics="/beforeSelect">
> <s:div id="three" label="remote" theme="ajax"
href="/AjaxTest.action"
> >
> One Tab
> </s:div>
> <s:div id="three" label="remote" theme="ajax"
href="/AjaxTest.action"
> >
> Another tab
> </s:div>
> </s:tabbedpanel>
>
> Thanks a lot for your help,
>
> Jane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_185258.ezm (zipped)See the download section on the website:
http://struts.apache.org/download.cgi
musachy
On Thu, Apr 10, 2008 at 1:38 PM, Jiang, Jane (NIH/NCI) [C]
<jiangja@(protected):
> Musachy,
>
> Thanks for your suggestion. Do you mean this showcase?
>
> http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/example3.j
> sp
>
> I found the source for the jsp, but there is no source code for the
> action. Is there a place to download the complete source code?
>
> Thank you,
>
> Jane
>
>
>
> -----Original Message-----
> From: Musachy Barroso [mailto:musachy@(protected)]
> Sent: Wednesday, April 09, 2008 5:38 PM
> To: Struts Users Mailing List
> Subject: Re: Need help getting started with remote tabs
>
> There are examples in the showcase application.
>
> musachy
>
> On Wed, Apr 9, 2008 at 8:55 PM, Jiang, Jane (NIH/NCI) [C]
> <jiangja@(protected):
> > Is there a complete working example for the tabbedPanel tag? I found
> > this example in the tag reference document. How do I set up the
> result
> > for AjaxTest.action? I loaded the dynamic contents in that action
> and
> > directed it to the jsp that displays that content. The action was
> > invoked, but the tab shows up empty. I tried to include the jsp
> inside
> > the s:div tag and still nothing.
> >
> > <s:tabbedpanel id="test" beforeSelectTabNotifyTopics="/beforeSelect">
> > <s:div id="three" label="remote" theme="ajax"
> href="/AjaxTest.action"
> > >
> > One Tab
> > </s:div>
> > <s:div id="three" label="remote" theme="ajax"
> href="/AjaxTest.action"
> > >
> > Another tab
> > </s:div>
> > </s:tabbedpanel>
> >
> > Thanks a lot for your help,
> >
> > Jane
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_185261.ezm (zipped)Thank you. I found my problem was not really with my code. I
accidentally find the remote tab working fine with IE. But it shows
nothing in Firefox. The jsp alone display ok in firefox, I can also
include the jsp using the s:include tag, but when I changed it to remote
tab, nothing shows up on the tab. I did not find any error either.
-----Original Message-----
From: Musachy Barroso [mailto:musachy@(protected)]
Sent: Thursday, April 10, 2008 10:38 AM
To: Struts Users Mailing List
Subject: Re: Need help getting started with remote tabs
See the download section on the website:
http://struts.apache.org/download.cgi
musachy
On Thu, Apr 10, 2008 at 1:38 PM, Jiang, Jane (NIH/NCI) [C]
<jiangja@(protected):
> Musachy,
>
> Thanks for your suggestion. Do you mean this showcase?
>
>
http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/example3.j
> sp
>
> I found the source for the jsp, but there is no source code for the
> action. Is there a place to download the complete source code?
>
> Thank you,
>
> Jane
>
>
>
> -----Original Message-----
> From: Musachy Barroso [mailto:musachy@(protected)]
> Sent: Wednesday, April 09, 2008 5:38 PM
> To: Struts Users Mailing List
> Subject: Re: Need help getting started with remote tabs
>
> There are examples in the showcase application.
>
> musachy
>
> On Wed, Apr 9, 2008 at 8:55 PM, Jiang, Jane (NIH/NCI) [C]
> <jiangja@(protected):
> > Is there a complete working example for the tabbedPanel tag? I
found
> > this example in the tag reference document. How do I set up the
> result
> > for AjaxTest.action? I loaded the dynamic contents in that action
> and
> > directed it to the jsp that displays that content. The action was
> > invoked, but the tab shows up empty. I tried to include the jsp
> inside
> > the s:div tag and still nothing.
> >
> > <s:tabbedpanel id="test"
beforeSelectTabNotifyTopics="/beforeSelect">
> > <s:div id="three" label="remote" theme="ajax"
> href="/AjaxTest.action"
> > >
> > One Tab
> > </s:div>
> > <s:div id="three" label="remote" theme="ajax"
> href="/AjaxTest.action"
> > >
> > Another tab
> > </s:div>
> > </s:tabbedpanel>
> >
> > Thanks a lot for your help,
> >
> > Jane
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_185251.ezm (zipped)Hi,
Define setter setCategory(String value) for NewsAction
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart

Attachment:
user_185252.ezm (zipped)
Has anyone had any experience of using these three
together? I have Struts 2 and SiteMesh working together happily, but soon as I
add Struts Menu I get the error below.
I believe it is due to SiteMesh and not Struts 2 but am not
sure on this.
Has anyone seen this before?
Thanks.
javax.servlet.ServletException: Stream closed
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
root cause
java.io.IOException: Stream closed
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:203)
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:114)
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:172)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:614)
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:119)
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
________________________________________________________________________
CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system.
SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence.
VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipients responsibility to ensure that email is virus free.
AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group.
COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278.

Attachment:
user_185265.ezm (zipped)
Attachment:
user_185253.ezm (zipped)The only problem with the scope plugin is that it will use the session,
which may break the whole notion of POST-redirect-GET: if the data in
the session is removed or replaced by later requests, then pressing the
back or refresh buttons on the initial page with errors will not yield
the same response.
I think it would be cool if the errors were url parameters as part of
the redirect, but there's currently no easy way to do this. Could a
custom interceptor realize that the result is a redirect and turn the
validation errors into url parameters? Or would this need to be a custom
result class (perhaps extending ServletRedirectResult or
ServletActionRedirectResult)?
Brad Cupit
Louisiana State University - UIS
-----Original Message-----
From: Jeromy Evans [mailto:jeromy.evans@(protected)]
Sent: Tuesday, April 08, 2008 6:24 PM
To: Struts Users Mailing List
Subject: Re: interesting proxy + action chain issue
Ian Meikle wrote:
> HI,
>
> I have been following this post with interest since I used the PRG
pattern
> in previous projects.
> We are using struts 2 in are current project and I like the
errorMessages
> behaviour that is part of the Action.
>
> Is it possible to persist these over the PRG cycle ?
> By default I assume they would be lost when we get to the GET stage
since
> they are request scope and the GET is a seperate request than the POST
> that caused the error.
>
>
Hi Ian,
This is an issue that Struts2 needs to handle better. It can be done
but its not as straight-forward as it could be.
The scope interceptor [1] provides this feature. It allows you to
specify which properties should be bound to session or application scope
and injected into the action.
The scoped modeldriven interceptor is for modeldriven actions [2]. Both
are included in the default stack.
The scope plugin allows annotations to specify which properties persist
over a cycle. It's not bundled with struts but I have heard good
comments about it [4].
[1] http://cwiki.apache.org/WW/scope-interceptor.html
[2] http://cwiki.apache.org/WW/scoped-model-driven-interceptor.html
[3] http://cwiki.apache.org/S2PLUGINS/scope-plugin.html
[4] http://article.gmane.org/gmane.comp.jakarta.struts.devel/65052
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_185254.ezm (zipped)Hi
I have something like this:
<interceptor-stack name="myStack">
<interceptor-ref name="interA"/>
<interceptor-ref name="interB">
<param name="parmA">aaa</parm>
</interceptor-ref>
<interceptor-ref name="interC"/>
</interceptor-stack>
....
<action name="myAction"...>
<interceptor-ref name="myStack" >
<param name="interB.parmB">bbb</parm>
</interceptor-ref>
</action>
And the problem is, that only parmB is set, parmA have default value.
To have both params set properly I must set all param on stack or on
action, but how to mix it?
Im using struts 2.0.11.1

Attachment:
user_185255.ezm (zipped)The showcase [1] has an autocompleter example page with demonstrations
of several of its features and accompanying source.
~DVA
[1] http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/
-----Original Message-----
From: Joey [mailto:joey.information@(protected)]
Sent: Thursday, April 10, 2008 6:23 AM
To: Struts Users Mailing List
Subject: How to use "Autocompleter" like GMail style.
Hi Everybody.
Just want to know how to can I use "Autocompleter" as GMail style,
I mean, in GMail website, When I type more than 1 recipient name in
"To:" text box, the text box can complete with each recipient name.
I have checked Antocompleter document in Struts2 website, but didn't
find any useful information.
Thanks
Joey
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
--
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.

Attachment:
user_185256.ezm (zipped)
There is so much talk about Struts 2.1 and so many examples that work only
with 2.1, not 2.0. So where do I download 2.1 from? A GA release is clearly
not available. So why even put examples out there for a distro that is not
available?
Musachy Barroso wrote:
>
> If you are using 2.0.8 or 2.0.6 the AJAX validation was implemented with
> DWR, not Dojo. AJAX validation with Dojo will be(it is) available on 2.1
>
> regards
> musachy
>
> On 6/26/07, King, William S. <William.King@(protected):
>>
>> I've downloaded the showcase, and the example I'm trying to use is under
>> the validation examples, validation (ajax). The generated source code
>> is pointing to some js files that don't exist in the project, so I'm
>> assuming (I know...that's bad) the files are generated by Dojo. I'm
>> having issues finding out how to port dojo into my existing project.
>> Thanks for the reference points, I'm gonna check those out now.
>>
>> Shane
>>
>> -----Original Message-----
>> From: Musachy Barroso [mailto:musachy@(protected)]
>> Sent: Tuesday, June 26, 2007 9:34 AM
>> To: Struts Users Mailing List
>> Subject: Re: Help using Ajax form validation
>>
>> I think you have more than one question :), start by checking out the
>> tutorials:
>>
>> http://struts.apache.org/2.x/docs/tutorials.html
>>
>> and take a look at "Starting with Struts" book:
>>
>> http://www.infoq.com/minibooks/starting-struts2
>>
>> Then you can move to the Dojo stuff:
>>
>> http://struts.apache.org/2.x/docs/ajax-tags.html
>>
>> I would also advise to download Struts Showcase as it has many examples
>> that will help you get started.
>>
>> musachy
>>
>> On 6/26/07, King, William S. <William.King@(protected):
>> >
>> > I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right
>> > direction to use Dojo in my application...it's a web app using
>> > portles, JSPs, Struts2, Ajax. I see in documentation that to utilize
>> > the Ajax form validation I need to install the Dojo toolkit. I've
>> > downloaded the zip file, but it doesn't look like bringing the .jar
>> > file in to my eclipse project will do anything for me. Any help would
>> > be greatly appreciated.
>> >
>> >
>> > W. Shane King
>> >
>> > General Dynamics
>> > Advanced Information Systems
>> > 2673 Commons Blvd., Suite 200
>> > Beavercreek, OH 45431
>> >
>> > Email: william.king@(protected)
>> > Voice: (937) 427-4431
>> > Fax: (937) 427-6416
>> >
>> >
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_185260.ezm (zipped)I feel your pain and there was some talk to branch the wiki for
different versions, but it never happened.
musachy
On Thu, Apr 10, 2008 at 2:32 PM, goelshek <goelshek@(protected):
>
> There is so much talk about Struts 2.1 and so many examples that work only
> with 2.1, not 2.0. So where do I download 2.1 from? A GA release is clearly
> not available. So why even put examples out there for a distro that is not
> available?
>
>
>
>
> Musachy Barroso wrote:
> >
> > If you are using 2.0.8 or 2.0.6 the AJAX validation was implemented with
> > DWR, not Dojo. AJAX validation with Dojo will be(it is) available on 2.1
> >
> > regards
> > musachy
> >
> > On 6/26/07, King, William S. <William.King@(protected):
> >>
> >> I've downloaded the showcase, and the example I'm trying to use is under
> >> the validation examples, validation (ajax). The generated source code
> >> is pointing to some js files that don't exist in the project, so I'm
> >> assuming (I know...that's bad) the files are generated by Dojo. I'm
> >> having issues finding out how to port dojo into my existing project.
> >> Thanks for the reference points, I'm gonna check those out now.
> >>
> >> Shane
> >>
> >> -----Original Message-----
> >> From: Musachy Barroso [mailto:musachy@(protected)]
> >> Sent: Tuesday, June 26, 2007 9:34 AM
> >> To: Struts Users Mailing List
> >> Subject: Re: Help using Ajax form validation
> >>
> >> I think you have more than one question :), start by checking out the
> >> tutorials:
> >>
> >> http://struts.apache.org/2.x/docs/tutorials.html
> >>
> >> and take a look at "Starting with Struts" book:
> >>
> >> http://www.infoq.com/minibooks/starting-struts2
> >>
> >> Then you can move to the Dojo stuff:
> >>
> >> http://struts.apache.org/2.x/docs/ajax-tags.html
> >>
> >> I would also advise to download Struts Showcase as it has many examples
> >> that will help you get started.
> >>
> >> musachy
> >>
> >> On 6/26/07, King, William S. <William.King@(protected):
> >> >
> >> > I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right
> >> > direction to use Dojo in my application...it's a web app using
> >> > portles, JSPs, Struts2, Ajax. I see in documentation that to utilize
> >> > the Ajax form validation I need to install the Dojo toolkit. I've
> >> > downloaded the zip file, but it doesn't look like bringing the .jar
> >> > file in to my eclipse project will do anything for me. Any help would
> >> > be greatly appreciated.
> >> >
> >> >
> >> > W. Shane King
> >> >
> >> > General Dynamics
> >> > Advanced Information Systems
> >> > 2673 Commons Blvd., Suite 200
> >> > Beavercreek, OH 45431
> >> >
> >> > Email: william.king@(protected)
> >> > Voice: (937) 427-4431
> >> > Fax: (937) 427-6416
> >> >
> >> >
> >>
> >>
> >> --
> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Help-using-Ajax-form-validation-tp11305181p16608837.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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_185257.ezm (zipped)Change port is running for apache is port 8888
-----Mensaje original-----
De: Alberto A. Flores [mailto:aaflores@(protected)]
Enviado el: Jueves, 10 de Abril de 2008 07:12 a.m.
Para: Struts Users Mailing List
Asunto: Re: Local Host Error
Also, note that if you have IIS running, you would need to change the listening
port (on either IIS or Apache).
Lukasz Lenart wrote:
>> Hello. To preface I am very new to using Apache. I am attempting to
>> experiment locally, however I cannot connect to local host nor the
>> 127.0.0.1 directly. I am looking to try and get the "IT works!"
>> Apache
>
> Are you using Skype? By default, Skype block port 80 and 443, disable
> such port in Skype or change the default port for Apache.
>
> You can also use netstat -b from command prompt to see all programs
> with opened ports.
>
>
> Regards
--
Alberto A. Flores
http://www.linkedin.com/in/aflores
__________ Informacin de NOD32, revisi n 3016 (20080410) __________
Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com

Attachment:
user_185259.ezm (zipped)
For Struts 2.0 (NOT 2.1):
The documentation for introduction to
http://struts.apache.org/2.0.11.1/docs/ajax-client-side-validation.html Ajax
Client Side Validation says that "The validation occurs on each onblur
event for each form element". The
http://struts.apache.org/2.0.11.1/docs/ajax-validation.html example starts
off by saying that "An example is provided on how to use AJAX validation
with Prototype, in this case the Dojo plugin is not required." So I scroll
down to the bottom of the page and try to follow the Example using
Prototype. However, there are two issues I see with this example.
Firstly, there is no onblur specified for each element. So does this example
really work for onblur?
Secondly, even if I assume that the code for onblur will be put at runtime,
when implementing the said example, my browser tells me that it could not
find "Ajax" which is probably an object in prototype.js. Apparently the src
in the two script declarations:
1) <script language="JavaScript"
src="${pageContext.request.contextPath}/struts/utils.js"
type="text/javascript"></script>
AND
2) <script src="${pageContext.request.contextPath}/js/prototype.js"
type="text/javascript"></script>
cannot be resolved. From all my searching, there has been no clue as to
where I can find these .js files. People say that they are "automagically"
put there. But even for that magic to happen, those files must be present in
the source code of struts. I searched through the entire source code and it
just does not have either of those two files.
To conclude, I am trying to get Ajax based client side validation to work
onblur at each element (NOT onsubmit of the form; that works fine). But
there seems to be no example - not even in the showcase tutorial. If anyone
has got it to work, I would really appreciate if you could share your
example with me.
Thanks.
PS: In many places in the documentation I see notifications to the effect:
"This documentation refers to version 2.1 which has not been released yet."
Isn't that kind of ridiculous? Providing documentation for something that
isn't even released is something I cannot wrap my head around. If someone
can explain that concept to a novice user like myself, it would be a great
help.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_185262.ezm (zipped)The page that you are refering to is for 2.1, as stated on the top of
the page. The reason why the documentation is all mixed together wit
"2.1" warnings on some pages is because we don't have branches on the
wiki (or separate wikis) for different versions, as I mentioned on
another thread.
regards
musachy
On Thu, Apr 10, 2008 at 2:38 PM, goelshek <goelshek@(protected):
>
> For Struts 2.0 (NOT 2.1):
>
> The documentation for introduction to
> http://struts.apache.org/2.0.11.1/docs/ajax-client-side-validation.html Ajax
> Client Side Validation says that "The validation occurs on each onblur
> event for each form element". The
> http://struts.apache.org/2.0.11.1/docs/ajax-validation.html example starts
> off by saying that "An example is provided on how to use AJAX validation
> with Prototype, in this case the Dojo plugin is not required." So I scroll
> down to the bottom of the page and try to follow the Example using
> Prototype. However, there are two issues I see with this example.
>
> Firstly, there is no onblur specified for each element. So does this example
> really work for onblur?
>
> Secondly, even if I assume that the code for onblur will be put at runtime,
> when implementing the said example, my browser tells me that it could not
> find "Ajax" which is probably an object in prototype.js. Apparently the src
> in the two script declarations:
>
> 1) <script language="JavaScript"
> src="${pageContext.request.contextPath}/struts/utils.js"
> type="text/javascript"></script>
>
> AND
>
> 2) <script src="${pageContext.request.contextPath}/js/prototype.js"
> type="text/javascript"></script>
>
> cannot be resolved. From all my searching, there has been no clue as to
> where I can find these .js files. People say that they are "automagically"
> put there. But even for that magic to happen, those files must be present in
> the source code of struts. I searched through the entire source code and it
> just does not have either of those two files.
>
> To conclude, I am trying to get Ajax based client side validation to work
> onblur at each element (NOT onsubmit of the form; that works fine). But
> there seems to be no example - not even in the showcase tutorial. If anyone
> has got it to work, I would really appreciate if you could share your
> example with me.
>
> Thanks.
>
> PS: In many places in the documentation I see notifications to the effect:
> "This documentation refers to version 2.1 which has not been released yet."
> Isn't that kind of ridiculous? Providing documentation for something that
> isn't even released is something I cannot wrap my head around. If someone
> can explain that concept to a novice user like myself, it would be a great
> help.
> --
> View this message in context: http://www.nabble.com/Struts-2.0%3A-Ajax-based-client-side-validation-%22onblur%22-tp16608849p16608849.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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_185263.ezm (zipped)Antonio Petrelli wrote:
>2008/4/10, Paula Estrella <Paula.Estrella@(protected)>:
>
>
>> StandardContext[/project]Exception starting filter struts2
>>
java.lang.UnsupportedClassVersionError:
>>project/FileUploadAction (Unsupported major.minor version 49.0)
>>
>>
>
>As Al Sutton noticed before, is *your* class that is compiled with
>Java 5 and put into a JDK 1.4 environment.
>
>Antonio
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>
>
we don't think so because we recompiled the java clases on the server
with jdk 1.4 and we get the same error message ... is it right to have
in the lib folder all these libs ?
backport-util-concurrent-3.0.jar
commons-fileupload-j4-1.1.1.jar
commons-io-j4-1.1.jar
commons-logging-api-j4-1.1.jar
commons-logging-j4-1.0.4.jar
freemarker-j4-2.3.8.jar
ognl-j4-2.6.11.jar
retrotranslator-runtime-1.2.2.jar
retrotranslator-transformer-1.2.2.jar
struts2-core-j4-2.0.11.jar
xwork-j4-2.0.4.jar
thanks,
Paula
error from catalina
2008-04-10 16:20:15,123 [main] WARN
org.apache.struts2.config.Settings - Settings: Could not parse struts.locale setting, substituting default
VM locale
2008-04-10 16:20:15,793 [main] ERROR tomcat.localhost./project.Context -
Error filterStart
2008-04-10 16:20:15,793 [main] ERROR tomcat.localhost./project.Context -
Context startup failed due to previous errors

Attachment:
user_185264.ezm (zipped)2008/4/10, Paula Estrella <Paula.Estrella@(protected)>:
>
> Antonio Petrelli wrote:
>
> 2008/4/10, Paula Estrella <Paula.Estrella@(protected)>:
> >
> >
> > > StandardContext[/project]Exception starting filter struts2
> > >
java.lang.UnsupportedClassVersionError:
> > > project/FileUploadAction (Unsupported major.minor version 49.0)
> > >
> > >
> >
> > As Al Sutton noticed before, is *your* class that is compiled with
> > Java 5 and put into a JDK 1.4 environment.
> >
> > Antonio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
> we don't think so because we recompiled the java clases on the server with
> jdk 1.4 and we get the same error message ...
Ok, sorry if I seem rude, but if you still receive your class called
"FileUploadAction" having a version number of 49.0, it means that it has
been compiled with Java 5 (JDK1.4 has a version of 48.0).
So you probably need to clean up your classes and recompile completely your
project.
is it right to have in the lib folder all these libs ?
> backport-util-concurrent-3.0.jar
> commons-fileupload-j4-1.1.1.jar
> commons-io-j4-1.1.jar
> commons-logging-api-j4-1.1.jar
> commons-logging-j4-1.0.4.jar
> freemarker-j4-2.3.8.jar
> ognl-j4-2.6.11.jar
> retrotranslator-runtime-1.2.2.jar
> retrotranslator-transformer-1.2.2.jar
> struts2-core-j4-2.0.11.jar
> xwork-j4-2.0.4.jar
AFAIK only xwork and struts2-core need to be retrotranslated. The other
packages are already compiled against JDK 1.4
Antonio

Attachment:
user_185266.ezm (zipped)I'm running struts 2.0.11.1 and trying to use some AJAX things with the
provided dojo.
<s:tabbedpanel id="contacts_list_container">
<s:url id="cListUrl" action="SimpleListContacts"/>
<s:div id="contacts_list" href="%{cListUrl}" theme="ajax"
listenTopics="show_contacts" formId="msg_form"/>
</s:tabbedpanel>
This is working, but if I add a closable="true" to the <s:div /> this
will crash as there is not such thing.
How can I make this work?
This mail serves this purpose and another that is more of a complain on
the lack and confusion of user documentation on struts2. For example:
why does:
http://struts.apache.org/2.0.11.1/docs/ajax-and-javascript-recipes.html
Contains: "This documentation refers to version *2.1* which has not been
released yet."
--
Gustavo Felisberto.
WIT-Software, Lda
Coimbra (Portugal), San Jose (California)
Phone: +351239801030
Web: http://www.wit-software.com

Attachment:
signature.asc (zipped)
Attachment:
user_185267.ezm (zipped)Hi all, dear Ralf,
thanks a lot for your answer it was really helpful.
Honestly, I didnt understand the call-stack-principle
behind the interceptors at all. So your hint:
"To understand recursion, you must understand recursion"
was a good one and also this picture:
[1] http://struts.apache.org/2.0.11.1/docs/big-picture.html
I already knew that design from the event handling of
a Javascript API (Map24 AJAX API)
However, what I thought, was one has to determine the
order in that the interceptors are called, in the action tag:
all interceptors that are before the result are also called
before the action, then the action is called, then the result
and those the interceptors are called, which are written AFTER
the result tags. OK, in retrospect my idea was also not
so intelligent ;-)
Thx & best regards
Peter

Attachment:
user_185268.ezm (zipped)
We have struts running great on a single server but when we test in our
clustered environment there are problems: The user is not staying on the
same server the initial request came in on, so their session is getting
lost. Does struts 2 support a clustered enterprise environment? If so, is
there anything special that needs to be done to make this work? Our
environment is Apache,weblogic9.2, struts2.
Thanks!
--John
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_185269.ezm (zipped)How are you clustering the HTTP session? Usually this involves
configuration of the app server so that it is stored in some type of
non-transient storage.
/Ian
mojoRising wrote:
> We have struts running great on a single server but when we test in our
> clustered environment there are problems: The user is not staying on the
> same server the initial request came in on, so their session is getting
> lost. Does struts 2 support a clustered enterprise environment? If so, is
> there anything special that needs to be done to make this work? Our
> environment is Apache,weblogic9.2, struts2.
>
> Thanks!
> --John
>

Attachment:
user_185270.ezm (zipped)--- mojoRising <jpiser@(protected):
> We have struts running great on a single server but when we test in our
> clustered environment there are problems: The user is not staying on the
> same server the initial request came in on, so their session is getting
> lost. Does struts 2 support a clustered enterprise environment? If so, is
> there anything special that needs to be done to make this work? Our
> environment is Apache,weblogic9.2, struts2.
This is almost certainly a server configuration issue; in general nothing on
the framework / application side should have anything to do with session
management or even be aware of it.
Dave

Attachment:
user_185271.ezm (zipped)Hi all
i'm using Struts to make a web interface for a bioinformatic application
developed here. With Struts i can check out the validity of the input
data, control the job running on our cluster, and get back the result.
Here is my problem: the result are made of various html files. How can i
show all this file using my web application? My first idea was to
extract all this files on an apache server and redirect with a struts
action to point on this page. But i would like to put all this files on
a temporal directory on my web applcation. This is possible with Struts?
Hope that's someone can give me some idea..
Thank's all for this very good stuff.
Best regards.
--
-- Jérôme
Qui s'est brûlé la langue n'oublie plus de souffler sur sa soupe.
(Proverbe allemand)

Attachment:
user_185272.ezm (zipped)Hello All,
I get this error, when I click on submit button to Action Class
*404 Not Found :
Servlet error:* Parsing error processing resource path
/WEB-INF/cfg/struts-config.xml
I am using <set-property> tags inside action-mapping to access Application
Module from Bc4jContext in struts action class. When I comment those tags,
it does not give that eror
These two errors are consistent and I do not know, whats the problem,
Everything is included in classpath, but still TLD *warnings* (not a
registered namespace) on all jsp pages comes up.
This is my : struts-config.xml DTD
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN" "
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
can somebody please point me whats wrong here ??
Thank you all in advance,