Author Login
Post Reply
user Digest 14 Jul 2008 17:23:00 -0000 Issue 8140
Topics (messages 188844 through 188866):
[S2] NPE when using struts form tags in sitemesh decorator
188844 by: Piero Sartini
188866 by: Piero Sartini
Re: about security
188845 by: Yanni Tan
188849 by: hns
Re: Struts2 configuration problems
188846 by: Jan Froehlich
188851 by: Piero Sartini
Re: [S2] s:property - how to use CSS on it?
188847 by: wild_oscar
Re: REST and JSON plugins
188848 by: Musachy Barroso
188859 by: Marc Logemann
188861 by: Musachy Barroso
about iterating values
188850 by: hns
problem running a simple struts app
188852 by: Dante A. Castiglione Maldonado
188855 by: Dave Newton
188856 by: Dante A. Castiglione Maldonado
188857 by: Dave Newton
188858 by: Dante A. Castiglione Maldonado
188860 by: Dave Newton
Problem url decoding with mutated vowels (Umlaute??)
188853 by: Marc Eckart
188854 by: Piero Sartini
188863 by: Pawe³ Wielgus
message resources ???key??? displaying
188862 by: danipruebas.adw.es
188864 by: Lukasz Lenart
[S2] newly-created Session context
188865 by: Pierre Thibaudeau
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_188844.ezm (zipped)
Attachment:
user_188866.ezm (zipped)
Attachment:
user_188845.ezm (zipped)
I am new to the web development, but I like the concept of this answer. Could you explain more about how to setup/configure the interceptor? i.e. How to hook up your interceptor method with the server? Thanks!
-----Original Message-----
From: Struts Two [mailto:strutstwo@(protected)]
Sent: Friday, July 11, 2008 9:32 AM
To: Struts Users Mailing List
Subject: Re: about security
Here are my thoughts [based on my experience with Websphere but I hope they can be generalized):
1- Using session for users's authentication is not a very good idea esp if there is a chance that they may have multiple browser or tabs open at the sametime. there is a great chance of session mix-ups. However; if you are , for some reason or another, pressed to use http session, make sure that you use url rewriting instead of cookies for session tracking[ Websphere also allows a thrid way to use ssl ids for this purpose if you use ssl]. To do so you do not need to change your code, you need to change container settings.
2- Applying security using JASS or realm is a web-container setting not struts 2. You need to do two things:
a) Enable the security of your container (server) to use a registery for authentication (LDAP,OS,...). Note that some servers like websphere allow you to extend its capability
to use a custome registery (say database for this purpose)
b) Change your web.xml and application.xml (add security constraints and roles and ...).
Once it is done. It does not matter u use struts 2 or struts 1 or anyother framework. At logging (first access) users get chanllenged.
In my case, to avoid using session for authentication, I am using an interceptor to retrieve user role and other information on each request. Note that once a user is logged in (assuming you use single signon), users' credentials (login name) are cached by the server and at each request you can retrieve it using request.getRemoteUser(). So you can rid of session by paying a very slight overhead of retriving all necessary information at each request using an interceptor.
regards,
----- Original Message ----
From: hns <hardik_982@(protected)>
To: user@(protected)
Sent: Friday, July 11, 2008 8:17:54 AM
Subject: about security
hi
i have successfully converted and deployed struts 2.0.11 application to
client
but still have some security questions because i have less knowledge of jaas
,realm or role based security
i have done authentication using query fire in database for user name and
password when user authenticated
i have stored his user name and user id and user type
(admin,executive,branch head) in session
problems
1. users can login from diff node or diff explorer n with same user name
,how to solve it
2. how can i apply realm or jaas in struts 2.0.11
please help me ,i am waiting for favorable reply
--
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
__________________________________________________________________
Get the name you've always wanted @ymail.com or @rocketmail.com today! Go to http://ca.promos.yahoo.com/jacko/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_188849.ezm (zipped)
HI
According to help of some previous threads i have created Login
interceptor,i really such thankful to all helpful people who help me in this
discussion please
http://www.nabble.com/about-current-action-name-acsess-td15736383.html#a15755941
Check here and read out from first thread ,you can take advantage of it
Yanni Tan wrote:
>
>
>
> I am new to the web development, but I like the concept of this answer.
> Could you explain more about how to setup/configure the interceptor? i.e.
> How to hook up your interceptor method with the server? Thanks!
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188846.ezm (zipped)Well, ok thats really odd... The libs and configuration I added are definetely s2.
If you take a look at the other error I got - executed actions but in properties just returns the DefaultTextProvider - can you give me a hint about that? Might be that I got two issues....
Thanks in advance!
-----Ursprüngliche Nachricht-----
Von: Gabriel Belingueres [mailto:belingueres@(protected)]
Gesendet: Montag, 14. Juli 2008 14:47
An: Struts Users Mailing List
Betreff: Re: Struts2 configuration problems
<struts-config> is not a the document root element of S2's struts.xml
file. That's the root element of S1 configuration file.
2008/7/14 Jan Froehlich <Jan.Froehlich@(protected)>:
> Hello List...
>
> I tried to extend a existing webapp based on a own framework with some
> actions using struts2.
> After I added all necessary libraries, the struts2 filter and the
> struts.xml I have some errors when the tomcat starts up. (see further
> below)
>
> Whats odd about that - I can call a defined action and in the debugger I
> can see that the execute method is called. But when I try to access
> properties of the action with <s:property value="MyValue" /> it is
> empty. Trying it with <s:property /> shows the class
> DefaultTextProvider.
>
> Tried to find something about that issue on the list, but I am not sure
> for what I should search.
> The exception gave just a few responses, but with no clue how to fix it.
>
> Thanks in advance!
> Jan Froehlich
>
> Parse Error at line 2 column 16: Document root element "struts-config",
> must match DOCTYPE root "null".
>
org.xml.sax.SAXParseException: Document root element "struts-config",
> must match DOCTYPE root "null".
> at
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
> at
org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)
> at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown
> Source)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> Source)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> nknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
> ElementHook(Unknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
> at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:344)
> at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:120)
> at org.apache.struts.digester.Digester.parse(Digester.java:755)
> at
>
org.apache.struts.action.ActionServlet.initMapping (
ActionServlet.java:13
> 32)
> at
>
org.apache.struts.action.ActionServlet.init (
ActionServlet.java:466)
> at
javax.servlet.GenericServlet.init (
GenericServlet.java:212)
> at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:1139)
> at
>
org.apache.catalina.core.StandardWrapper.load (
StandardWrapper.java:966)
> at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> ava:3956)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4230
> )
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> va:760)
> at
>
org.apache.catalina.core.ContainerBase.addChild (
ContainerBase.java:740)
> at
>
org.apache.catalina.core.StandardHost.addChild (
StandardHost.java:544)
> at
>
org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:
> 626)
> at
>
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :553)
> at
>
org.apache.catalina.startup.HostConfig.deployApps (
HostConfig.java:488)
> at
>
org.apache.catalina.startup.HostConfig.start (
HostConfig.java:1149)
> at
>
org.apache.catalina.startup.HostConfig.lifecycleEvent (
HostConfig.java:31
> 1)
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:120)
> at
>
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1022)
> at
>
org.apache.catalina.core.StandardHost.start (
StandardHost.java:736)
> at
>
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1014)
> at
>
org.apache.catalina.core.StandardEngine.start (
StandardEngine.java:443)
> at
>
org.apache.catalina.core.StandardService.start (
StandardService.java:448)
> at
>
org.apache.catalina.core.StandardServer.start (
StandardServer.java:700)
> at
org.apache.catalina.startup.Catalina.start (
Catalina.java:552)
> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at
java.lang.reflect.Method.invoke (
Method.java:585)
> at
>
org.apache.catalina.startup.Bootstrap.start (
Bootstrap.java:295)
> at
>
org.apache.catalina.startup.Bootstrap.main (
Bootstrap.java:433)
> Parse Error at line 2 column 16: Document is invalid: no grammar found.
>
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
> at
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
> at
org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)
> at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> Source)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> nknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
> ElementHook(Unknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
> at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:344)
> at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:120)
> at org.apache.struts.digester.Digester.parse(Digester.java:755)
> at
>
org.apache.struts.action.ActionServlet.initMapping (
ActionServlet.java:13
> 32)
> at
>
org.apache.struts.action.ActionServlet.init (
ActionServlet.java:466)
> at
javax.servlet.GenericServlet.init (
GenericServlet.java:212)
> at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:1139)
> at
>
org.apache.catalina.core.StandardWrapper.load (
StandardWrapper.java:966)
> at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> ava:3956)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4230
> )
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> va:760)
> at
>
org.apache.catalina.core.ContainerBase.addChild (
ContainerBase.java:740)
> at
>
org.apache.catalina.core.StandardHost.addChild (
StandardHost.java:544)
> at
>
org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:
> 626)
> at
>
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :553)
> at
>
org.apache.catalina.startup.HostConfig.deployApps (
HostConfig.java:488)
> at
>
org.apache.catalina.startup.HostConfig.start (
HostConfig.java:1149)
> at
>
org.apache.catalina.startup.HostConfig.lifecycleEvent (
HostConfig.java:31
> 1)
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:120)
> at
>
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1022)
> at
>
org.apache.catalina.core.StandardHost.start (
StandardHost.java:736)
> at
>
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1014)
> at
>
org.apache.catalina.core.StandardEngine.start (
StandardEngine.java:443)
> at
>
org.apache.catalina.core.StandardService.start (
StandardService.java:448)
> at
>
org.apache.catalina.core.StandardServer.start (
StandardServer.java:700)
> at
org.apache.catalina.startup.Catalina.start (
Catalina.java:552)
> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at
java.lang.reflect.Method.invoke (
Method.java:585)
> at
>
org.apache.catalina.startup.Bootstrap.start (
Bootstrap.java:295)
> at
>
org.apache.catalina.startup.Bootstrap.main (
Bootstrap.java:433)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_188851.ezm (zipped)Maybe the header of your struts.xml does use the wrong DTD.
The correct header looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
Am Montag, 14. Juli 2008 15:31:47 schrieb Jan Froehlich:
> Well, ok thats really odd... The libs and configuration I added are
> definetely s2.
>
> If you take a look at the other error I got - executed actions but in
> properties just returns the DefaultTextProvider - can you give me a hint
> about that? Might be that I got two issues....
>
> Thanks in advance!
>
> -----Ursprüngliche Nachricht-----
> Von: Gabriel Belingueres [mailto:belingueres@(protected)]
> Gesendet: Montag, 14. Juli 2008 14:47
> An: Struts Users Mailing List
> Betreff: Re: Struts2 configuration problems
>
> <struts-config> is not a the document root element of S2's struts.xml
> file. That's the root element of S1 configuration file.
>
> 2008/7/14 Jan Froehlich <Jan.Froehlich@(protected)>:
> > Hello List...
> >
> > I tried to extend a existing webapp based on a own framework with some
> > actions using struts2.
> > After I added all necessary libraries, the struts2 filter and the
> > struts.xml I have some errors when the tomcat starts up. (see further
> > below)
> >
> > Whats odd about that - I can call a defined action and in the debugger I
> > can see that the execute method is called. But when I try to access
> > properties of the action with <s:property value="MyValue" /> it is
> > empty. Trying it with <s:property /> shows the class
> > DefaultTextProvider.
> >
> > Tried to find something about that issue on the list, but I am not sure
> > for what I should search.
> > The exception gave just a few responses, but with no clue how to fix it.
> >
> > Thanks in advance!
> > Jan Froehlich
> >
> > Parse Error at line 2 column 16: Document root element "struts-config",
> > must match DOCTYPE root "null".
> >
org.xml.sax.SAXParseException: Document root element "struts-config",
> > must match DOCTYPE root "null".
> > at
> >
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> > wn Source)
> > at
org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> > Source)
> > at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> > Source)
> > at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> > Source)
> > at
> >
org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown
> > Source)
> > at
> >
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> > Source)
> > at
> >
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> > nknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
> > ElementHook(Unknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> > patcher.dispatch(Unknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> > wn Source)
> > at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> > Source)
> > at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:344)
> > at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:120)
> > at org.apache.struts.digester.Digester.parse(Digester.java:755)
> > at
> >
org.apache.struts.action.ActionServlet.initMapping (
ActionServlet.java:13
> > 32)
> > at
> >
org.apache.struts.action.ActionServlet.init (
ActionServlet.java:466)
> > at
javax.servlet.GenericServlet.init (
GenericServlet.java:212)
> > at
> >
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> > a:1139)
> > at
> >
org.apache.catalina.core.StandardWrapper.load (
StandardWrapper.java:966)
> > at
> >
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> > ava:3956)
> > at
> >
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4230
> > )
> > at
> >
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> > va:760)
> > at
> >
org.apache.catalina.core.ContainerBase.addChild (
ContainerBase.java:740)
> > at
> >
org.apache.catalina.core.StandardHost.addChild (
StandardHost.java:544)
> > at
> >
org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:
> > 626)
> > at
> >
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> >
> > :553)
> >
> > at
> >
org.apache.catalina.startup.HostConfig.deployApps (
HostConfig.java:488)
> > at
> >
org.apache.catalina.startup.HostConfig.start (
HostConfig.java:1149)
> > at
> >
org.apache.catalina.startup.HostConfig.lifecycleEvent (
HostConfig.java:31
> > 1)
> > at
> >
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> > pport.java:120)
> > at
> >
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1022)
> > at
> >
org.apache.catalina.core.StandardHost.start (
StandardHost.java:736)
> > at
> >
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1014)
> > at
> >
org.apache.catalina.core.StandardEngine.start (
StandardEngine.java:443)
> > at
> >
org.apache.catalina.core.StandardService.start (
StandardService.java:448)
> > at
> >
org.apache.catalina.core.StandardServer.start (
StandardServer.java:700)
> > at
org.apache.catalina.startup.Catalina.start (
Catalina.java:552)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> > a:39)
> > at
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> > Impl.java:25)
> > at
java.lang.reflect.Method.invoke (
Method.java:585)
> > at
> >
org.apache.catalina.startup.Bootstrap.start (
Bootstrap.java:295)
> > at
> >
org.apache.catalina.startup.Bootstrap.main (
Bootstrap.java:433)
> > Parse Error at line 2 column 16: Document is invalid: no grammar found.
> >
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
> > at
> >
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> > wn Source)
> > at
org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> > Source)
> > at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> > Source)
> > at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> > Source)
> > at
> >
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> > Source)
> > at
> >
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> > nknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
> > ElementHook(Unknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> > patcher.dispatch(Unknown Source)
> > at
> >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> > wn Source)
> > at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> > Source)
> > at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:344)
> > at
javax.xml.parsers.SAXParser.parse (
SAXParser.java:120)
> > at org.apache.struts.digester.Digester.parse(Digester.java:755)
> > at
> >
org.apache.struts.action.ActionServlet.initMapping (
ActionServlet.java:13
> > 32)
> > at
> >
org.apache.struts.action.ActionServlet.init (
ActionServlet.java:466)
> > at
javax.servlet.GenericServlet.init (
GenericServlet.java:212)
> > at
> >
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> > a:1139)
> > at
> >
org.apache.catalina.core.StandardWrapper.load (
StandardWrapper.java:966)
> > at
> >
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> > ava:3956)
> > at
> >
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4230
> > )
> > at
> >
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> > va:760)
> > at
> >
org.apache.catalina.core.ContainerBase.addChild (
ContainerBase.java:740)
> > at
> >
org.apache.catalina.core.StandardHost.addChild (
StandardHost.java:544)
> > at
> >
org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:
> > 626)
> > at
> >
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> >
> > :553)
> >
> > at
> >
org.apache.catalina.startup.HostConfig.deployApps (
HostConfig.java:488)
> > at
> >
org.apache.catalina.startup.HostConfig.start (
HostConfig.java:1149)
> > at
> >
org.apache.catalina.startup.HostConfig.lifecycleEvent (
HostConfig.java:31
> > 1)
> > at
> >
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> > pport.java:120)
> > at
> >
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1022)
> > at
> >
org.apache.catalina.core.StandardHost.start (
StandardHost.java:736)
> > at
> >
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1014)
> > at
> >
org.apache.catalina.core.StandardEngine.start (
StandardEngine.java:443)
> > at
> >
org.apache.catalina.core.StandardService.start (
StandardService.java:448)
> > at
> >
org.apache.catalina.core.StandardServer.start (
StandardServer.java:700)
> > at
org.apache.catalina.startup.Catalina.start (
Catalina.java:552)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> > a:39)
> > at
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> > Impl.java:25)
> > at
java.lang.reflect.Method.invoke (
Method.java:585)
> > at
> >
org.apache.catalina.startup.Bootstrap.start (
Bootstrap.java:295)
> > at
> >
org.apache.catalina.startup.Bootstrap.main (
Bootstrap.java:433)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

Attachment:
user_188847.ezm (zipped)
Thank you.The tag works fine for now. I will also look into modifying the
actionerror template when I need a more customized tag.
newton.dave wrote:
>
> --- On Mon, 7/14/08, wild_oscar <miguel@(protected):
>> <s:iterator value="actionErrors" >
>> <s:property/>
>> </s:iterator>
>>
>> However, how can I use Css calsses on the property? I want
>> to display the error in red, but the property element doesn't
>> have any CSS property. What's the best way of applying a Css
>> syle to it?
>
> <s:property/>
>
> (Or <div...>, or put it in a list and have a class for list elements,
> or... any other CSS methodology.)
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188848.ezm (zipped)The original idea behind the JSON plugin was to use an external
library to serialize the objects, xstream to be more specific. But
xstream json wasn't even usable at that point and json-lib didn't look
that good to me. I think Struts 2 should include a json plugin, and
yes we could delegate the serialization to json-lib, or xstream.
musachy
On Mon, Jul 14, 2008 at 4:07 AM, Jeromy Evans
<jeromy.evans@(protected):
> Oleg Mikheev wrote:
>>
>> Hi!
>>
>> Will REST plugin replace JSON plugin in Struts 2.1?
>> To my mind JSON plugin was very REST-like, and I was
>> really hoping that it would evolve into something that
>> REST plugin claims to be.
>>
>> Also, do REST and JSON plugins have anything in common?
>
> They're not related except both can serialize an action/model into JSON.
>
> In the past I created a ContentTypeHandler for the REST Plugin that used the
> JSON plugin's serializer. The result was exactly the same.
>
> The REST plugin uses json-lib for its default JSON ContentTypeHandler.
> (http://json-lib.sourceforge.net/)
> The advantage of JSON-lib is that it's bidirectional (essential for the
> plugin) and is used in many frameworks.
> The advantage of the JSON-plugin is that it includes some simple options to
> customize the output specifically for S2 (such as changing the root object).
>
> I've contributed to both the JSON plugin and REST plugin and use the JSON
> plugin when I'm writing plain actions that return JSON responses and
> json-lib when using the REST plugin. The options the JSON-plugin provides
> are generally not relevant when using the REST plugin so it's not valuable
> to run both.
>
> The JSON plugin should probably be updated to allow the serializer to be
> customized so you can use the json-lib serializer or the native serializer.
>
>> After I read REST plugin author's Struts 2 in Action
>> book it seemed that he wasn't aware of JSON plugin at
>> all - he devoted several pages to implementation of a
>> custom JSON handlers instead of just dropping JSON
>> plugin into Struts 2 stack......
>>
>
> I presume that's just because the JSON plugin isn't part of the Struts 2
> distribution per se.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_188859.ezm (zipped)+1 for a pluggable serializer. I dont like the internal json plugin
serializer that much.... and yes, the plugin should be included in the
distro because json is that popular these days....
--
Marc Logemann
blog http://logemannreloaded.blogspot.com
privat http://www.logemann.org
Am 14.07.2008 um 15:42 schrieb Musachy Barroso:
> The original idea behind the JSON plugin was to use an external
> library to serialize the objects, xstream to be more specific. But
> xstream json wasn't even usable at that point and json-lib didn't look
> that good to me. I think Struts 2 should include a json plugin, and
> yes we could delegate the serialization to json-lib, or xstream.
>
> musachy
>
> On Mon, Jul 14, 2008 at 4:07 AM, Jeromy Evans
> <jeromy.evans@(protected):
>> Oleg Mikheev wrote:
>>>
>>> Hi!
>>>
>>> Will REST plugin replace JSON plugin in Struts 2.1?
>>> To my mind JSON plugin was very REST-like, and I was
>>> really hoping that it would evolve into something that
>>> REST plugin claims to be.
>>>
>>> Also, do REST and JSON plugins have anything in common?
>>
>> They're not related except both can serialize an action/model into
>> JSON.
>>
>> In the past I created a ContentTypeHandler for the REST Plugin that
>> used the
>> JSON plugin's serializer. The result was exactly the same.
>>
>> The REST plugin uses json-lib for its default JSON
>> ContentTypeHandler.
>> (http://json-lib.sourceforge.net/)
>> The advantage of JSON-lib is that it's bidirectional (essential for
>> the
>> plugin) and is used in many frameworks.
>> The advantage of the JSON-plugin is that it includes some simple
>> options to
>> customize the output specifically for S2 (such as changing the root
>> object).
>>
>> I've contributed to both the JSON plugin and REST plugin and use
>> the JSON
>> plugin when I'm writing plain actions that return JSON responses and
>> json-lib when using the REST plugin. The options the JSON-plugin
>> provides
>> are generally not relevant when using the REST plugin so it's not
>> valuable
>> to run both.
>>
>> The JSON plugin should probably be updated to allow the serializer
>> to be
>> customized so you can use the json-lib serializer or the native
>> serializer.
>>
>>> After I read REST plugin author's Struts 2 in Action
>>> book it seemed that he wasn't aware of JSON plugin at
>>> all - he devoted several pages to implementation of a
>>> custom JSON handlers instead of just dropping JSON
>>> plugin into Struts 2 stack......
>>>
>>
>> I presume that's just because the JSON plugin isn't part of the
>> Struts 2
>> distribution per se.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_188861.ezm (zipped)It should be easy to plug in a new serializer (only JSONUtil needs to
be changed I think). If you have suggestions on how to improve the
current serializer, let me know, or even better, a patch ;)
musachy
On Mon, Jul 14, 2008 at 11:05 AM, Marc Logemann <ml@(protected):
> +1 for a pluggable serializer. I dont like the internal json plugin
> serializer that much.... and yes, the plugin should be included in the
> distro because json is that popular these days....
>
> --
> Marc Logemann
> blog http://logemannreloaded.blogspot.com
> privat http://www.logemann.org
>
>
>
> Am 14.07.2008 um 15:42 schrieb Musachy Barroso:
>
>> The original idea behind the JSON plugin was to use an external
>> library to serialize the objects, xstream to be more specific. But
>> xstream json wasn't even usable at that point and json-lib didn't look
>> that good to me. I think Struts 2 should include a json plugin, and
>> yes we could delegate the serialization to json-lib, or xstream.
>>
>> musachy
>>
>> On Mon, Jul 14, 2008 at 4:07 AM, Jeromy Evans
>> <jeromy.evans@(protected):
>>>
>>> Oleg Mikheev wrote:
>>>>
>>>> Hi!
>>>>
>>>> Will REST plugin replace JSON plugin in Struts 2.1?
>>>> To my mind JSON plugin was very REST-like, and I was
>>>> really hoping that it would evolve into something that
>>>> REST plugin claims to be.
>>>>
>>>> Also, do REST and JSON plugins have anything in common?
>>>
>>> They're not related except both can serialize an action/model into JSON.
>>>
>>> In the past I created a ContentTypeHandler for the REST Plugin that used
>>> the
>>> JSON plugin's serializer. The result was exactly the same.
>>>
>>> The REST plugin uses json-lib for its default JSON ContentTypeHandler.
>>> (http://json-lib.sourceforge.net/)
>>> The advantage of JSON-lib is that it's bidirectional (essential for the
>>> plugin) and is used in many frameworks.
>>> The advantage of the JSON-plugin is that it includes some simple options
>>> to
>>> customize the output specifically for S2 (such as changing the root
>>> object).
>>>
>>> I've contributed to both the JSON plugin and REST plugin and use the JSON
>>> plugin when I'm writing plain actions that return JSON responses and
>>> json-lib when using the REST plugin. The options the JSON-plugin
>>> provides
>>> are generally not relevant when using the REST plugin so it's not
>>> valuable
>>> to run both.
>>>
>>> The JSON plugin should probably be updated to allow the serializer to be
>>> customized so you can use the json-lib serializer or the native
>>> serializer.
>>>
>>>> After I read REST plugin author's Struts 2 in Action
>>>> book it seemed that he wasn't aware of JSON plugin at
>>>> all - he devoted several pages to implementation of a
>>>> custom JSON handlers instead of just dropping JSON
>>>> plugin into Struts 2 stack......
>>>>
>>>
>>> I presume that's just because the JSON plugin isn't part of the Struts 2
>>> distribution per se.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_188850.ezm (zipped)
hi
it might be this question is not related s2 but still i want to ask
i am using one public function in one class which get key,value pair from
database query fire and fill in linked hashmap
and return iterator to access on jsp page
i have used jsp:usebean of this class to get access public function which
iterate data in page scope
for my select box
now i have to ask
when i refresh or redirect this page ,every times Map will get details from
database ,so at codebehind database accesss happens so many times when i
refresh or redirect it,
how can i solve this issue
now
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188852.ezm (zipped)Hi all,
I am new on the list and new using struts. Trying to run a simple
application that I took from the web (
http://www.abqswt.com/tutorials/basicStruts/index.php ) keep getting
the following message, but cannot find out what the real problem is.
Any help will be very usefull.
==========================================================
org.apache.jasper.JasperException: Exception in JSP: /PersonalData.jsp:15
12: </head>
13:
14: <body>
15: <html:form method="post" action="/PersonalData">
16: <table border="0">
17: <tr>
18: <td width="50">
root cause:
java.lang.NullPointerException: Module 'null' not found.
==========================================================

Attachment:
user_188855.ezm (zipped)Without the configuration it'll be tough to help.
Any particular reason you're using Struts 1 instead of Struts 2?
Dave
--- On Mon, 7/14/08, Dante A. Castiglione Maldonado wrote:
> From: Dante A. Castiglione Maldonado <dac.maldonado@(protected)>
> Subject: problem running a simple struts app
> To: user@(protected)
> Date: Monday, July 14, 2008, 10:24 AM
> Hi all,
>
> I am new on the list and new using struts. Trying to run a
> simple
> application that I took from the web (
> http://www.abqswt.com/tutorials/basicStruts/index.php )
> keep getting
> the following message, but cannot find out what the real
> problem is.
> Any help will be very usefull.
>
> ==========================================================
>
>
org.apache.jasper.JasperException: Exception in JSP:
> /PersonalData.jsp:15
>
> 12: </head>
> 13:
> 14: <body>
> 15: <html:form method="post"
> action="/PersonalData">
> 16: <table border="0">
> 17: <tr>
> 18: <td width="50">
>
> root cause:
>
java.lang.NullPointerException: Module 'null' not
> found.
>
> ==========================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment:
user_188856.ezm (zipped)Thanks a lot
No, no particular reason. I thought it would be easier to learn.
Should I go to version 2?
What configuration information/files should i send?
2008/7/14 Dave Newton <newton.dave@(protected)>:
> Without the configuration it'll be tough to help.
>
> Any particular reason you're using Struts 1 instead of Struts 2?
>
> Dave
>
> --- On Mon, 7/14/08, Dante A. Castiglione Maldonado wrote:
>
>> From: Dante A. Castiglione Maldonado <dac.maldonado@(protected)>
>> Subject: problem running a simple struts app
>> To: user@(protected)
>> Date: Monday, July 14, 2008, 10:24 AM
>> Hi all,
>>
>> I am new on the list and new using struts. Trying to run a
>> simple
>> application that I took from the web (
>> http://www.abqswt.com/tutorials/basicStruts/index.php )
>> keep getting
>> the following message, but cannot find out what the real
>> problem is.
>> Any help will be very usefull.
>>
>> ==========================================================
>>
>>
org.apache.jasper.JasperException: Exception in JSP:
>> /PersonalData.jsp:15
>>
>> 12: </head>
>> 13:
>> 14: <body>
>> 15: <html:form method="post"
>> action="/PersonalData">
>> 16: <table border="0">
>> 17: <tr>
>> 18: <td width="50">
>>
>> root cause:
>>
java.lang.NullPointerException: Module 'null' not
>> found.
>>
>> ==========================================================
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail:
>> user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188857.ezm (zipped)--- On Mon, 7/14/08, Dante A. Castiglione Maldonado wrote:
> I thought it would be easier to learn. Should I go to version 2?
Yes.
> What configuration information/files should i send?
The struts configuration file.
Dave

Attachment:
user_188858.ezm (zipped)Thank you very much
Here are the files
2008/7/14 Dave Newton <newton.dave@(protected)>:
> --- On Mon, 7/14/08, Dante A. Castiglione Maldonado wrote:
>> I thought it would be easier to learn. Should I go to version 2?
>
> Yes.
>
>> What configuration information/files should i send?
>
> The struts configuration file.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<!-- ================================================ Form Bean Definitions -->
<form-beans>
<form-bean name="PersonalDataForm" type="pdata.PersonalData"/>
<!-- Definition from book
<form-bean name="PersonalDataBean" type="pdata.PersonalData">
<form-property name="firstname" type="
java.lang.String"/>
<form-property name="lastname" type="
java.lang.String"/>
<form-property name="address" type="
java.lang.String"/>
<form-property name="city" type="
java.lang.String"/>
<form-property name="state" type="
java.lang.String"/>
</form-bean>
-->
</form-beans>
<!-- ========================================= Global Exception Definitions -->
<global-exceptions>
<!-- sample exception handler
<exception
key="expired.password"
type="app.ExpiredPasswordException"
path="/changePassword.jsp"/>
end sample -->
</global-exceptions>
<!-- =========================================== Global Forward Definitions -->
<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward name="welcome" path="/Welcome.do"/>
</global-forwards>
<!-- =========================================== Action Mapping Definitions -->
<action-mappings>
<!-- Default "Welcome" action -->
<!-- Forwards to Welcome.jsp -->
<action
path="/Welcome"
forward="/Welcome.jsp"/>
<action path="/PersonalData" forward="/PersonalData.jsp"/>
<action path="/Results" type="pdata.PersonalDataAction" scope="request" name="personalDataBean" input="/PersonalData.jsp">
<forward name="success" path="/Results.jsp"></forward>
<forward name="failure" path="/Error.jsp"></forward>
</action>
</action-mappings>
<!-- ======================================== Message Resources Definitions -->
<message-resources parameter="ApplicationResources" null="false" ></message-resources>
<!-- =============================================== Plug Ins Configuration -->
<!-- =================================================== Validator plugin -->
<plug-in className="
org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/org/apache/struts/validator/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">
<form-validation>
<!--
This is a minimal Validator form file with a couple of examples.
-->
<global>
<!-- An example global constant
<constant>
<constant-name>postalCode</constant-name>
<constant-value>^\d{5}\d*$</constant-value>
</constant>
end example-->
</global>
<formset>
<!-- An example form -->
<form name="logonForm">
<field
property="username"
depends="required">
<arg key="logonForm.username"/>
</field>
<field
property="password"
depends="required,mask">
<arg key="logonForm.password"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
</field>
</form>
</formset>
<!-- An example formset for another locale -->
<formset language="fr">
<constant>
<constant-name>postalCode</constant-name>
<constant-value>^[0-9a-zA-Z]*$</constant-value>
</constant>
<!-- An example form -->
<form name="logonForm">
<field
property="username"
depends="required">
<arg key="logonForm.username"/>
</field>
<field
property="password"
depends="required,mask">
<arg key="logonForm.password"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
SimpleStrutsApp</display-name>
<welcome-file-list>
<welcome-file>PersonalData.jsp</welcome-file>
</welcome-file-list>
</web-app>

Attachment:
user_188860.ezm (zipped)--- On Mon, 7/14/08, Dante A. Castiglione Maldonado wrote:
> Here are the files
In general, attachments are a bad idea on the mailing list.
You have an essentially empty web.xml; you need to configure the ActionServlet.
http://struts.apache.org/1.3.8/userGuide/configuration.html#dd_config
It might have been better to follow the tutorial instructions and start with the blank application.
Dave

Attachment:
user_188853.ezm (zipped)Hi,
we have an action which we call with url paramters from other applications.
But now we found out, that we have problems with mutated wowels like äöü.
Instead of tls-hölter we get tls-hölter in the parameterMap of the
servletRequest (I debugged).
I assume that the parameters are decoded with iso ISO-8859-1 instead
of utf-8 or otherwise.
Is there an option to tell struts2 which charset it should use to decode?
The url looks like this:
http://localhost:8080/bpc/search.action?ctxSid=20080714082158393251000&userId=xxx&pageTitle=Bla&returnUrl=http://localhost:9080?methodToCall=loadWithCustDetails&simpleSearch=tls-h%C3%B6lter
We call the application running on tomcat from an application running
on websphere 6.1.
Thanks in advance...
Best regards,
Marc

Attachment:
user_188854.ezm (zipped)Hello,
you can try the following settings in struts.xml:
<constant name="struts.i18n.encoding" value="UTF-8"/>
<constant name="struts.locale" value="de_DE"/>
Please let me know if this resolves your issue.
Piero
Am Montag, 14. Juli 2008 15:25:14 schrieb Marc Eckart:
> Hi,
>
> we have an action which we call with url paramters from other applications.
>
> But now we found out, that we have problems with mutated wowels like äöü.
>
> Instead of tls-hölter we get tls-hölter in the parameterMap of the
> servletRequest (I debugged).
> I assume that the parameters are decoded with iso ISO-8859-1 instead
> of utf-8 or otherwise.
>
> Is there an option to tell struts2 which charset it should use to decode?
>
> The url looks like this:
> http://localhost:8080/bpc/search.action?ctxSid=20080714082158393251000&user
>Id=xxx&pageTitle=Bla&returnUrl=http://localhost:9080?methodToCall=loadWithCu
>stDetails&simpleSearch=tls-h%C3%B6lter
>
> We call the application running on tomcat from an application running
> on websphere 6.1.
>
> Thanks in advance...
>
> Best regards,
> Marc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

Attachment:
user_188863.ezm (zipped)Hi all,
maybe it's related with tomcat (or another container You use),
One should add URIEncoding="utf-8" in connector like this:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="utf-8"/>
Hope this helps.
Best greetings,
Paweł Wielgus.
2008/7/14 Piero Sartini <lists@(protected)>:
> Hello,
>
> you can try the following settings in struts.xml:
> <constant name="struts.i18n.encoding" value="UTF-8"/>
> <constant name="struts.locale" value="de_DE"/>
>
> Please let me know if this resolves your issue.
>
> Piero
>
> Am Montag, 14. Juli 2008 15:25:14 schrieb Marc Eckart:
>> Hi,
>>
>> we have an action which we call with url paramters from other applications.
>>
>> But now we found out, that we have problems with mutated wowels like äöü.
>>
>> Instead of tls-hölter we get tls-hölter in the parameterMap of the
>> servletRequest (I debugged).
>> I assume that the parameters are decoded with iso ISO-8859-1 instead
>> of utf-8 or otherwise.
>>
>> Is there an option to tell struts2 which charset it should use to decode?
>>
>> The url looks like this:
>> http://localhost:8080/bpc/search.action?ctxSid=20080714082158393251000&user
>>Id=xxx&pageTitle=Bla&returnUrl=http://localhost:9080?methodToCall=loadWithCu
>>stDetails&simpleSearch=tls-h%C3%B6lter
>>
>> We call the application running on tomcat from an application running
>> on websphere 6.1.
>>
>> Thanks in advance...
>>
>> Best regards,
>> Marc
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188862.ezm (zipped)Hi, I´m developing a project with Struts 1.2. When trying to display <html:errors> in a jsp page, the errors saved in SaveMessages are displayed, but not correctly, for example:
in showerrors.jsp:
???es.error.wrong.password???
instead of:
Your password is wrong.
The ApplicationResources.properties file is properly mapped with its keys.
error.wrong.password = Your password is wrong
Figure out that a "es." is displayed while no Locale configuration has been setup.
What should I check? Any ideas will be welcomed.
Thanks,

Attachment:
user_188864.ezm (zipped)Hi,
How did you configure the messages in struts-config? It should be
something like this:
<message-resources parameter="MessageResources"/>
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188865.ezm (zipped)I have an interceptor that puts an object in the Session scope.
The interceptor calls the following when retrieving the Session:
public String intercept(ActionInvocation invocation) throws Exception {
ActionContext context = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest)
context.get(StrutsStatics.HTTP_REQUEST);
HttpSession session = request.getSession(true /* create if need be
*/);
session.setAttribute(attributeName, someObject);
...
}
Given that code, I don't see how the Session could be null after that
interception --- otherwise an exception would be thrown at the point when I
attempt to set the Session attribute.
Yet, immediately after I start the server (therefore no Session has yet been
created), if I issue a browser request on an action that uses that
interceptor, OGNL reports the Session as being indeed null --- or so the
xml-debug output of the context shows. It's only on the second request that
the xml-debug shows a Session context containing the desired object.
Is there a way of explaining this discrepancy?
Apart from this custom interceptor, I use the paramPrepareParam stack.
Would there be another interceptor in there interfering with my custom
newly-created Session (but not interfering when the Session is not new
anymore)?
Toughts?