Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 15 Mar 2008 17:06:06 -0000 Issue 7928

user-digest-help

2008-03-15


Author LoginPost Reply

user Digest 15 Mar 2008 17:06:06 -0000 Issue 7928

Topics (messages 184284 through 184294):

[OT] Complete List of Logged In Users
 184284 by: Mike Duffy
 184285 by: Dave Newton

Re: [struts] Re: Question regarding OGNL
 184286 by: Dale Newfield

Re: struts wml
 184287 by: CarloSilva

redirection problem
 184288 by: matthieu martin
 184293 by: Jeromy Evans

Re: Question regarding OGNL
 184289 by: Martin Gainty

Re: [struts] Question regarding OGNL
 184290 by: Dale Newfield

Re: Codebehind + zero config options
 184291 by: Alex Shneyderman
 184292 by: Jeromy Evans

Exception in Validation
 184294 by: aum strut

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_184284.ezm (zipped)
I marked this as other because this is probably sever specific (in my case I am using JBoss).

Using the Struts framework is there some simple way to get a list of all the users logged into the server?

Thx.

Mike


   ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


Attachment: user_184285.ezm (zipped)
--- Mike Duffy <mduffy_lists@(protected):
> Using the Struts framework is there some simple way to get a list of all
> the users logged into the server?

Using the Struts framework? No; this doesn't have anything to do with Struts.

You might use a SessionContextListener to provide a potentially useful
number, but it would still be approximate as a user might just close their
window without logging out, etc.

There are probably some other solutions, though.

Dave


Attachment: user_184286.ezm (zipped)
Laurie Harper wrote:
> The expressions %{name} and %{#name} have different meanings. Anywhere
> one is valid, the other is valid too but obviously each will only 'work'
> if the expression resolves to a value.

Correct. I'm sorry to pick nits, but if you don't mind, I'll clarify
your following statements in the hopes that this becomes clearer to more
people:

> - %{name} will look for a property named 'name' on your action (i.e.
> will result in a call to getName() on your action)

%{name} will look for "name" on the Value Stack. Typically while
executing in .jsp's the top item in that stack is your Action, but
within an iterator, for example, there might be something "on top of"
the Action, and there are always other objects below the Action.

OGNL will start at the top of the stack and search each object for a
getName() getter, returning the results of the first such getter found.

> - %{#name} will look for a property or attribute named 'name' anywhere
> in the value stack, including in the request/session/application scopes

%{#name} will not look in the value stack at all. It will look for a an
object named "name" stored in a separate Map<String,Object> separately
from the VS (Stack<Object>). Some struts tags push/pop items on to the
top of the VS, some just store in this hash. (Possibly some do both
when asked to, in which case it's the same object both in the VS and
directly referencible through that Map.)

> AFAIK, %{#name} is equivalent to %{name} when there is a getName() on
> the action, i.e. OGNL will look at the action first then search the rest
> of the value stack.

AFAIK that is incorrect.

Special items in that Map:

#application
#session
#request
#parameters

I believe at least some of those are also in the VS.

#attr searches the normal (EL) scopes in normal (EL) order (application,
session, request, and page) (Note, #page is not in the Map.)

-Dale

Attachment: user_184287.ezm (zipped)
Hi Laurie.
I have the struts-wml.jar for struts 1.2.
I´m sorry for my bad English.
Other embrace.



----- Original Message -----
From: "Laurie Harper" <laurie@(protected)>
To: <user@(protected)>
Sent: Friday, March 14, 2008 3:24 PM
Subject: Re: struts wml


> lol true :) I keep a jar of them on my desk for people passing by to help
> themselves... oh, wait, that's Chup Chups ;-)
>
> Al Sutton wrote:
>> I think it's a babelfish (babel.altavista.com) translation from another
>> language.
>>
>> Anyway, isn't it nice to offer free embraces :).
>>
>> Al.
>>
>>
>> ----- Original Message ----- From: "Antonio Petrelli"
>> <antonio.petrelli@(protected)>
>> To: "Struts Users Mailing List" <user@(protected)"
>> <silva@(protected)>
>> Sent: Friday, March 14, 2008 8:17 AM
>> Subject: Re: struts wml
>>
>>
>>> 2008/3/13, CarloSilva <silva@(protected)>:
>>>>
>>>> Laurie Harper, email-me please. I think I have help to you.
>>>> An emabrace
>>>
>>>
>>>
>>> WTF?
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
> __________ Informação do NOD32 IMON 2946 (20080313) __________
>
> Esta mensagem foi verificada pelo NOD32 sistema antivírus
> http://www.eset.com.br
>
>


Attachment: user_184288.ezm (zipped)
Hi all.

I am handling login issue through an interceptor. Basically it looks in the
session if a user entry exists before letting you go through to the
administration panels. This works fine.

In my admin, I use a lot of Ajax (with dojo) so I never have a single full
page reload. I use submits or anchor tags to do that. Those tags use the
"targets" parameter to know which part of the page is to be refreshed.

And here is my problem :

I click on a <s:a> or a <s:submit> tag, my interceptor catches the request,
sees that I am not logged in anymore, and does the redirection towards the
login page ... inside the div specified as a target !

I understand very well this matter, and it's all too logical. Nevertheless,
I've been turning this issue upside down for days now and I can't figure a
way to refresh the whole page when I'm not logged in anymore, or only
refresh the div I want when my interceptor says everything's fine.

Is there a way to break to target parameter so that I could simply redirect
toward an action which would refresh the whole page ?

Does anyone have an idea ?

I'm sort of out of solutions ....

Matthieu

Attachment: user_184293.ezm (zipped)
This discussion should give you some ideas:

http://www.nabble.com/Interceptors-with-Ajax-Actions-td15706322.html


matthieu martin wrote:
> Hi all.
>
> I am handling login issue through an interceptor. Basically it looks in the
> session if a user entry exists before letting you go through to the
> administration panels. This works fine.
>
> In my admin, I use a lot of Ajax (with dojo) so I never have a single full
> page reload. I use submits or anchor tags to do that. Those tags use the
> "targets" parameter to know which part of the page is to be refreshed.
>
> And here is my problem :
>
> I click on a <s:a> or a <s:submit> tag, my interceptor catches the request,
> sees that I am not logged in anymore, and does the redirection towards the
> login page ... inside the div specified as a target !
>
> I understand very well this matter, and it's all too logical. Nevertheless,
> I've been turning this issue upside down for days now and I can't figure a
> way to refresh the whole page when I'm not logged in anymore, or only
> refresh the div I want when my interceptor says everything's fine.
>
> Is there a way to break to target parameter so that I could simply redirect
> toward an action which would refresh the whole page ?
>
> Does anyone have an idea ?
>
> I'm sort of out of solutions ....
>
> Matthieu
>
>  
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 14/03/2008 12:33 PM
>  


Attachment: user_184289.ezm (zipped)
dave is is correct..

#foo.blah // returns foo.getBlah()
#bar.blah // returns bar.getBlah()
blah    // returns foo.getBlah() because foo is the root

http://struts.apache.org/2.x/docs/ognl-basics.html

Martin-
----- Original Message -----
From: "Dave Newton" <newton.dave@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Friday, March 14, 2008 2:19 PM
Subject: Re: Question regarding OGNL


> --- Laurie Harper <laurie@(protected):
> > AFAIK, %{#name} is equivalent to %{name} when there is a getName() on
> > the action, i.e. OGNL will look at the action first then search the rest
> > of the value stack.
>
> Mmm, I'm not sure about that. The "#" should look explicitly for a named
> object in the stack context rather than calling getXxx() on stack objects.
>
> For example, if I have:
>
>     <p>Prop from Sanity action: <s:property value="sanityCheck"/></p>
>     <p>Prop from Sanity action: <s:property value="#sanityCheck"/></p>
>
> only the first one will print the action's getSanityCheck() value.
>
> Not that I just happened to have that example laying around or anything
geeky
> like that.
>
> *ahem*
>
> Chup Chups!
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_184290.ezm (zipped)
Martin Gainty wrote:
> dave is is correct..

The following example without the proceeding situation setup is quite
misleading (so here it is) :

For example, suppose we are using standard OGNL (not using XWork) and
there are two objects in the OgnlContext map: "foo" -> foo and "bar" ->
bar and that the foo object is also configured to be the single root
object. The following code illustrates how OGNL deals with these three
situations:

> #foo.blah // returns foo.getBlah()
> #bar.blah // returns bar.getBlah()
> blah    // returns foo.getBlah() because foo is the root

So the third line is only true because in this scenario foo is BOTH #foo
AND the VS root.

> http://struts.apache.org/2.x/docs/ognl-basics.html

-Dale


Attachment: user_184291.ezm (zipped)
hmm, is this question too stupid to be answered ?

On Fri, Mar 14, 2008 at 1:07 PM, Alex Shneyderman
<a.shneyderman@(protected):
> I am a bit confused by how it works maybe you guys could shed some light :-)
>
> I have a package structure and JSP pages structure that match. To be
> concrete actions are placed like this:
>
> /com/mypackge/my/namespace/IndexAction.java
> /com/mypackge/my/namespace/EditAction.java
>
> and pages are placed like so:
>
> /WEB-INF/pages/my/namespace/index.jsp
> /WEB-INF/pages/my/namespace/edit.jsp
>
> now when I request a page I would like to configure struts/codebehind
> combo so if I user requests:
>
> /my/namespace -> index.action should kick in (of course it does not
> exists so index.jsp should be the result with the help of codebehind
> plugin. And in that page I can do what I need to
>
> So, I tried to make an entry in struts.xml
>
> <struts>
>
>      <constant name="struts.codebehind.pathPrefix" value="/WEB-INF/pages/" />
>
>      <package name="my.namespace" namespace="/my/namesapce">
>           <default-action-ref name="index" />
>      </package>
>
> </struts>
>
> this does not seem to work as I get
>
> HTTP ERROR: 404
> NOT_FOUND
>
> Any idea on how I could achieve this ?
>
> Thanks,
> Alex.
>

Attachment: user_184292.ezm (zipped)
CodeBehind doesn't provide automatic index actions. Only the URL
/my/namespace/index.action maps to IndexAction

You may be thinking of the SmartURLs plugin or Convention plugin in 2.1
(or my own alpha struts2urlsplugin plugin at googlecode that was
discussed recently)

Also, the default-action-ref is used to specify the class to use where
the class attribute is omitted on an action definition. It does not
specify the action to execute in the case that no other actions were
matched.

cheers,
Jeromy Evans

Alex Shneyderman wrote:
> hmm, is this question too stupid to be answered ?
>
> On Fri, Mar 14, 2008 at 1:07 PM, Alex Shneyderman
> <a.shneyderman@(protected):
>  
>> I am a bit confused by how it works maybe you guys could shed some light :-)
>>
>> I have a package structure and JSP pages structure that match. To be
>> concrete actions are placed like this:
>>
>> /com/mypackge/my/namespace/IndexAction.java
>> /com/mypackge/my/namespace/EditAction.java
>>
>> and pages are placed like so:
>>
>> /WEB-INF/pages/my/namespace/index.jsp
>> /WEB-INF/pages/my/namespace/edit.jsp
>>
>> now when I request a page I would like to configure struts/codebehind
>> combo so if I user requests:
>>
>> /my/namespace -> index.action should kick in (of course it does not
>> exists so index.jsp should be the result with the help of codebehind
>> plugin. And in that page I can do what I need to
>>
>> So, I tried to make an entry in struts.xml
>>
>> <struts>
>>
>>      <constant name="struts.codebehind.pathPrefix" value="/WEB-INF/pages/" />
>>
>>      <package name="my.namespace" namespace="/my/namesapce">
>>           <default-action-ref name="index" />
>>      </package>
>>
>> </struts>
>>
>> this does not seem to work as I get
>>
>> HTTP ERROR: 404
>> NOT_FOUND
>>
>> Any idea on how I could achieve this ?
>>
>> Thanks,
>> Alex.
>>
>>  
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>  


Attachment: user_184294.ezm (zipped)
Hi All,
 
I am trying to impliment the simple serverside validation.but it is giving me error.The name of the action on which i am using the validation is

TestExample.java. i have two files namely validators.xml and TestExample-validation.xml. i am attaching both the files for refrence.when i am running the application it is ruuing fine, but when i am putting the values in the ield and hitting the submit button.it is displaying the following error at the console.

 

Document is invalid: no grammar found. at (null:2:12)

 

org.xml.sax.SAXParseException

: Document is invalid: no grammar found.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at com.opensymphony.xwork2.util.DomHelper.parse(

DomHelper.java:121)

at com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinitions(

ValidatorFileParser.java:125)

at com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinitions(

ValidatorFileParser.java:99)

at com.opensymphony.xwork2.validator.ValidatorFactory.retrieveValidatorConfiguration(

ValidatorFactory.java:344)

at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(

ValidatorFactory.java:331)

at com.opensymphony.xwork2.validator.ValidatorFactory.<clinit>(

ValidatorFactory.java:224)

at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(

ValidatorFileParser.java:192)

at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(

ValidatorFileParser.java:72)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(

AnnotationActionValidatorManager.java:361)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(

AnnotationActionValidatorManager.java:252)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(

AnnotationActionValidatorManager.java:340)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(

AnnotationActionValidatorManager.java:69)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(

AnnotationActionValidatorManager.java:138)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(

AnnotationActionValidatorManager.java:113)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(

AnnotationActionValidatorManager.java:100)

at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(

ValidationInterceptor.java:142)

at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(

ValidationInterceptor.java:148)

at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(

AnnotationValidationInterceptor.java:48)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

MethodFilterInterceptor.java:86)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(

ConversionErrorInterceptor.java:123)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(

ParametersInterceptor.java:167)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

MethodFilterInterceptor.java:86)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(

StaticParametersInterceptor.java:105)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(

CheckboxInterceptor.java:83)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(

FileUploadInterceptor.java:207)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(

ModelDrivenInterceptor.java:74)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(

ScopedModelDrivenInterceptor.java:127)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(

ProfilingActivationInterceptor.java:107)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(

DebuggingInterceptor.java:206)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(

ChainingInterceptor.java:115)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(

I18nInterceptor.java:143)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(

PrepareInterceptor.java:121)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

MethodFilterInterceptor.java:86)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(

ServletConfigInterceptor.java:170)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(

AliasInterceptor.java:123)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(

ExceptionMappingInterceptor.java:176)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.impl.StrutsActionProxy.execute(

StrutsActionProxy.java:50)

at org.apache.struts2.dispatcher.Dispatcher.serviceAction(

Dispatcher.java:504)

at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(

FilterDispatcher.java:419)

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:230)

at org.apache.catalina.core.StandardContextValve.invoke(

StandardContextValve.java:175)

at org.apache.catalina.core.StandardHostValve.invoke(

StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(

ErrorReportValve.java:104)

at org.apache.catalina.core.StandardEngineValve.invoke(

StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(

CoyoteAdapter.java:261)

at org.apache.coyote.http11.Http11Processor.process(

Http11Processor.java:844)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Http11Protocol.java:581)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(

JIoEndpoint.java:447)

at java.lang.Thread.run(Unknown Source)

Mar 15, 2008 10:28:12 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet default threw exception

 

org.xml.sax.SAXParseException

: Document is invalid: no grammar found.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at com.opensymphony.xwork2.util.DomHelper.parse(

DomHelper.java:121)

at com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinitions(

ValidatorFileParser.java:125)

at com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinitions(

ValidatorFileParser.java:99)

at com.opensymphony.xwork2.validator.ValidatorFactory.retrieveValidatorConfiguration(

ValidatorFactory.java:344)

at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(

ValidatorFactory.java:331)

at com.opensymphony.xwork2.validator.ValidatorFactory.<clinit>(

ValidatorFactory.java:224)

at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(

ValidatorFileParser.java:192)

at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(

ValidatorFileParser.java:72)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(

AnnotationActionValidatorManager.java:361)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(

AnnotationActionValidatorManager.java:252)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(

AnnotationActionValidatorManager.java:340)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(

AnnotationActionValidatorManager.java:69)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(

AnnotationActionValidatorManager.java:138)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(

AnnotationActionValidatorManager.java:113)

at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(

AnnotationActionValidatorManager.java:100)

at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(

ValidationInterceptor.java:142)

at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(

ValidationInterceptor.java:148)

at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(

AnnotationValidationInterceptor.java:48)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

MethodFilterInterceptor.java:86)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(

ConversionErrorInterceptor.java:123)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(

ParametersInterceptor.java:167)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

MethodFilterInterceptor.java:86)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(

StaticParametersInterceptor.java:105)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(

CheckboxInterceptor.java:83)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(

FileUploadInterceptor.java:207)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(

ModelDrivenInterceptor.java:74)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(

ScopedModelDrivenInterceptor.java:127)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(

ProfilingActivationInterceptor.java:107)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(

DebuggingInterceptor.java:206)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(

ChainingInterceptor.java:115)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(

I18nInterceptor.java:143)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(

PrepareInterceptor.java:121)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

MethodFilterInterceptor.java:86)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(

ServletConfigInterceptor.java:170)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(

AliasInterceptor.java:123)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(

ExceptionMappingInterceptor.java:176)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:224)

at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(

DefaultActionInvocation.java:223)

at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(

UtilTimerStack.java:455)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(

DefaultActionInvocation.java:221)

at org.apache.struts2.impl.StrutsActionProxy.execute(

StrutsActionProxy.java:50)

at org.apache.struts2.dispatcher.Dispatcher.serviceAction(

Dispatcher.java:504)

at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(

FilterDispatcher.java:419)

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:230)

at org.apache.catalina.core.StandardContextValve.invoke(

StandardContextValve.java:175)

at org.apache.catalina.core.StandardHostValve.invoke(

StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(

ErrorReportValve.java:104)

at org.apache.catalina.core.StandardEngineValve.invoke(

StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(

CoyoteAdapter.java:261)

at org.apache.coyote.http11.Http11Processor.process(

Http11Processor.java:844)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Http11Protocol.java:581)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(

JIoEndpoint.java:447)

at java.lang.Thread.run(Unknown Source)

<?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE validators PUBLIC

   "-//OpenSymphony Group//XWork Validator 1.0.2//EN"

   "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
   <validators>
 <field name="name">
    <field-validator type="requiredstring">
       <message>You must enter a value for Name</message>
    </field-validator>
    <field-validator type="stringlength">
       <param name="maxLength">50</param>
       <message>
          Name cannot contain more than 50 characters  
       </message>
    </field-validator>
  </field>
 
  <field name="password">
    <field-validator type="requiredstring">
       <message>You must enter a valid password</message>
    </field-validator>
    <field-validator type="stringlength">
       <param name="maxLength">8</param>
       <message>
          Name cannot contain more than 8 characters  
       </message>
    </field-validator>
  </field>
 
</validators>
<?xml version="1.0" encoding="iso-8859-1"?>
<validators>
  <validator name="required" class="com.opensymphony.xwork2.validator.validators.RequiredFieldValidator"/>
  <validator name="requiredstring" class="com.opensymphony.xwork2.validator.validators.RequiredStringValidator"/>
  <validator name="int" class="com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator"/>
  <validator name="long" class="com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator"/>
  <validator name="short" class="com.opensymphony.xwork2.validator.validators.ShortRangeFieldValidator"/>
  <validator name="double" class="com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator"/>
  <validator name="date" class="com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator"/>
  <validator name="expression" class="com.opensymphony.xwork2.validator.validators.ExpressionValidator"/>
  <validator name="fieldexpression" class="com.opensymphony.xwork2.validator.validators.FieldExpressionValidator"/>
  <validator name="email" class="com.opensymphony.xwork2.validator.validators.EmailValidator"/>
  <validator name="url" class="com.opensymphony.xwork2.validator.validators.URLValidator"/>
  <validator name="visitor" class="com.opensymphony.xwork2.validator.validators.VisitorFieldValidator"/>
  <validator name="conversion" class="com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator"/>
  <validator name="stringlength" class="com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator"/>
  <validator name="regex" class="com.opensymphony.xwork2.validator.validators.RegexFieldValidator"/>
</validators>
©2008 gg3721.com - Jax Systems, LLC, U.S.A.