You would be able to access through ognl or more simply inside your action.
ognl syntax, using implicit objects:
In order to get access inside your action, you have to implement
ApplicationAware interface.
Take a look at the bottom of this page
http://struts.apache.org/2.0.14/docs/ognl-basics.h
Hi , Piotrek.
It was an insufficient explanation.
was not used because of the repetition,
and it proposed the idea of which it displayed the character string.
A part of correction was added because it had seemed to be confused with the
environment variable.
JSP
s
Alternatively you could use:
Maurizio Cucchiara
2010/10/7 Daniel Rindt :
> Am Mittwoch, den 06.10.2010, 21:39 +0200 schrieb Maurizio Cucchiara:
>> gender.add(getText("user.gender.female"));
>> gender.add(getText("user.gender.male"));
> you ever tried that? I used it in the prepare method, and
If you want to record the ServerError, like ServletException, you can config
the Tomcat Server logging, ref the document from Apache.org
Regards,
Mead
On Wed, Oct 6, 2010 at 10:44 PM, Dave Newton wrote:
> What do you have your log levels configured as? For struts, xwork, and
> OGNL?
>
> Dave
Am Mittwoch, den 06.10.2010, 21:39 +0200 schrieb Maurizio Cucchiara:
> gender.add(getText("user.gender.female"));
> gender.add(getText("user.gender.male"));
you ever tried that? I used it in the prepare method, and i don't know
why but at lot of page request the getText is returning the wrong
tran
No matter how hard I look, I can't find the answer to this (admittedly newbie)
question. How do you get access to the values of init parameters or context
parameters declared in your web.xml file in your jsp page? Can they be accessed
through ognl?
A related question ... is there a good refere
Try to launch in project root directory (on level up of src directory)
Maurizio Cucchiara
2010/10/6 Antonio Sánchez :
> Hi.
>
> I need the javadoc api working locally.
>
> Does it exist a bundle to download?
>
> Or
>
> How can I generate the javadoc from source code using maven?
>
> I've never u
Why don't you simply move your translation process in this manner:
gender.add(getText("user.gender.female"));
gender.add(getText("user.gender.male"));
Maurizio Cucchiara
2010/10/6 Daniel Rindt :
> Hello,
>
> i would like to display in a multi language page a select field where
> you choose your
Hi.
I need the javadoc api working locally.
Does it exist a bundle to download?
Or
How can I generate the javadoc from source code using maven?
I've never used maven and I'm having problems with it. From src
directory I type:
mvn javadoc:javadoc
or
mvn javadoc:aggregate
But it complains:
Hello,
i would like to display in a multi language page a select field where
you choose your gender.
in my action i define the list with the translation keys:
gender = new HashMap();
gender.put(0, "user.gender.female");
gender.put(1, "user.gender.male");
the jsp contains:
the dropdown field is
I've tried the jquery plugin, but it just doesn't work for me. A bug in
publishing and subscribing to topics had been ignored on the Google Groups
site for it since July, but once I just wrote the straight jquery code it
worked fine. I also didn't want to resort to Javascript to put content into
a
You could use StreamResult:
${mimeType}
${length}
inline;
filename="${fileName}"
inputStream
1024
false
public class StreamAction {
private Strin
What do you have your log levels configured as? For struts, xwork, and OGNL?
Dave
On Wed, Oct 6, 2010 at 10:39 AM, Darren Karstens
wrote:
> The tag worked, thanks that will come in handy. I would
> still like to get errors reporting in the logs, any got any ideas?
>
> On Wed, Oct 6, 2010 at 2:3
The tag worked, thanks that will come in handy. I would
still like to get errors reporting in the logs, any got any ideas?
On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai wrote:
> try the tag
>
> on the page
>
>
> Regards,
> Mead
>
>
> On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens
> wrote:
>
>> Hi,
Greg is right. JQuery is very easy to use and provides a new approach
to write non-intrusive javascript.
Maurizio Cucchiara
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@s
I haven't used the jQuery plugin but I would highly recommend just
using straight jQuery.
I've been very impressed with how easy it is to use and how much you
can accomplish with very little jQuery code.
As far as the jQuery plugin goes; it appears to give you a bunch of
snazzy UI elements via jsp
try the tag
on the page
Regards,
Mead
On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens wrote:
> Hi,
> I can't seem to get any errors to appear when struts goes wrong
> (action trying to set/get an attribute that doesn't exist etc). I have
> the commons-logging-1.1.jar file in my /WEB-INF/lib
>
Hi,
I can't seem to get any errors to appear when struts goes wrong
(action trying to set/get an attribute that doesn't exist etc). I have
the commons-logging-1.1.jar file in my /WEB-INF/lib
folder and have the
line in my struts.xml file. Despite this I have never seen an error in
my log files. Is
Hi.
I'm developing an HTTP client application that is requesting to a St2
application that delivers xml content.
I need to show the response progress to the user and that means I need
to buffer the output, calculate the content length and set the
Content-Length header before sending any data in t
Required dependencies missing (You'll notice that WEB-INF/lib
directory is empty).
This is not the right example for starting. Try to download
struts-blank application at
http://apache.panu.it//struts/examples/struts2-blank-2.0.14.war
Maurizio Cucchiara
2010/10/6 ir2pi :
>
> hello I'm learning st
20 matches
Mail list logo