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

Re: Add request parameter in bean:include

2006-10-25 Thread Antonis Lebesis
contents - Original Message - From: Antonis Lebesis [EMAIL PROTECTED] To: struts user@struts.apache.org Sent: Tuesday, October 24, 2006 7:08 PM Subject: Add request parameter in bean:include Hello, I want to add a request parameter in bean:include tag. I searched the user guide

[SOLVED?]: Add request parameter in bean:include

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 bean:include. I used java code to solve it: bean:include id=fooId page='%= /loadFoo.do?fooParam=bar %'/ bean:write name=fooId/ Antonis. On 10/25/06, Antonis Lebesis [EMAIL PROTECTED] wrote

Add request parameter in bean:include

2006-10-24 Thread Antonis Lebesis
Hello, I want to add a request parameter in bean:include 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: bean:include forward=login id=loginForm/ bean:write name=loginForm filter=false/ Thanks, Antonis.

Re: Print value of a map

2006-10-01 Thread Antonis Lebesis
You can also try: bean:write name=myMap property=myKey/ Antonis On 10/1/06, Paul Benedict [EMAIL PROTECTED] wrote: Yes, JSTL provides a way: c:out value=${requestScope[var1][var2]} / Where var1 is the name of the bean inside the requestScope (or sessionScope), and then var2 is the lookup

Re: Request parameters in action forward

2006-06-21 Thread Antonis Lebesis
); 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 parameter called action in it's url (action=display

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
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 have defined a LoadFooAction, that prepares the foo object

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
[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, Antonis Lebesis [EMAIL PROTECTED] wrote: Thank you

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

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 html:file input and a html:text 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

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
/x-www-form-urlencoded; charset=UTF-8 Instruct web container to use selected charset when creating request (in server.xml) Connector port..URIEncoding=UTF-8.../ HTH, Martin -- - Original Message - From: Antonis Lebesis [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, May 29

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
- From: Antonis Lebesis [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, May 29, 2006 2:07 PM Subject: multipart/form-data and character encoding Hi, I 've searched the archives but haven't found any solution to my latest problem. I have with a html:file input and a html:text

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
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 user@struts.apache.org; Martin Gainty [EMAIL PROTECTED] Sent: Monday, May 29, 2006 7