Re: java application to struts

2004-08-17 Thread Bill Siggelkow
If you return null from the execute() method the Struts RequestProcessor assumes that the Action has written the response. Dhaliwal, Pritpal (HQP) wrote: Isn't there always a response? And if there is no response how would you know that things went great? Why not just return a little status code.

Re: java application to struts

2004-08-17 Thread Erik Weber
r how things didn't go great. Just like processes.. Mi dos cientos.. Pritpal -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 9:00 AM To: Struts Users Mailing List Subject: Re: java application to struts In a case like this my action mapping

RE: java application to struts

2004-08-17 Thread Dhaliwal, Pritpal (HQP)
.. Mi dos cientos.. Pritpal -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 9:00 AM To: Struts Users Mailing List Subject: Re: java application to struts In a case like this my action mapping would look something like this: In other

Re: java application to struts

2004-08-17 Thread Erik Weber
In a case like this my action mapping would look something like this: In other words, no forwards, no form beans. Your execute method in your action class can manipulate the response OutputStream, flush and close it manually and then return null to the controller. Erik Erik Weber wrote: Ah. Y

Re: java application to struts

2004-08-17 Thread Erik Weber
Ah. Your Action's execute method, which returns an ActionForward instance, can return null, and (as far as I know) the controller won't send a response. I use this when serving binary files. Erik Saurabh Bhatla wrote: Erik, then my question is what do i need to change in .xml file if i dont wan

Re: java application to struts

2004-08-17 Thread Saurabh Bhatla
Erik, then my question is what do i need to change in .xml file if i dont want anything to be returned back to the application from struts?. reading and writing to the stream is handled manually in servlets. Will it be like if i dont apecify in .xml file then nothing will be returned to the appl

Re: java application to struts

2004-08-17 Thread Erik Weber
To your HTTP client, there should be no difference between a Struts app and any other Servlet-based app (or HTTP server app for that matter). Right? Erik Saurabh Bhatla wrote: Hi all, I have my web application based on struts framework. This application takes some information from the user. I c