Re: Doc for Struts2

2011-07-19 Thread Dave Newton
Wiki outer blog?! Ah auto-complete, you complete me.

"I'll add something to the wiki or blog about it this weekend."

Sheesh.

Dave

On Tuesday, July 19, 2011, Dave Newton  wrote:
> There's nothing about custom validators there, though, unless I missed it. 
> The validation annotations page discusses it briefly, but I don't think it 
> has a complete example either.
> If I have time I'll add something to the wiki outer blog about it this 
> weekend.
> Dave
>
> On Jul 19, 2011 11:19 PM, "Jeff Black"  wrote:> 
> Ankit -- In addition to the following documentation?
>>
>> http://struts.apache.org/2.2.3/docs/validation.html
>>
>> jb
>> /
>>
>>
>>
>>
>> 
>> From: Ankit Jain 
>> To: Struts Users Mailing List 
>> Sent: Tue, July 19, 2011 7:27:44 AM
>> Subject: Doc for Struts2
>>
>> Hi,
>>
>> If anybody can let me know some good user doc which tells how to add
>> validations using validator framework in struts2.
>>
>> thanks
>>
>>
>> Ankit
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Doc for Struts2

2011-07-19 Thread Dave Newton
There's nothing about custom validators there, though, unless I missed it.
The validation annotations page discusses it briefly, but I don't think it
has a complete example either.

If I have time I'll add something to the wiki outer blog about it this
weekend.

Dave
 On Jul 19, 2011 11:19 PM, "Jeff Black"  wrote:
> Ankit -- In addition to the following documentation?
>
> http://struts.apache.org/2.2.3/docs/validation.html
>
> jb
> /
>
>
>
>
> 
> From: Ankit Jain 
> To: Struts Users Mailing List 
> Sent: Tue, July 19, 2011 7:27:44 AM
> Subject: Doc for Struts2
>
> Hi,
>
> If anybody can let me know some good user doc which tells how to add
> validations using validator framework in struts2.
>
> thanks
>
>
> Ankit


Re: Struts2 - Ajax submit not working: Please advise

2011-07-19 Thread jayakarjayaraman
hi,

 Even i was getting the same error. I hosted my application in firefox and
the submit was successful and even the result was showing.

Then i tried hosting the application in IE version 8,it was working fine.

I hope u r trying to host application in IE version 7.

Still i am not able to trace out why its not working in IE 7. any one knows
please reply.


 

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts2-Ajax-submit-not-working-Please-advise-tp3495486p4613051.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Doc for Struts2

2011-07-19 Thread Jeff Black
Ankit -- In addition to the following documentation?

http://struts.apache.org/2.2.3/docs/validation.html

jb
/





From: Ankit Jain 
To: Struts Users Mailing List 
Sent: Tue, July 19, 2011 7:27:44 AM
Subject: Doc for Struts2

Hi,

If anybody can let me know some good user doc which tells how to add
validations using validator framework in struts2.

thanks


Ankit


Re: Doubt on Struts 2 Architechture

2011-07-19 Thread Steven Yang
and by the way, interceptors dont get "called again" after action is
completed they just havent "ended" when the action is and result is done.

On Tue, Jul 19, 2011 at 10:17 PM,  wrote:

> The struts2 architecture allows for preprocessing and post processing of
> requests.
>
> What if you wanted to record how long it takes for a request to be
> processed?
>
>  You could have an interceptor on the top of your request that records the
> start time and the same interceptor will record the end time when the
> request is on its way out.
>
> The struts2 in action book has an excellent chapter on interceptors which
> I highly recommend reading.
>
> Hope this helps.
>
> Mitch
>
>
>
> From:   mohan rao 
> To: user@struts.apache.org
> Date:   07/18/2011 09:06 PM
> Subject:Doubt on Struts 2 Architechture
>
>
>
> Interceptors stack will be triggered before action class is executed and
> after the result. Why it's need to execute interceptors stack once again
> after result. I used all the interceptors before triggering an action and
> what's the purpose of calling these interceptors once again after action
> without doing anything. Moreover it will take time to execute all the
> interceptors once again. why the sturts2 architecture is designed like
> this.
> Please through some light on this. Thank you very much.
>
> --
> View this message in context:
>
> http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html
>
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>


Re: [S1] Validator configuration error [bump]

2011-07-19 Thread Dave Newton
If it works, I wouldn't worry about it.

I'm not sure if anybody is planning any further 1.x releases, to be
honest; maybe if a patch is filed against the ticket someone would
apply it, but I'm not sure who (Paul, are you still doing S1 stuff?)

Dave

On Tue, Jul 19, 2011 at 5:17 PM, Christopher Schultz
 wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> All,
>
> Does anyone have any ideas about my post?
>
> - -chris
>
> On 6/30/2011 11:02 PM, Christopher Schultz wrote:
>> All,
>>
>> struts-1.3.8 commons-validator-1.3.1
>>
>> I recently started using a dynamic form  attribute
>> called "reset". It's documented to allow you to use either "true" or
>> "false" or any combination of comma-separated HTTP methods that will
>> trigger the form field to be blanked-out in the form before data from
>> the request is applied to it.
>>
>> From struts-1.3.dtd:
>>
>> "   > form-property  className      %ClassName;     #IMPLIED> > form-property  initial        CDATA           #IMPLIED> > form-property  name           %PropName;      #REQUIRED> > form-property  reset          %Boolean;       #IMPLIED> > form-property  size           %Integer;       #IMPLIED> > form-property  type           %ClassName;     #REQUIRED>
>>
>> The "reset" attribute is declared as "%Boolean;" which is:
>>
>> 
>>
>> This causes the following errors during configuration:
>>
>> 2011-06-30 22:49:33,658 [main] ERROR
>> org.apache.commons.digester.Digester- Parse Error at line 18 column
>> 86: Attribute "reset" with value "POST" must have a value from the
>> list "true false yes no ". org.xml.sax.SAXParseException: Attribute
>> "reset" with value "POST" must have a value from the list "true false
>> yes no ".
>>
>> I checked, and it does not look like there is an updated
>> struts-1.3.x.dtd for me to use with any fix for this.
>>
>> Oddly enough, the configuration itself seems to load and work
>> properly. Maybe Struts reports SAXParseExceptions but doesn't
>> actually stop processing? The configuration works as expected... it
>> just has this nasty configuration error whenever we start up.
>>
>> First, does anyone see a reason to worry about the error, given that
>> everything seems to actually work.
>>
>> Second, since S1 hasn't seen a release since 2008, it is even worth
>> filing a bug and getting it fixed if there isn't likely to be
>> another 1.3.x release for a while?
>>
>> Thanks, -chris
>>
>> -
>>
>>
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk4l9FkACgkQ9CaO5/Lv0PCzIQCfYYYJrbO+9u4tjEexFZs4jAIV
> iq4AoICuGL1Heci8eqGScMCQgSiVL6TF
> =p6wC
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S1] Validator configuration error [bump]

2011-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Does anyone have any ideas about my post?

- -chris

On 6/30/2011 11:02 PM, Christopher Schultz wrote:
> All,
> 
> struts-1.3.8 commons-validator-1.3.1
> 
> I recently started using a dynamic form  attribute
> called "reset". It's documented to allow you to use either "true" or
> "false" or any combination of comma-separated HTTP methods that will
> trigger the form field to be blanked-out in the form before data from
> the request is applied to it.
> 
> From struts-1.3.dtd:
> 
> "form-property  className  %ClassName; #IMPLIED>  form-property  initialCDATA   #IMPLIED>  form-property  name   %PropName;  #REQUIRED>  form-property  reset  %Boolean;   #IMPLIED>  form-property  size   %Integer;   #IMPLIED>  form-property  type   %ClassName; #REQUIRED>
> 
> The "reset" attribute is declared as "%Boolean;" which is:
> 
> 
> 
> This causes the following errors during configuration:
> 
> 2011-06-30 22:49:33,658 [main] ERROR 
> org.apache.commons.digester.Digester- Parse Error at line 18 column
> 86: Attribute "reset" with value "POST" must have a value from the
> list "true false yes no ". org.xml.sax.SAXParseException: Attribute
> "reset" with value "POST" must have a value from the list "true false
> yes no ".
> 
> I checked, and it does not look like there is an updated 
> struts-1.3.x.dtd for me to use with any fix for this.
> 
> Oddly enough, the configuration itself seems to load and work
> properly. Maybe Struts reports SAXParseExceptions but doesn't
> actually stop processing? The configuration works as expected... it
> just has this nasty configuration error whenever we start up.
> 
> First, does anyone see a reason to worry about the error, given that 
> everything seems to actually work.
> 
> Second, since S1 hasn't seen a release since 2008, it is even worth 
> filing a bug and getting it fixed if there isn't likely to be
> another 1.3.x release for a while?
> 
> Thanks, -chris
> 
> -
>
> 
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4l9FkACgkQ9CaO5/Lv0PCzIQCfYYYJrbO+9u4tjEexFZs4jAIV
iq4AoICuGL1Heci8eqGScMCQgSiVL6TF
=p6wC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Problems with JSONWriter loading classes from Class.forName

2011-07-19 Thread Bruno Borges
I'm not sure about the issue, but I'm now working on a project that has a
fork of the json plugin of Struts 2.1.8.1.

The only difference is this one:

Index: src/main/java/org/apache/struts2/json/JSONWriter.java
===
--- src/main/java/org/apache/struts2/json/JSONWriter.java (revision 1148509)
+++ src/main/java/org/apache/struts2/json/JSONWriter.java (working copy)
@@ -192,9 +192,14 @@
 Method baseAccessor = null;
 if (clazz.getName().indexOf("$$EnhancerByCGLIB$$") > -1) {
 try {
-baseAccessor = Class.forName(
-clazz.getName().substring(0,
clazz.getName().indexOf("$$"))).getMethod(
-accessor.getName(),
accessor.getParameterTypes());
+ baseAccessor = Thread
+ .currentThread()
+ .getContextClassLoader()
+ .loadClass(
+ clazz.getName().substring(0,
+ clazz.getName().indexOf("$$")))
+ .getMethod(accessor.getName(),
+ accessor.getParameterTypes());
 } catch (Exception ex) {
 LOG.debug(ex.getMessage(), ex);
 }


I think the problem is that projects that use this and are installed on IBM
WebSphere, are having problems. The JAR is deployed as a SharedLib and so,
goes to the parent classloader of the Application. Using Thread's
contextClassLoader seems to fix the problem because that's the one that have
the project's class that will be exported to JSON.

I've tracked this class until trunk and haven't seen any difference about
how it loads CGLib classes.

Shouldn't JSON use the Thread's contextClassLoader, which is a bottom
classloader?

Thanks,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


chaining not working in struts2.2.3

2011-07-19 Thread Alexander Kostadinov
Hi Everyone,
I recently upgraded from struts2.1.6 to struts2.2.3. I had been using
chaining to forward copy the values of public fields but it looks like that
doesn't work in struts2.2.3... instead, chaining only works for fields that
have an explicit getter and setter. My question is if there is anything that
I can do be able to continue using public fields as opposed to getters and
setters?
Thanks,
--kosty
"one must imagine sisyphus happy" ~ camus


Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Emi Lu

Hi Chris,


Depends whether the source jar contains just the source, or the source
and binaries.  Why do you feel the need to put the source files in the
run-time directory?  It just takes up more time and memory for the JVM
to parse the indexes of useless jar files.


To browse source codes and for simplification, I just loaded both jars 
into eclipse. I will probably pointing to my local source jars in eclipse.


Thank you,
Emi




On Tue, Jul 19, 2011 at 10:57 AM, Emi Lu mailto:em...@encs.concordia.ca>> wrote:



Probably because of what the exception says; try removing the
extra jar
file.


You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.__jar
and struts2-jquery-plugin-3.1.0-__source.jar into the project.

The system complained about this. After I remove the source jar.
Compiled successfully.

Normally, loaded both the .jar and the source jar should not be a
problem, shouldn't it?

Emi




On Jul 19, 2011 12:12 PM, "Emi Lu" mailto:em...@encs.concordia.ca>
>> wrote:
 > Hello List,
 >
 > I got the following exception, could someone tell me what
cause it?
 >
 > I am using struts2.2.3 + tiles2.2.2 + springframework3.05 +
ognl3.0.2 +
 > freemarker2.3.18
 >
 > Thanks alot!
 > Emi
 >
 > --
 >
 > SEVERE: Exception starting filter struts2
 > Unable to load configuration. - bean -
 >

jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125
 > at
org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:437)
 > at
 >

org.apache.struts2.dispatcher.__ng.InitOperations.__initDispatcher(InitOperations.__java:69)
 > at
 >

org.apache.struts2.dispatcher.__ng.filter.__StrutsPrepareAndExecuteFilter.__init(__StrutsPrepareAndExecuteFilter.__java:51)
 > at
 >

org.apache.catalina.core.__ApplicationFilterConfig.__getFilter(__ApplicationFilterConfig.java:__295)
 > at
 >

org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422)
 > at
 >

org.apache.catalina.core.__ApplicationFilterConfig.__(ApplicationFilterConfig.java:__115)
 > at
 >

org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4071)
 > at
 >

org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4725)
 > at
 >

org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276)
 > at
 >

org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625)
 > at
 >

org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.java:136)
 > at
javax.servlet.http.__HttpServlet.service(__HttpServlet.java:617)
 > at
javax.servlet.http.__HttpServlet.service(__HttpServlet.java:717)
 > at
 >

org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__290)
 > at
 >

org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206)
 > at
 >

org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:186)
 > at
 >

org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235)
 > at
 >

org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206)
 > at
 >

org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233)
 > at
 >

org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191)
 > at
 >

org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563)
 > at
 >

org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:127)
 > at
 >

org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:102)
 > at
 >

org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:109)
 > at
 >

org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:298)
 > at
 >

org.apache.coyote.http11.__Http11Processor.process(__Http11Processor.java:859)
 > at
 >

org.apache.coyote.http11.__Http11Protocol$__Http11ConnectionHandler.__process(Http11Protocol.java:__588)
 > at

Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Chris Pratt
Depends whether the source jar contains just the source, or the source and
binaries.  Why do you feel the need to put the source files in the run-time
directory?  It just takes up more time and memory for the JVM to parse the
indexes of useless jar files.
  (*Chris*)

On Tue, Jul 19, 2011 at 10:57 AM, Emi Lu  wrote:

>
>
>  Probably because of what the exception says; try removing the extra jar
>> file.
>>
>
> You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.**jar and
> struts2-jquery-plugin-3.1.0-**source.jar into the project.
>
> The system complained about this. After I remove the source jar. Compiled
> successfully.
>
> Normally, loaded both the .jar and the source jar should not be a problem,
> shouldn't it?
>
> Emi
>
>
>
>
>> On Jul 19, 2011 12:12 PM, "Emi Lu" > > wrote:
>>  > Hello List,
>>  >
>>  > I got the following exception, could someone tell me what cause it?
>>  >
>>  > I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 +
>>  > freemarker2.3.18
>>  >
>>  > Thanks alot!
>>  > Emi
>>  >
>>  > --
>>  >
>>  > SEVERE: Exception starting filter struts2
>>  > Unable to load configuration. - bean -
>>  >
>> jar:file:/WEB-INF/lib/struts2-**jquery-plugin-3.1.0.jar!/**
>> struts-plugin.xml:27:125
>>  > at org.apache.struts2.dispatcher.**Dispatcher.init(Dispatcher.**
>> java:437)
>>  > at
>>  >
>> org.apache.struts2.dispatcher.**ng.InitOperations.**
>> initDispatcher(InitOperations.**java:69)
>>  > at
>>  >
>> org.apache.struts2.dispatcher.**ng.filter.**
>> StrutsPrepareAndExecuteFilter.**init(**StrutsPrepareAndExecuteFilter.**
>> java:51)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterConfig.**getFilter(**
>> ApplicationFilterConfig.java:**295)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterConfig.**setFilterDef(**
>> ApplicationFilterConfig.java:**422)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterConfig.**
>> (ApplicationFilterConfig.java:**115)
>>  > at
>>  >
>> org.apache.catalina.core.**StandardContext.filterStart(**
>> StandardContext.java:4071)
>>  > at
>>  > org.apache.catalina.core.**StandardContext.start(**
>> StandardContext.java:4725)
>>  > at
>>  >
>> org.apache.catalina.manager.**ManagerServlet.start(**
>> ManagerServlet.java:1276)
>>  > at
>>  >
>> org.apache.catalina.manager.**HTMLManagerServlet.start(**
>> HTMLManagerServlet.java:625)
>>  > at
>>  >
>> org.apache.catalina.manager.**HTMLManagerServlet.doGet(**
>> HTMLManagerServlet.java:136)
>>  > at javax.servlet.http.**HttpServlet.service(**HttpServlet.java:617)
>>  > at javax.servlet.http.**HttpServlet.service(**HttpServlet.java:717)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterChain.**internalDoFilter(**
>> ApplicationFilterChain.java:**290)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
>> ApplicationFilterChain.java:**206)
>>  > at
>>  >
>> org.apache.catalina.filters.**CsrfPreventionFilter.doFilter(**
>> CsrfPreventionFilter.java:186)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterChain.**internalDoFilter(**
>> ApplicationFilterChain.java:**235)
>>  > at
>>  >
>> org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
>> ApplicationFilterChain.java:**206)
>>  > at
>>  >
>> org.apache.catalina.core.**StandardWrapperValve.invoke(**
>> StandardWrapperValve.java:233)
>>  > at
>>  >
>> org.apache.catalina.core.**StandardContextValve.invoke(**
>> StandardContextValve.java:191)
>>  > at
>>  >
>> org.apache.catalina.**authenticator.**AuthenticatorBase.invoke(**
>> AuthenticatorBase.java:563)
>>  > at
>>  >
>> org.apache.catalina.core.**StandardHostValve.invoke(**
>> StandardHostValve.java:127)
>>  > at
>>  >
>> org.apache.catalina.valves.**ErrorReportValve.invoke(**
>> ErrorReportValve.java:102)
>>  > at
>>  >
>> org.apache.catalina.core.**StandardEngineValve.invoke(**
>> StandardEngineValve.java:109)
>>  > at
>>  >
>> org.apache.catalina.connector.**CoyoteAdapter.service(**
>> CoyoteAdapter.java:298)
>>  > at
>>  >
>> org.apache.coyote.http11.**Http11Processor.process(**
>> Http11Processor.java:859)
>>  > at
>>  >
>> org.apache.coyote.http11.**Http11Protocol$**Http11ConnectionHandler.**
>> process(Http11Protocol.java:**588)
>>  > at
>> org.apache.tomcat.util.net.**JIoEndpoint$Worker.run(**
>> JIoEndpoint.java:489)
>>  > at java.lang.Thread.run(Thread.**java:662)
>>  > Caused by: Unable to load configuration. - bean -
>>  >
>> jar:file:/WEB-INF/lib/struts2-**jquery-plugin-3.1.0.jar!/**
>> struts-plugin.xml:27:125
>>  > at
>>  >
>> com.opensymphony.xwork2.**config.ConfigurationManager.**getConfiguration(
>> **ConfigurationManager.java:69)
>>  > at
>>  >
>> org.apache.struts2.dispatcher.**Dispatcher.init_**PreloadConfiguration(**
>> Dispatcher.java:380)
>>  > at org.apache.struts2.dispatcher.**Dispatcher.init(Dispatcher.**
>> java:424)
>>  > ... 28 more
>>  > Caused by: Unable to load bean: type:org.apache.struts2.views.**
>> TagLibrary
>>  > class:com.jg

Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Emi Lu




Probably because of what the exception says; try removing the extra jar
file.


You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.jar and 
struts2-jquery-plugin-3.1.0-source.jar into the project.


The system complained about this. After I remove the source jar. 
Compiled successfully.


Normally, loaded both the .jar and the source jar should not be a 
problem, shouldn't it?


Emi





On Jul 19, 2011 12:12 PM, "Emi Lu" mailto:em...@encs.concordia.ca>> wrote:
 > Hello List,
 >
 > I got the following exception, could someone tell me what cause it?
 >
 > I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 +
 > freemarker2.3.18
 >
 > Thanks alot!
 > Emi
 >
 > --
 >
 > SEVERE: Exception starting filter struts2
 > Unable to load configuration. - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
 > at
 >
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
 > at
 >
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
 > at
 >
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 > at
 >
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 > at
 >
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
 > at
 >
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
 > at
 > org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
 > at
 >
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
 > at
 >
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
 > at
 >
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
 > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 > at
 >
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 > at
 >
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 > at
 >
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 > at
 >
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
 > at
 >
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 > at
 >
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 > at
 >
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 > at
 >
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 > at
 >
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 > at
 >
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 > at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 > at java.lang.Thread.run(Thread.java:662)
 > Caused by: Unable to load configuration. - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at
 >
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
 > at
 >
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
 > at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
 > ... 28 more
 > Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary
 > class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at
 >
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)
 > at
 >
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
 > at
 >
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
 > at
 >
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
 > ... 30 more
 > Caused by: Bean type interface org.apache.struts2.views.TagLibrary with
 > the name sj has already been loaded by bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125

 > - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at
 >
com.opensymphony.xwork2.config.providers.XmlConfiguration

Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Emi Lu




Probably because of what the exception says; try removing the extra jar
file.


You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.jar and 
struts2-jquery-plugin-3.1.0-source.jar into the project.


The system complained about this. After I remove the source jar. 
Compiled successfully.


Normally, loaded both the .jar and the source jar should not be a 
problem, shouldn't it?


Emi





On Jul 19, 2011 12:12 PM, "Emi Lu" mailto:em...@encs.concordia.ca>> wrote:
 > Hello List,
 >
 > I got the following exception, could someone tell me what cause it?
 >
 > I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 +
 > freemarker2.3.18
 >
 > Thanks alot!
 > Emi
 >
 > --
 >
 > SEVERE: Exception starting filter struts2
 > Unable to load configuration. - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
 > at
 >
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
 > at
 >
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
 > at
 >
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 > at
 >
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 > at
 >
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
 > at
 >
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
 > at
 > org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
 > at
 >
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
 > at
 >
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
 > at
 >
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
 > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 > at
 >
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 > at
 >
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 > at
 >
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 > at
 >
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 > at
 >
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
 > at
 >
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 > at
 >
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 > at
 >
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 > at
 >
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 > at
 >
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 > at
 >
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 > at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 > at java.lang.Thread.run(Thread.java:662)
 > Caused by: Unable to load configuration. - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at
 >
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
 > at
 >
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
 > at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
 > ... 28 more
 > Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary
 > class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at
 >
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)
 > at
 >
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
 > at
 >
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
 > at
 >
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
 > ... 30 more
 > Caused by: Bean type interface org.apache.struts2.views.TagLibrary with
 > the name sj has already been loaded by bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125

 > - bean -
 >
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
 > at
 >
com.opensymphony.xwork2.config.providers.XmlConfiguration

Re: Struts 1.1 and ajax

2011-07-19 Thread Máximo Castillo
Hi,

You can do some research about DWR and jQuery to add Ajax stuff.

Regards,
Max

On Tue, Jul 19, 2011 at 2:24 PM, vicky b  wrote:

> HI ,
>
>   I am using struts 1.1 in  our application , i am performance problem
> hence i have decided to use  ajax where ever possible.
> I have this page where it has large no input values in the form that is my
> form is big when i want to use ajax i have to construct i am facing tough
> time please let me know how can i  add ajax to my struts application
>
> --
> *Thanks & Regards
>  Vickyb
>
> *
>


Struts 1.1 and ajax

2011-07-19 Thread vicky b
HI ,

   I am using struts 1.1 in  our application , i am performance problem
hence i have decided to use  ajax where ever possible.
I have this page where it has large no input values in the form that is my
form is big when i want to use ajax i have to construct i am facing tough
time please let me know how can i  add ajax to my struts application

-- 
*Thanks & Regards
 Vickyb

*


Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Dave Newton
Probably because of what the exception says; try removing the extra jar
file.

Dave
 On Jul 19, 2011 12:12 PM, "Emi Lu"  wrote:
> Hello List,
>
> I got the following exception, could someone tell me what cause it?
>
> I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 +
> freemarker2.3.18
>
> Thanks alot!
> Emi
>
> --
>
> SEVERE: Exception starting filter struts2
> Unable to load configuration. - bean -
>
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
> at
>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
> at
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
> at
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
> at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
> at
>
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
> at
>
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: Unable to load configuration. - bean -
>
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
> at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
> ... 28 more
> Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary
> class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean -
>
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)
> at
>
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
> at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> ... 30 more
> Caused by: Bean type interface org.apache.struts2.views.TagLibrary with
> the name sj has already been loaded by bean -
>
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125

> - bean -
>
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
> ... 33 more
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>


Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Emi Lu

Hello List,

I got the following exception, could someone tell me what cause it?

I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + 
freemarker2.3.18


Thanks alot!
Emi

--

SEVERE: Exception starting filter struts2
Unable to load configuration. - bean - 
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
	at 
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
	at 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
	at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
	at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
	at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
	at 
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
	at 
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
	at 
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at 
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: Unable to load configuration. - bean - 
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
	at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
	at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
... 28 more
Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary 
class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - 
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
	at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)
	at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
	at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
	at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)

... 30 more
Caused by: Bean type interface org.apache.struts2.views.TagLibrary with 
the name sj has already been loaded by bean - 
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 
- bean - 
jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125
	at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)

... 33 more

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



FieldErrors for a specific form ID

2011-07-19 Thread struts . rgm
After perusing the source code I don't feel like this is possible, but if y'all 
know otherwise please give me a heads-up even if just to confirm my suspicion.
It appears that Struts2 does know the ID of the current form, but this 
information is not used for an xwork validation context -- which appears to be 
either at the action or method level.  Some thought would have to go into how 
best to put a solution on the ValueStack for backwards compatibility.

To refresh your memories (from yesterday) here's the situation I found myself 
in:

<#--
  tl;dr --   Is it possible to set a validation context specific to a form ID, 
or to add field errors
  to a data structure representing one unique form?

  These three forms share an input with the same name, but could be distinct 
instances of domain objects.
  If one is submitted and does not validate(), the FieldError is shown on all 
three
  forms instead of just the one that was submitted.

  Furthermore, since each textfield is named "msg" then "getMsg()" is called 
via OGNL for all forms,
  so all inputs have the same value after submission.  It'd be great if the 
tags could first check a form-specific data structure for value and error info.
-->
<#list [ 1, 2, 3 ] as idx >

  <@s.form id="ff${idx?c}">
<#--
  Struts does not generate unique IDs automatically in this case,
  so for valid HTML you must provide the ID explicitly.  No action param is
  defined, so the form will submit to the same page.
-->

<@s.hidden name="msg.id" value="${idx?c}" />
<@s.textfield name="msg" labelposition="left" label="Message ${idx?c}" />
<@s.submit />
  






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [TILES 2.1.2] I18n problem

2011-07-19 Thread alexcocia
Hi Mitch,

Unfortunately, this would be a "last option" due to dependencies with other
project/components deployed. 
Nevertheless, I will give it a try on an isolated environment, just to check
it.

Regards,
Alex

--
View this message in context: 
http://struts.1045723.n5.nabble.com/TILES-2-1-2-I18n-problem-tp4612299p4612581.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Doubt on Struts 2 Architechture

2011-07-19 Thread mmckenzie
The struts2 architecture allows for preprocessing and post processing of 
requests.

What if you wanted to record how long it takes for a request to be 
processed? 

 You could have an interceptor on the top of your request that records the 
start time and the same interceptor will record the end time when the 
request is on its way out.

The struts2 in action book has an excellent chapter on interceptors which 
I highly recommend reading.

Hope this helps.

Mitch 



From:   mohan rao 
To: user@struts.apache.org
Date:   07/18/2011 09:06 PM
Subject:Doubt on Struts 2 Architechture



Interceptors stack will be triggered before action class is executed and
after the result. Why it's need to execute interceptors stack once again
after result. I used all the interceptors before triggering an action and
what's the purpose of calling these interceptors once again after action
without doing anything. Moreover it will take time to execute all the
interceptors once again. why the sturts2 architecture is designed like 
this.
Please through some light on this. Thank you very much.

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html

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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




Re: [TILES 2.1.2] I18n problem

2011-07-19 Thread mmckenzie
Have you tried tiles 2.2.2?

Mitch




From:   alexcocia 
To: user@struts.apache.org
Date:   07/19/2011 08:14 AM
Subject:[TILES 2.1.2] I18n problem



Hi all,
I have an application using Struts2 + Tiles 2.1.2.
The application has some i18n features in two ways: First for text content
depending on the language, secondly for the pages shown, depending on the
language.
For the first option, it is solved using struts "request_locale"
For the second option, the TILES does not change language when modifying 
the
request locale :o(

I have a tiles.xml configuration file, and the corresponding tiles_en.xml,
tiles_es.xml, tiles_fr.xml
BUT I found that just the default or English version is working.

Googling I have implemented the LocaleResolver class, defined it in my
application, but when setting another Locale in the resolveLocale method, 
it
reports "org.apache.tiles.definition.DefinitionsFactoryException: I/O 
Error
reading definitions."

I guess it tries to get the tiles_es.xml (for instance, when changing to
Spanish), but cannot find it.

Any help? I would really appreciate it.!!!
King regards
Alex



--
View this message in context: 
http://struts.1045723.n5.nabble.com/TILES-2-1-2-I18n-problem-tp4612299p4612299.html

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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




[TILES 2.1.2] I18n problem

2011-07-19 Thread alexcocia
Hi all,
I have an application using Struts2 + Tiles 2.1.2.
The application has some i18n features in two ways: First for text content
depending on the language, secondly for the pages shown, depending on the
language.
For the first option, it is solved using struts "request_locale"
For the second option, the TILES does not change language when modifying the
request locale :o(

I have a tiles.xml configuration file, and the corresponding tiles_en.xml,
tiles_es.xml, tiles_fr.xml
BUT I found that just the default or English version is working.

Googling I have implemented the LocaleResolver class, defined it in my
application, but when setting another Locale in the resolveLocale method, it
reports "org.apache.tiles.definition.DefinitionsFactoryException: I/O Error
reading definitions."

I guess it tries to get the tiles_es.xml (for instance, when changing to
Spanish), but cannot find it.

Any help? I would really appreciate it.!!!
King regards
Alex



--
View this message in context: 
http://struts.1045723.n5.nabble.com/TILES-2-1-2-I18n-problem-tp4612299p4612299.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Doc for Struts2

2011-07-19 Thread Ankit Jain
Hi,

If anybody can let me know some good user doc which tells how to add
validations using validator framework in struts2.

thanks


Ankit


Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).

2011-07-19 Thread Ankit Jain
Hi,

If anybody can let me know some good user doc which tells how to add
validations using validator framework in struts2.

thanks

ankit


Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).

2011-07-19 Thread Maurizio Cucchiara
I often use the
MimetypesFileMap

On 19 July 2011 08:52, mohan rao  wrote:

> can you please give me name that library jar file.
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/struts2-There-is-a-bug-in-FileUploadInterceptor-FileContentType-tp4601250p4611321.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Maurizio Cucchiara


Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).

2011-07-19 Thread mohan rao
can you please give me name that library jar file.

--
View this message in context: 
http://struts.1045723.n5.nabble.com/struts2-There-is-a-bug-in-FileUploadInterceptor-FileContentType-tp4601250p4611321.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org