[s2] handling "Unable to instantiate action" exception

2008-02-07 Thread Laszlo Borsos
I use wildcard mappings and Spring integration. When a bad url is entered, no Spring bean is mapped and it results in an exception page. I would like to swap this to a nice "Sorry, this page does not exist" message. However, the Exception Interceptor does not catch this, probably because it happe

[S2] s:property escape attribute

2007-12-04 Thread Laszlo Borsos
- The s:property tag escapes html markup characters, which is very nice. - On the other hand it creates html character entities of non-ascii characters, which is ugly and unnecessary, as I already have UTF-8 as character encoding of the page. "escape=true" does both, "escape=false" does neither.

Re: [S2] wildcard mapping and spring

2007-11-17 Thread Laszlo Borsos
Thank you, Omkar. You were right. I just had a "*/*" mapping as well, and to my surprise struts used that when I was expecting "*" to be mapped. (the url was a simple "contextname/actionname"). Anyway, it works now. kuvera Omkar Patil wrote: > > Laszlo Bor

[S2] wildcard mapping and spring

2007-11-15 Thread Laszlo Borsos
I started using Spring 2 with Struts 2. I can't use wildcard mappings though. This works: This does not: Is there any way around this? kuvera - http://javatar.hu Java EE programming -- View this message in context: http://www.nabble.com/-S2--wildcard-mapping-and-spring-tf4819484.html

Re: Struts2 POJO Forms

2007-08-24 Thread Laszlo Borsos
Thank you. Actually that's exactly what I meant and what I need. Piero Sartini írta: > On Friday 24 August 2007 12:29:23 Laszlo Borsos wrote: >> If some properties are in the action bean (e.g. hidden fields) and >> others in the model bean, will both be populated, becaus

Re: Struts2 POJO Forms

2007-08-24 Thread Laszlo Borsos
I also think about using Model-Driven interceptor. If some properties are in the action bean (e.g. hidden fields) and others in the model bean, will both be populated, because both object are found on the stack? If so, is the model object the upmost stack element? kuvera Piero Sartini írta: > On

Re: RE Sending value stack from Action A to Action B

2007-08-22 Thread Laszlo Borsos
I haven't tried it yet, but the Chaining Interceptor is also meant for this purpose. [EMAIL PROTECTED] wrote: >> 1) How can values in the value stack be sent among actions, so that they > are >> available in the final web page? > > Put your values in HttpSession > > > > > > wild_oscar <[EM

Re: S2: OGNL beats me

2007-08-22 Thread Laszlo Borsos
Thank you for your answer. I have picked up some information on OGML, and debug screen helped also. I am starting to be quite comfortable in Struts 2 and like it a lot. kuvera Aram Mkhitaryan írta: > no, standard EL is quite different, > > here we have value stack, > > if you don't specify the

Re: debugging tag syntax problems

2007-08-16 Thread Laszlo Borsos
I use Eclipse and it does not validate for example OGNL. Is there really no means to see the exception raised by JSP compiler? kuvera > Idea validates tag syntax, and I'm sure other IDEs have this > functionality too. > > Oleg --

debugging tag syntax problems

2007-08-16 Thread Laszlo Borsos
When I have a syntax error in a tag, I get an "Unable to load class for JSP" / ClassNotFoundException, as the JSP file does not get translated and compiled. But Tomcat 6 logs don't show the original exception, that would refer to the problem. How can it be logged? kuvera -

Re: [S2] static content

2007-08-16 Thread Laszlo Borsos
It was due to struts.action.extension set to empty string. I guess it is compulsory then. kuvera Laszlo Borsos írta: > My static content does not get served by Tomcat, either with relative or > absolute paths: > > > > ... > > > > Struts 2 filter is configure

Re: empty operator

2007-08-16 Thread Laszlo Borsos
; For non-null > > -----Original Message- > From: Laszlo Borsos [mailto:[EMAIL PROTECTED] > Sent: 16 August 2007 08:04 > To: Struts Users Mailing List > Subject: empty operator > > > In OGNL, how can I assert that a String property is not null or empty? > > I wo

[S2] static content

2007-08-16 Thread Laszlo Borsos
My static content does not get served by Tomcat, either with relative or absolute paths: ... Struts 2 filter is configured for /* url pattern and there are no servlets. Does the filter eat up the static requests? What should I do? kuvera -

[S2] static content

2007-08-16 Thread Laszlo Borsos
My static content does not get served by Tomcat, either with relative or absolute paths: ... Struts 2 filter is configured for /* url pattern and there are no servlets. Does the filter eat up the static requests? What should I do? kuvera -

empty operator

2007-08-16 Thread Laszlo Borsos
In OGNL, how can I assert that a String property is not null or empty? I would like this functionality: ${!empty bean.string} kuvera - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED