Re: get webapp root directory from action constructor

2006-11-06 Thread Antonis Lebesis
Hello, I don't know if you still need it, but the "correct" way is to add a ServletContextListener. To do this, you have to implement the ServletContextListener interface: public class FooContextListener implements ServletContextListener { public void contextInitialized(ServletContextEve

[SOLVED?]: Add request parameter in

2006-10-25 Thread Antonis Lebesis
After a lot of searching, I found that you there is no "struts way" of adding a request parameter to . I used java code to solve it: Antonis. On 10/25/06, Antonis Lebesis <[EMAIL PROTECTED]> wrote: Hello Martin, thanks for the answer, but I 'm afraid I wasn

Re: Add request parameter in

2006-10-25 Thread Antonis Lebesis
bution or copying of it or its contents - Original Message ----- From: "Antonis Lebesis" <[EMAIL PROTECTED]> To: "struts" Sent: Tuesday, October 24, 2006 7:08 PM Subject: Add request parameter in > Hello, > > I want to add a request parameter in tag. I s

Add request parameter in

2006-10-24 Thread Antonis Lebesis
Hello, I want to add a request parameter in tag. I searched the user guide, but I didn't find anything relevant. Have you any idea on how to do this? The code I 'm using is: Thanks, Antonis. - To unsubscribe, e-mail: [EMA

Re: Print value of a map

2006-10-01 Thread Antonis Lebesis
You can also try: Antonis On 10/1/06, Paul Benedict <[EMAIL PROTECTED]> wrote: Yes, JSTL provides a way: Where var1 is the name of the bean inside the requestScope (or sessionScope), and then var2 is the lookup of the bean. The [] notation works with any collection. chamal desilva wrote:

Re: Request parameters in action forward

2006-06-21 Thread Antonis Lebesis
Redirect(forward); redirect.addParameter("id", idValue); return redirect; Antonis Lebesis wrote: > Hi, > I do have a SelectFooAction (actually it's called ChooseFooAction > :)). There is another problem though: > This action is used in more than one places so I have to add a > param

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Antonis On 6/21/06, Monkeyden <[EMAIL PROTECTED]> wrote: >The only thing that I >can think of is to redirect the user to a different (perhaps error) exactly, send them back to wherever they go to select the foo they want to look at. Do you have a SelectFooAction? On 6/20/06,

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Can you take the request parameter and populate a hidden form field with it? Mixing request params with form fields has caused me grief more than once. On Jun 19, 2006, at 7:34 PM, Antonis Lebesis wrote: > Hello, > I have a jsp (foo.jsp) that displays information about a certain > foo. I hav

Request parameters in action forward

2006-06-19 Thread Antonis Lebesis
Hello, I have a jsp (foo.jsp) that displays information about a certain foo. I have defined a LoadFooAction, that prepares the foo object and the SubmitFooAction, that is called when I want to change the appearance of foo in foo.jsp [suppose that foo is a list of bars and that I want to change th

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Antonis Lebesis" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Ma

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
se correct character encoding > <%@ page ;contentType="text/html" charset=UTF-8"%> > > Set form to use correct form encoding > > > Instruct web container to use selected charset when creating request (in > server.xml) > > > HTH, > Martin --

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
orrect form encoding Instruct web container to use selected charset when creating request (in server.xml) HTH, Martin -- - Original Message - From: "Antonis Lebesis" <[EMAIL PROTECTED]> To: Sent: Monday, May 29, 2006 2:07 PM Subject: multipart/form-data and character encodi

multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
Hi, I 've searched the archives but haven't found any solution to my latest problem. I have with a input and a input. The problem is that request.getCharacterEncoding() returns null and the text input is considered to be in iso-8859-1 encoding. In the corresponding ActionForm's reset(), I have a