You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Trinad <tr...@gmail.com> on 2008/10/14 18:12:15 UTC
Error 404: SRVE0190E: File not found:
Hi,
I have created a struts action which construts a json string in the server
side,action class successfully returned json string in the response, but I
am getting an Error 404: SRVE0190E: File not found: /Test.action
Any Idea about this problem. I am using struts2 and appserver is websphere.
Thanks,
Trinad.
--
View this message in context: http://www.nabble.com/Error-404%3A-SRVE0190E%3A-File-not-found%3A-tp19976730p19976730.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Error 404: SRVE0190E: File not found:
Posted by Trinad <tr...@gmail.com>.
Laurie Harper wrote:
>
> Trinad wrote:
>> Hi,
>>
>> I have created a struts action which construts a json string in the
>> server
>> side,action class successfully returned json string in the response, but
>> I
>> am getting an Error 404: SRVE0190E: File not found: /Test.action
>>
>> Any Idea about this problem. I am using struts2 and appserver is
>> websphere.
>
> Hard to tell without seeing any code or configuration, but my bet is
> you're not returning 'null' from your action.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> Hi,
>
> Thanks for your Reply.
>
> Please find the below code I am using the same one.
>
>
> Struts 2 Stream result Action
>
>
> package actions;
>
> import java.io.InputStream;
> import java.io.StringBufferInputStream;
> import com.opensymphony.xwork2.ActionSupport;
>
> public class TextResult extends ActionSupport {
> private InputStream inputStream;
> public InputStream getInputStream() {
> return inputStream;
> }
>
> public String execute() throws Exception {
> inputStream = new StringBufferInputStream("Hello World! This is a
> text string response from a Struts 2 Action.");
> return SUCCESS;
> }
> }
>
>
> Struts 2 Configuring the TextResult Action
>
> <action name="text-result" class="actions.TextResult">
> <result type="stream">
> text/html
> inputStream
> </result>
> </action>
>
> One more thing I want to tell you I am using RAD 7.0 test Server.
>
> I have tested the same code in Jboss It worked.Is there any problem with
> the RAD test server.
>
> Thanks,
> Trinad.
>
--
View this message in context: http://www.nabble.com/Error-404%3A-SRVE0190E%3A-File-not-found%3A-tp19976730p20073067.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Error 404: SRVE0190E: File not found:
Posted by Laurie Harper <la...@holoweb.net>.
Trinad wrote:
> Hi,
>
> I have created a struts action which construts a json string in the server
> side,action class successfully returned json string in the response, but I
> am getting an Error 404: SRVE0190E: File not found: /Test.action
>
> Any Idea about this problem. I am using struts2 and appserver is websphere.
Hard to tell without seeing any code or configuration, but my bet is
you're not returning 'null' from your action.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org