Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Harsh Grover
small correction, the request goes to http://localhost:8080/test/actions/loadLogin. action. On Wed, Jan 19, 2011 at 7:33 PM, Harsh Grover wrote: > here it is. > > > home.jsp > > loadLogin > true > true > > > > login.jsp > > > if login su

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Harsh Grover
here it is. home.jsp loadLogin true true login.jsp if login succeeds, i'm taking the user to the home page. However, if login fails, I'm redirecting the user back to the login page with a query param: loginFailed=true. However, it is forwarding to http://localhost:8080/test/actions/loadLogi

Re: [S2] Struts doesn't upload 0 byte files?

2011-01-19 Thread Burton Rhodes
Done! https://issues.apache.org/jira/browse/WW-3562 On Wed, Jan 19, 2011 at 1:02 AM, Lukasz Lenart wrote: > 2011/1/19 Burton Rhodes : >> Thanks for all the help.  I ended up "solving" the issue with a "if >> (file.exist())" check. >> >> However, in case anyone cares to dive into this, I've atta

RE: Add a map to HttpRequest attributes

2011-01-19 Thread Alfredo Manuel Osorio Martinez
What about iterating the map and put each attribute in the HttpRequest. Something like this: Map myMap = getMyMap(); Set> entrySet = myMap.entrySet(); for (Map.Entry entry : myMap.entrySet()) { request.setAttribute(entry.getKey(), entry.getValue());

Add a map to HttpRequest attributes

2011-01-19 Thread Dave Evans
Hello, I have a business layer method that returns a map of objects. I would like to put all of the keys and values of this map into the request attribute map, like this: HttpRequest.putAll(map); This of course doesn't work, as the request isn't a map and the attributes map isn't available as a ma

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Mohamed SIDI
can you put out your configuration in struts.xml? 2011/1/18 Harsh Grover > I'm using redirectAction to send the user to another action using > redirectAction. However, if the namespace is not provided, the request is > getting forwarded to localhost:8080 (my server instance). I'm using apache

Re: Struts 2.0.14 - Could not reload resource bundles exception

2011-01-19 Thread Samuel Robert
Hi, I got the same exception with Tomcat, which I do not have with Jetty. Setting the "devMode" Struts property to "false" solved the problem (as far as you do not need the resource bunbles to be reloaded dynamically). struts.i18n.reload=false struts.configuration.xml.reload=false struts.devMode=