[S2] HTTP Status 404 - result 'null' not found

2007-05-17 Thread sr

It must be some configuration issue. My simple application works fine in
Windows environment, but
we get this error on Sun Solaris. We use Sun App Server 8.2 and 8.1
accordingly. I failed to reproduce the problem on Windows, so this can be
just Solaris issue. I am sure that I reach the struts.xml file, call method
provided there and 
return "success" string. The resulting _jsp.java is generated and compiled,
but I am getting a page listed at the end of this message.
Does anybody know if struts2 has log file generated and/or how can I trigger
its apprearance? Please, advise what do you think. The struts.xml opened by
vi shows ^M characters.


HTTP Status 404 - result 'null' not found



type Status report

message result 'null' not found

description The requested resource (result 'null' not found) is not
available.




Sun-Java-System/Application-Server
-- 
View this message in context: 
http://www.nabble.com/-S2--HTTP-Status-404---result-%27null%27-not-found-tf3774291.html#a10672044
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Action returns blank page

2007-05-16 Thread sr

I use a name space as well and it works just fine.
Here is the snippet:






/index.jsp
etc.

When I call the action:

localhost:8080/projectname/mynamespace/myIndex.action





mhargus wrote:
> 
> I'm trying to split my Struts 2 app up a bit using namespaces, but have
> run into a bit of trouble
> 
> I have an action mapping that works fine without a namespace, but when I
> move that same action to another package with a namespace, the action
> returns a blank page.  I'm not seeing any errors in the app server logs,
> just the blank page.
> 
> Beyond setting the namespace attribute on the package, is there anything I
> need to be doing?
> 
> Thanks in advance for the help.
> 
> Matt
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Action-returns-blank-page-tf3765523.html#a10645353
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unexpected Exception catched: Error setting expression

2007-05-16 Thread sr

Hello,
I use struts 2.0.6.

Below is a record from the log file when I call a page with parameter ac=XXX 
  
[#|2007-05-15
16:10:30,860|ERROR|com.opensymphony.xwork2.interceptor.ParametersInterceptor|setParameters:198|ParametersInterceptor
- [setParameters]: Unexpected Exception catched: Error setting expression
'ac' with value '[Ljava.lang.String;@777031'|#] 


Also, I expect to see that ac parameter was properly set up with this value,
the action class has variable 
private String ac; and public setter and getter are provided. 

This is not an issue in Windows environment (Sun App Server 8.2). 
Any ideas?
Thanks for your help.

-- 
View this message in context: 
http://www.nabble.com/Unexpected-Exception-catched%3A-Error-setting-expression-tf3765627.html#a10645209
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Deprecated Method

2004-06-04 Thread Jason L. West, Sr.
I am finishing up a series of WROX books that are focused on the
JSP/J2EE development with the last book of the series focusing on
developing Struts Applications.  Unfortunately the series was published
in early 2002 with focus on the Struts version 1.0.

One of the methods the book talks about has been deprecated with the
release of Struts version 1.1.  What I would like to know is new or
better method of doing the following:

public void reset(ActionMapping mapping, HttpServletRequest request) {
 ActionServlet servlet =  this.getServlet();
 MessageResources messageResources = servlet.getResources(); //
Deprecated

 storyTitle = 
messageResources.getMessage("javaedge.poststory.title.instructions");
 storyIntro =
messageResources.getMessage("javaedge.poststory.intro.instructions");
 storyBody  =
messageResources.getMessage("javaedge.poststory.body.instructions");
}

Any insight would be helpful.

Thanks
Jason L. West, Sr.
Internet Application Specialist, Sr.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]