Re: Struts issue with getting response to the post request of the action class which works fine in postman but not in browser - Regarding

2023-05-16 Thread Lukasz Lenart
ue"); > response.setStatus(HttpStatus.SC_OK); > response.setContentType("application/json"); > response.getWriter().write(responseJSON.toString()); > return null; > } > return null; Why do you write directly to the response? This is really a bad idea, I would use either a JSON result from t

Struts issue with getting response to the post request of the action class which works fine in postman but not in browser - Regarding

2023-05-10 Thread Vishnu Mahendiren
Hi team, We are getting the below attached exceptions when we are using struts2-core-6.1.2.jar. We tested the action class using struts2-core-2.5.22.jar and struts2-core-2.5.30.jar. We are getting response properly when using those versions of struts. But when using struts2-core-6.1.2.jar, we are

Re: After migrating to struts 2.3.24 from struts 2.1.8, no response to action on login page

2016-01-08 Thread Lukasz Lenart
k.LoginAction" method="loginCheck"> > </action> > In our logs we get the Request start for the action framework/login.action , > but no response is obtained thereafter and same is evident from the logs. Do you use the same result to show form and to submit i

After migrating to struts 2.3.24 from struts 2.1.8, no response to action on login page

2016-01-08 Thread punter
mework"> The struts-framework.xml file has the action defined as follows: <action name="login" class="com.abc.action.framework.LoginAction" method="loginCheck"> </action> In our logs we get the Request start for the action framework/login

Re: S2: How to tell if a response has been committed from an interceptor?

2016-01-07 Thread Christoph Nenning
> Inside an Interceptor I'm getting an exception > > java.lang.IllegalStateException: Cannot create a session after the response > has been committed > I have access to the ActionInvocation as this is passed into doIntercept() > public String doIntercept(ActionInvoca

Re: S2: How to tell if a response has been committed from an interceptor?

2016-01-06 Thread Ken McWilliams
Well you go down the chain create the result and then back up the chain. So when going back up the response should already be committed. see: https://struts.apache.org/docs/writing-interceptors.html //modified code from above link to clarify public String intercept(ActionInvocation

S2: How to tell if a response has been committed from an interceptor?

2016-01-06 Thread Greg Lindholm
Inside an Interceptor I'm getting an exception java.lang.IllegalStateException: Cannot create a session after the response has been committed I have access to the ActionInvocation as this is passed into doIntercept() public String doIntercept(ActionInvocation invocation) throws Exceptio

RE: Textfield onchange --> handling ajax error response to show action errors

2015-09-02 Thread Martin Gainty
> To: user@struts.apache.org > Subject: RE: Textfield onchange --> handling ajax error response to show > action errors > From: christoph.nenn...@lex-com.net > Date: Wed, 2 Sep 2015 10:08:16 +0200 > > The documentation about ajax-validation might help you: > >

RE: Textfield onchange --> handling ajax error response to show action errors

2015-09-02 Thread Christoph Nenning
t function StrutsUtils.showValidationErrors( ) to display them. Of course you must include struts utils.js to use that function. regards, Christoph > From: fea jabi > To: "user@struts.apache.org" , > Date: 01.09.2015 14:37 > Subject: RE: Textfield onchange --> handling aj

RE: Textfield onchange --> handling ajax error response to show action errors

2015-09-01 Thread fea jabi
Can you point me to a link that has the sample which does this please? I tried but couldn't get the result. Thanks, for trying to help me on this. > From: lukaszlen...@apache.org > Date: Sun, 30 Aug 2015 15:22:52 +0200 > Subject: Re: Textfield onchange --> handling ajax

Re: Textfield onchange --> handling ajax error response to show action errors

2015-08-30 Thread Lukasz Lenart
works on server side but JavaScript works on client side - it isn't possible to join them. You can only mimic its behaviour by adding the same html structure as does. 2015-08-28 17:14 GMT+02:00 fea jabi : > text-field onchange ---> making ajax call. > > > onsucess ---> everything works fine as

Textfield onchange --> handling ajax error response to show action errors

2015-08-28 Thread fea jabi
text-field onchange ---> making ajax call. onsucess ---> everything works fine as needed on failure - > like user entered wrong data ---> How to show the error messages in jsp. I added fieldError but not sure how to show it in jsp with the ajax stuff. In jsp

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-18 Thread Lukasz Lenart
2014-03-18 15:21 GMT+01:00 Paul Benedict : > Lukasz, the ServletResponse interface does contain an isCommitted() method. > We can avoid this situation by checking it first. Great! Fixing this is piece of cake :-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-18 Thread Paul Benedict
Yeah. It should be -- but let's also log the response code we couldn't set. Maybe debug()? On Tue, Mar 18, 2014 at 9:28 AM, Lukasz Lenart wrote: > 2014-03-18 15:21 GMT+01:00 Paul Benedict : > > Lukasz, the ServletResponse interface does contain an isCommitted() > method.

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-18 Thread Paul Benedict
Lukasz, the ServletResponse interface does contain an isCommitted() method. We can avoid this situation by checking it first. On Tue, Mar 18, 2014 at 1:24 AM, Lukasz Lenart wrote: > 2014-03-18 7:01 GMT+01:00 Jose L Martinez-Avial : > > Well, that's a good thing, but anyway I think the default di

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-17 Thread Lukasz Lenart
2014-03-18 7:01 GMT+01:00 Jose L Martinez-Avial : > Well, that's a good thing, but anyway I think the default dispatcher should > avoid this kind of error. The problem is (as far I can recall) that it's a Weblogic specific situation. I mean, Tomcat doesn't throw exception when user aborts opening

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-17 Thread Jose L Martinez-Avial
iling List" Subject: Re: Dispatcher attempts to write on the response after it has been commited As from 2.3.17 you will be able to write your own DispatcherErrorHandler https://issues.apache.org/jira/browse/WW-3887 https://cwiki.apache.org/confluence/display/WW/Dispatcher 2014-03-18 6:06 G

Re: Dispatcher attempts to write on the response after it has been commited

2014-03-17 Thread Lukasz Lenart
I recently noticed some > errors on the server log: > > java.lang.IllegalStateException: Response already committed > at > weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1553) > at > weblogic.servlet.intern

Dispatcher attempts to write on the response after it has been commited

2014-03-17 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.3.16.1 with Weblogic 10.3. I recently noticed some errors on the server log: java.lang.IllegalStateException: Response already committed at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1553)

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread umamaheswara rao
: Struts Users Mailing List Sent: Tuesday, July 9, 2013 11:28 AM Subject: Re: How to make interceptor to be invoked only for HTTP Request not for Response Yes you are right Dave, let me recheck the scenario when my interceptor calls twice. -- Thanks & Regards Srikanth Software Devel

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Sreekanth S. Nair
6 PM, Dave Newton wrote: > What do you mean by "called while response"? Interceptors aren't called > twice, they wrap action invocation. > > Dave > On Jul 9, 2013 10:07 AM, "Sreekanth S. Nair" < > sreekanth.n...@egovernments.org> wrote: > >

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Dave Newton
What do you mean by "called while response"? Interceptors aren't called twice, they wrap action invocation. Dave On Jul 9, 2013 10:07 AM, "Sreekanth S. Nair" < sreekanth.n...@egovernments.org> wrote: > I have a custom interceptor for trimming whitespaces in req

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Umesh Awasthi
Interceptor are designed to work in this way.. They work in 2 steps pre-processing and post-processing.The time Interceptor is called in reverse order, response will already be with your client (Browser) Other option (not good) is to create a custom convertor where you can trim spaces. On Tue

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Sreekanth S. Nair
ts2 interceptor work like a filter, just like in ur pseudo > > code. In filter we can specify > > what to do with request and response by adding code before and > > after chain.doFilter(request, response). In Interceptor intercept method > > will always get executed befo

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Paul Benedict
do with request and response by adding code before and > after chain.doFilter(request, response). In Interceptor intercept method > will always get executed before and after req & resp. > > > > > -- > Thanks & Regards > Srikanth > Software Developer > ---

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Sreekanth S. Nair
); invocation.getInvocationContext().setParameters(parameters); return invocation.invoke(); } but this interceptor is getting called while request as well as while coming back from my action (response). I dont want intercept method to be called while response. -- Thanks & Reg

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Dave Newton
M, "Sreekanth S. Nair" < sreekanth.n...@egovernments.org> wrote: > I doubt struts2 interceptor work like a filter, just like in ur pseudo > code. In filter we can specify > what to do with request and response by adding code before and > after chain.doFilter(request, respon

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Sreekanth S. Nair
I doubt struts2 interceptor work like a filter, just like in ur pseudo code. In filter we can specify what to do with request and response by adding code before and after chain.doFilter(request, response). In Interceptor intercept method will always get executed before and after req &

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Felipe Lorenz
I dont think it is possible. But I believe you can just ignore the response and do nothing with that. I am not sure if I understand your question. But an interceptor has only one call per request/response. So your code could like this: public class Interceptor { method

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Sreekanth S. Nair
Yes, i have an Interceptor basically to Trimming of input values, i don't want to do this to be happened while request coming back with response. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9

Re: How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread umeshawasthi
Any specific reason to do that? --Original Message-- From: Sreekanth S. Nair To: Struts Users Mailing List ReplyTo: Struts Users Mailing List Subject: How to make interceptor to be invoked only for HTTP Request not for Response Sent: Jul 9, 2013 5:33 PM How to make interceptor to be

How to make interceptor to be invoked only for HTTP Request not for Response

2013-07-09 Thread Sreekanth S. Nair
How to make interceptor to be invoked only for HTTP Request not for Response

Re: Cannot forward after response has been committed...

2013-01-18 Thread raghu88
); -- View this message in context: http://struts.1045723.n5.nabble.com/Cannot-forward-after-response-has-been-committed-tp5710573p5711664.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: getOutputStream() has already been called for this response

2013-01-18 Thread S S
Hi, I am also facing the same problem while trying to download to excel. Plz let me know what code u have added to solve this problem -- View this message in context: http://struts.1045723.n5.nabble.com/Cannot-forward-after-response-has-been-committed-tp5710573p5711663.html Sent from the

Re: getOutputStream() has already been called for this response

2012-09-12 Thread raghu88
now this problem is solved i added a piece of code the file is downloading when downloading the file it gives an exception "cannot forward after response has been committed" .and i am trying to open the file it says "the file you are trying to open .xls is in a differ

Re: getOutputStream() has already been called for this response

2012-09-06 Thread Christopher Schultz
ateException: getOutputStream() has already been > called for this response at > org.apache.catalina.connector.Response.getWriter(Response.java:598) > > [:6.1.0.Final] Why are you calling response.getWriter() when you want to export Microsoft Excel (binary) data? You want to be using getOut

RE: getOutputStream() has already been called for this response

2012-09-05 Thread Martin Gainty
:40 -0700 > From: tammi...@gmail.com > To: user@struts.apache.org > Subject: getOutputStream() has already been called for this response > > hi to all, > please any one help me .i am trying to export some data to excel > file...while doing this i am getting following exc

getOutputStream() has already been called for this response

2012-09-05 Thread raghu88
action threw exception: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:598) [:6.1.0.Final] at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199

Re: slow request/response may be because of validation/conversion

2011-10-10 Thread Li Ying
I think conversion and validation should not be turned off. The [conversion] convert http parameters (which is String) to the real data type so your action can accept. The [validation] check the parameters if they a valid. And also, normally, conversion and validation should not take too much ti

Re: slow request/response may be because of validation/conversion

2011-10-10 Thread Carl Ballantyne
n > > someone tell me how I am able to stop them so that I is a little bit > fast. > > Currently without debug the request response time is almost 2-3 seconds > on a > > local machine and with debugging enabled its 7-8 secs. > > > > > > > > Regards,

Re: slow request/response may be because of validation/conversion

2011-10-10 Thread Łukasz Lenart
meone tell me how I am able to stop them so that I is a little bit fast. > Currently without debug the request response time is almost 2-3 seconds on a > local machine and with debugging enabled its 7-8 secs. > > > > Regards, > > Amir > > > PS: Bellow are some of the chu

Re: slow request/response may be because of validation/conversion

2011-10-10 Thread Maurizio Cucchiara
> Currently without debug the request response time is almost 2-3 seconds on a > local machine and with debugging enabled its 7-8 secs. > > > > Regards, > > Amir > > > PS: Bellow are some of the chunks from just one request/response. Most of > them are repeate

slow request/response may be because of validation/conversion

2011-10-10 Thread Amir Wasim
fast. Currently without debug the request response time is almost 2-3 seconds on a local machine and with debugging enabled its 7-8 secs. Regards, Amir PS: Bellow are some of the chunks from just one request/response. Most of them are repeated multiple times for each attribute. The one with

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
ET", url, true); >>>            } catch (e) { >>>                alert(e); >>>            } >>>            req.send(null); >>>        } else if (window.ActiveXObject) { // IE >>>            req = new ActiveXObject("Microsoft.XMLHTTP"); >>>            if (req)

Re: Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
function processStateChange() { if (req.readyState == 4) { // Complete if (req.status == 200) { // OK response var data = req.responseText; alert(data); document.getElementById("characters").innerHTML = data; } el

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
tatechange = processStateChange; >                req.open("GET", url, true); >                req.send(); >            } >        } >    } > >    function processStateChange() { >        if (req.readyState == 4) { // Complete >            if (req.status == 200) { // OK response

Re: Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
if (req.readyState == 4) { // Complete if (req.status == 200) { // OK response var data = req.responseText; alert(data); document.getElementById("characters").innerHTML = data; } else {

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
Hi Ajib, > public ActionForward execute(ActionMapping mapping, ActionForm inForm, > HttpServletRequest request, HttpServletResponse response) throws Exception { > >        // Get a list of characters associated with the select TV show >        String tvShow = (String) request.getPa

Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
(ActionMapping mapping, ActionForm inForm, HttpServletRequest request, HttpServletResponse response) throws Exception { // Get a list of characters associated with the select TV show String tvShow = (String) request.getParameter("tvShow"); if (tvShow == null) {

Re: getOutputStream() has already been called for this response

2011-08-20 Thread Dave Newton
A request can only return one response: the file, or a forward (assuming it's not some sort of streaming forward). That method is pretty hard to follow, and should be refactored, IMO. Dave On Saturday, August 20, 2011, raaja.g wrote: > Hi, > > I am getting the *java.lang.Illegal

getOutputStream() has already been called for this response

2011-08-20 Thread raaja.g
Hi, I am getting the *java.lang.IllegalStateException: getOutputStream()* has already been called for this response when I use *return map.findForward("success")* at the end of action method. But this exception wont appear if I return null. As I am not using writer object. But thi

Re: web application response time is too large.

2010-12-23 Thread Dale Newfield
On 12/23/10 1:13 AM, manu.francis.mat...@accenture.com wrote: Thank you very much for explaining so clearly. One suggestion I don't think anyone here offered is running your application in a profiler to see where it's spending its time. I've found the one in NetBeans to be pretty good, and I

RE: web application response time is too large.

2010-12-22 Thread manu.francis.mathew
Mathew, 9742260423. Team Lead - Accenture. www.accenture.com From: Dave Newton [davelnew...@gmail.com] Sent: Wednesday, December 22, 2010 10:33 AM To: Struts Users Mailing List Subject: Re: web application response time is too large. On Tue, Dec 21, 2010 at 1

Re: web application response time is too large.

2010-12-22 Thread onlysameer_no1else
Thanks Kushan --- In str...@yahoogroups.com, Kushan Jayathilake wrote: > > Addition to this, you can track response time with Firebug (Third party > plugin for Firefox) once it installed, open it's "Net" tab, and click or do > whatever action in your JSP page, afte

Re: web application response time is too large.

2010-12-21 Thread Kushan Jayathilake
21, 2010 at 11:15 PM, Kushan Jayathilake >wrote: > > > Addition to this, you can track response time with Firebug (Third party > > plugin for Firefox) once it installed, open it's "Net" tab, and click or > > do > > whatever action in your JSP page, after the

Re: web application response time is too large.

2010-12-21 Thread Brian Thompson
I love Firebug. It's quite possibly the single best tool in my web development toolbox. -Brian On Tue, Dec 21, 2010 at 11:15 PM, Kushan Jayathilake wrote: > Addition to this, you can track response time with Firebug (Third party > plugin for Firefox) once it installed, open it&

Re: web application response time is too large.

2010-12-21 Thread Kushan Jayathilake
Addition to this, you can track response time with Firebug (Third party plugin for Firefox) once it installed, open it's "Net" tab, and click or do whatever action in your JSP page, after the browser received it's response you can see how long it has taken to load the content

Re: web application response time is too large.

2010-12-21 Thread Brian Thompson
> > > > Normalization can often *increase* response time, particularly for some > types of operations, because of the join overhead. The DB needs to be > correct for what it's being used for, and sometimes normalization isn't the > best approach. > > (Although I try

Re: web application response time is too large.

2010-12-21 Thread Dave Newton
On Tue, Dec 21, 2010 at 11:56 PM, wrote: > Are you sure that database is normalised as well.. > Normalization can often *increase* response time, particularly for some types of operations, because of the join overhead. The DB needs to be correct for what it's being used for, an

Re: web application response time is too large.

2010-12-21 Thread Kushan Jayathilake
10:49 PM, onlysameer_no1else wrote: > Hi All > > I have developed one web application in struts 1, > database as MS SQL server and it is deployed on tomcat 6 server (Window > OS). > > For certain pages response time is too large. > Test case: > (content on web page

RE: web application response time is too large.

2010-12-21 Thread manu.francis.mathew
ts-u...@jakarta.apache.org Subject: RE: web application response time is too large. What sort of validation mechanism and actions you are putting on your web form? Anyway, you can try Jmeter to performance test your application. Regards Amit Oberoi Sent from my Nokia E72. -Original Message-

RE: web application response time is too large.

2010-12-21 Thread Amit Oberoi
...@jakarta.apache.org Subject: web application response time is too large. Hi All I have developed one web application in struts 1, database as MS SQL server and it is deployed on tomcat 6 server (Window OS). For certain pages response time is too large. Test case: (content on web page is too large like

Re: web application response time is too large.

2010-12-21 Thread Dave Newton
er and it is deployed on tomcat 6 server (Window > OS). > > For certain pages response time is too large. > Test case: > (content on web page is too large like text box, buttons, images.) > Total Number of records: 284 > total Columns in single table : 168 > > I ne

web application response time is too large.

2010-12-21 Thread onlysameer_no1else
Hi All I have developed one web application in struts 1, database as MS SQL server and it is deployed on tomcat 6 server (Window OS). For certain pages response time is too large. Test case: (content on web page is too large like text box, buttons, images.) Total Number of records: 284

Re: Setting Content-Length for monitoring response progress in user agent

2010-10-06 Thread Maurizio Cucchiara
You could use StreamResult: ${mimeType} ${length} inline; filename="${fileName}" inputStream 1024 false public class StreamAction { private Strin

Setting Content-Length for monitoring response progress in user agent

2010-10-06 Thread Antonio Sánchez
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 da

RE: Ajax Response - Array Objects (working examples)

2010-07-16 Thread Martin Gainty
importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: mgai...@hotmail.com To: user@struts.apache.org Subject: RE: Ajax Response - Array Objects Date: F

RE: Ajax Response - Array Objects

2010-07-16 Thread Martin Gainty
sage sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: RE: Ajax Response - Array

RE: Ajax Response - Array Objects

2010-07-16 Thread CRANFORD, CHRIS
have expected, but for some reason the widget isn't populating the dropdown with it now. Any suggestions? > -Original Message- > From: Rahul Mohan [mailto:rahul.mo...@tcs.com] > Sent: Friday, July 16, 2010 1:10 AM > To: Struts Users Mailing List > Subject: Re: Ajax

Re: Ajax Response - Array Objects

2010-07-15 Thread Rahul Mohan
Chris, Maps are serialized as 'name : value' pairs, whereas Lists are serialized as Arrays. Change your return type to a List and try. - Rahul From: "CRANFORD, CHRIS" To: Date: 15-07-2010 19:04 Subject: Ajax Response - Array Objects I cannot seem to get my Ajax requ

Ajax Response - Array Objects

2010-07-15 Thread CRANFORD, CHRIS
I cannot seem to get my Ajax request to return to the Ajax client an array of objects. Instead of simply returning a key/value pair, I've read that it is possible to return the actual domain objects, but I have been unsuccessful. Each time, my combo box is populated with three values, "message t

RE: Doubt in json response

2010-02-20 Thread Martin Gainty
aucune responsabilité pour le contenu fourni. > Date: Sat, 20 Feb 2010 00:57:52 -0800 > From: cse.k.kart...@gmail.com > To: user@struts.apache.org > Subject: Doubt in json response > > > Hi guys > > I am very new to the forum > > i

Doubt in json response

2010-02-20 Thread Karthik Screen
Hi guys I am very new to the forum i am providing a json response with recursive looping import org.json.simple.JSONObject; public class JsonClass { public static void main(String args[]) { System.out.println(call(5)); } public static int call(int i) { if(i==1

Re: NoResult - write response in the Action

2009-11-05 Thread Dale Newfield
Siddiq Syed wrote: What will be the view in this case ? This is a special return value reserved primarily for actions that generate their own output directly, and used to indicate that the framework should not dispatch to any view (as the view has already been sent to the requester). -Dale

Re: NoResult - write response in the Action

2009-11-05 Thread Brian Thompson
If I understand correctly, the response will just be sent directly to the client without going through jsp processing. -Brian On Thu, Nov 5, 2009 at 1:36 PM, Siddiq Syed wrote: > > What will be the view in this case ? > > I mean there must be some jsp kinda thing , where the Res

Re: NoResult - write response in the Action

2009-11-05 Thread Siddiq Syed
What will be the view in this case ? I mean there must be some jsp kinda thing , where the Response can be displayed !! If the framework doesn't goes to the strust.xml file , Can we define some view in the action itself ?? I am curious , may be i am out of context for this.but !! I

Re: NoResult - write response in the Action

2009-11-05 Thread Dale Newfield
Greg Lindholm wrote: Looking at the code it appears that (null) and "none" are treated the same and both cause results processing to be skipped. Thanks! and the annotated view: http://svn.opensymphony.com/fisheye/browse/xwork/trunk/src/java/com/opensymphony/xwork2/DefaultActionInvocation.java?

Re: NoResult - write response in the Action

2009-11-04 Thread Greg Lindholm
Hey Admins... I don't seem to be able to edit http://struts.apache.org/2.x/docs/result-configuration.html is there a problem with the wiki (or is it just down for maintenance)? On Wed, Nov 4, 2009 at 10:24 AM, Greg Lindholm wrote: > Thanks. I did see the javadoc for NONE (after you suggested usi

Re: NoResult - write response in the Action

2009-11-04 Thread Greg Lindholm
Thanks. I did see the javadoc for NONE (after you suggested using it). It just seemed to me to be a little vague considering that NONE really is a special case as it is the only result that is 'functional' where the others are more like 'convention'. In any case it certainly wasn't a place I thoug

Re: NoResult - write response in the Action

2009-11-04 Thread Haroon Rafique
On Today at 9:42am, GL=>Greg Lindholm wrote: GL> Thanks that did the trick. GL> GL> Where did you learn about the NONE result? Is it documented somewhere? GL> Hi Greg, I first saw it in the 2.0.11 source code when trying to create a new result type. The javadoc for it was quite helpful:

Re: NoResult - write response in the Action

2009-11-04 Thread Brian Thompson
about the NONE result? Is it documented somewhere? > > On Tue, Nov 3, 2009 at 5:56 PM, Haroon Rafique > wrote: > > > On Today at 5:13pm, GL=>Greg Lindholm wrote: > > > > GL> I have a situation where I want to fully handle the result in the > > A

Re: NoResult - write response in the Action

2009-11-04 Thread Greg Lindholm
e > Action > GL> including writing the response to the HttpServletResponse. > GL> > > > return ActionSupport.NONE? > > > GL> > GL> What's the best way to handle this so there is no further results > processing > GL> after the execute() method ends? &

Re: NoResult - write response in the Action

2009-11-03 Thread Haroon Rafique
On Today at 5:13pm, GL=>Greg Lindholm wrote: GL> I have a situation where I want to fully handle the result in the Action GL> including writing the response to the HttpServletResponse. GL> return ActionSupport.NONE? GL> GL> What's the best way to handle this so ther

NoResult - write response in the Action

2009-11-03 Thread Greg Lindholm
I have a situation where I want to fully handle the result in the Action including writing the response to the HttpServletResponse. What's the best way to handle this so there is no further results processing after the execute() method ends? Is there a way to disable results processing

Re: How to set a file name using a header in the response?

2009-06-27 Thread Jim Collings
Aware interfaces to the action to get access to the response header. Am I on the right track here? Jim C. signature.asc Description: OpenPGP digital signature

Re: How to set a file name using a header in the response?

2009-06-27 Thread john feng
e only way I know > of to make the setting above. I know that scriptlets are the old way of > doing things. I'm hoping that there is a new way to do this. JSTL > perhaps?  How would one set a response header in JSTL, assuming that it > is possible? > > > Jim C. > > > > > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to set a file name using a header in the response?

2009-06-27 Thread Dave Newton
Jim Collings wrote: Dave Newton wrote: Jim Collings wrote: <%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, th

Re: How to set a file name using a header in the response?

2009-06-27 Thread Jim Collings
. > > AFAIK you can't use EL inside a scriptlet. Well I thought as much but, so far, a scriptlet is the only way I know of to make the setting above. I know that scriptlets are the old way of doing things. I'm hoping that there is a new way to do this. JSTL perhaps? How would one set a response header in JSTL, assuming that it is possible? Jim C. signature.asc Description: OpenPGP digital signature

Re: How to set a file name using a header in the response?

2009-06-26 Thread Dave Newton
Jim Collings wrote: <%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, the "fromDate" and "toDate" items don't wor

How to set a file name using a header in the response?

2009-06-26 Thread Jim Collings
<%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, the "fromDate" and "toDate" items don't work. I've tried quoting

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
tive. Why should the RequestProcessor overwrite? > >> > >> Overriding the request processor is the normal way to add behavior to > apps > >>> running that version of Struts. > >>> > >> Thanks for approving the solution. > >

Re: RequestProcessor and contentType response header

2009-06-21 Thread Mike Dave
ocessor is the normal way to add behavior to apps >>> running that version of Struts. >>> >> Thanks for approving the solution. >> >> Thanks again, Dave. >> >> Cheers >> Avlesh >> >> >> On Sun, Jun 21, 2009 at 5:59 PM, D

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
uts. > Thanks for approving the solution. Thanks again, Dave. Cheers Avlesh On Sun, Jun 21, 2009 at 5:59 PM, Dave Newton wrote: > Avlesh Singh wrote: > >> Did not get a response yet :( >> > > It's also the weekend. > > Is this a dev list question >

Re: RequestProcessor and contentType response header

2009-06-21 Thread Dave Newton
Avlesh Singh wrote: Did not get a response yet :( It's also the weekend. Is this a dev list question No. 1. Shouldn't this method also check if the response already has a contentType header applied or not? Is this a known bug, or am I missing something? It's no

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
Did not get a response yet :( Is this a dev list question or my assumptions are correct? Cheers Avlesh On Sat, Jun 20, 2009 at 8:21 PM, Avlesh Singh wrote: > I am using Struts 1.2.7 > I wrote a Filter which intercepts all requests and applies response headers > (based on some

RequestProcessor and contentType response header

2009-06-20 Thread Avlesh Singh
I am using Struts 1.2.7 I wrote a Filter which intercepts all requests and applies response headers (based on some external configuration) to it. All response headers applied in my Filter other than "Content-Type" were obeyed and sent to the client. Content-Type was always "text/htm

Re: S2: setting caching-related response headers on *.action?

2009-06-06 Thread Paweł Wielgus
Hi Bas, i don't know what You are trying to achieve here but if it's not caching of Your sites read my post here: http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html Best greetings, Paweł Wielgus. 2009/6/5 Bas Schulte : > Hi, > > I want all re

S2: setting caching-related response headers on *.action?

2009-06-05 Thread Bas Schulte
Hi, I want all response of my action handlers to have a couple of headers related to caching (i.e.: do not cache this, please). I would expect there's some global settings somewhere (struts.xml) that handles this for me but I can't find it. Any pointers on this? Ch

Re: IllegalStateException: Cannot forward. Response already committed.

2009-05-24 Thread Wes Wannemacher
etLogger("index.jsp");log.debug("begin");%> name="welcome" /> > > Any other ideas? > > -Original Message- > From: Wes Wannemacher [mailto:w...@wantii.com] > Sent: Wednesday, May 20, 2009 4:48 PM > To: Struts Users Mailing List >

RE: IllegalStateException: Cannot forward. Response already committed.

2009-05-21 Thread Hermann X Lau
l" import="org.apache.log4j.Logger"%><%final Logger log = Logger.getLogger("index.jsp");log.debug("begin");%> Any other ideas? -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, May 20, 2009 4:48 PM To: Struts U

  1   2   3   >