Re: streaming plain text, json, xml back to the user, IllegalStateException

2011-04-22 Thread Jake Vang
Dave, Yes, that works too. That is perhaps even more elegant. What I had was a sort of a kludge. Per your suggestion, if I don't return SUCCESS and return null, then that message doesn't appear. Another implication of your solution is then I don't need to have an actionAlias-success.jsp. Thank yo

Re: streaming plain text, json, xml back to the user, IllegalStateException

2011-04-22 Thread Dave Newton
My first guess would be to return null so you're not rendering a jsp after the output stream is closed. Dave On Apr 22, 2011 11:49 PM, "Jake Vang" wrote: > what i did to get rid of this message was to add the following line > before i do anything. > > getSerlvetRequest().getSession(); > > that m

Re: streaming plain text, json, xml back to the user, IllegalStateException

2011-04-22 Thread Jake Vang
what i did to get rid of this message was to add the following line before i do anything. getSerlvetRequest().getSession(); that means anytime this method is called i make the two method calls above. i'm not sure what the impact on performance will be. but for now, it gets rid of the message. if

streaming plain text, json, xml back to the user, IllegalStateException

2011-04-22 Thread Jake Vang
i am using struts 2 with the convention plugin. i have a bunch of actions that streams back plain text, json or xml. however, when a user goes to a certain URL, i keep seeing an IllegalStateException : Cannot create a session after the response has been committed. why is this happening? my action

Re: Struts 2 Interceptor Question

2011-04-22 Thread Christian Grobmeier
> Can a Struts 2 interceptor change/add a request or session parameter? Yes, and you can look at an example when you have the source and open: com.opensymphony.xwork2.interceptor.ParametersInterceptor > I'm trying to write a Struts 2 Exception Handler which is executed whenever > there is an unca

Struts 2 Interceptor Question

2011-04-22 Thread davidZaz3
Can a Struts 2 interceptor change/add a request or session parameter? I'm trying to write a Struts 2 Exception Handler which is executed whenever there is an uncaught exception. To do that, I plan to use a custom interceptor based on the existing Struts 2 ExceptionMappingInterceptor. My custom int

Re: Form xml validation doesn't work

2011-04-22 Thread Mohamed SIDI
right !! 2011/4/22 Dave Newton > It'd be easier if you'd post a minimal, non-working example--it'll help us > see what's wrong. > > I'm begging you to remove the huge image at the bottom of your emails. > > Dave > > On Fri, Apr 22, 2011 at 8:44 AM, kiala davy wrote: > > > Hi, > > > > I am learn

Re: Form xml validation doesn't work

2011-04-22 Thread Dave Newton
It'd be easier if you'd post a minimal, non-working example--it'll help us see what's wrong. I'm begging you to remove the huge image at the bottom of your emails. Dave On Fri, Apr 22, 2011 at 8:44 AM, kiala davy wrote: > Hi, > > I am learning Struts and working on tutorial of form validation

Re: Form xml validation doesn't work

2011-04-22 Thread Mohamed SIDI
Hi, Can you put out your ressources files, that will help us to resolve your problem B.W 2011/4/22 kiala davy > Hi, > > I am learning Struts and working on tutorial of form validation with xml > file. I think there is something wrong with the example given in Struts site > web http://struts.ap

Form xml validation doesn't work

2011-04-22 Thread kiala davy
Hi,I am learning Struts and working on tutorial of form validation with xml file. I think there is something wrong with the example given in Struts site web http://struts.apache.org/2.2.1/docs/form-validation-using-xml.html . Is there someone who success to test this example please ?ThanksĀ 

Using struts inside liferay portal server 6.x with struts2-portal2-plugin

2011-04-22 Thread Jason Pyeron
I have not observed any problems, but my log is showing entries like the following on start up: 11:02:11,615 ERROR [ServletVelocityResourceListener:74] _SERVLET_CONTEXT_/html/themes/classic/templates/html/portal/layout/view/portlet. vm is not valid because does not map to a servlet context 11:02