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
- 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.
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
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
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
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
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
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
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
--
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
-
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
; 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
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
-
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
-
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
15 matches
Mail list logo