Re: Result Annotations

2008-08-29 Thread rakeshxp
Awesome. This worked! Thanks! newton.dave wrote: > > --- On Fri, 8/29/08, rakeshxp wrote: >> I am using Result annotations in the following manner (static way ) >> @Results({ >> @Result(name = "index", value = >> "/jsp/en_US/help.jsp") >> }) >> >> How can I pass a dynamic value to the res

Re: Result Annotations

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, mujoko mujoko wrote: > Annotation Result is a part of of configuration (struts > config) that read on start up and load on startup, I dont > think you can use dinamic value on annotation. XML configuration files are also loaded on startup. The basic result configuration page

Re: Result Annotations

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, rakeshxp wrote: > I am using Result annotations in the following manner (static way ) > @Results({ > @Result(name = "index", value = > "/jsp/en_US/help.jsp") > }) > > How can I pass a dynamic value to the result annotation, so > that I can achieve something like this > >

Re: Result Annotations

2008-08-29 Thread mujoko mujoko
Annotation Result is a part of of configuration (struts config) that read on start up and load on startup, I dont think you can use dinamic value on annotation. Mujoko On 8/29/08, rakeshxp <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am using Result annotations in the following manner ( static way

Re: Result Annotations and parameters

2008-01-03 Thread jogep
I try both, but it has no affect. Now i try it with an current 2.1.1 Snapshot, but the error still exists. @Result(value = "result.action", type = ServletActionRedirectResult.class, params={"bid","${bid}"}) DEBUG (org.apache.struts2.interceptor.FileUploadInterceptor:58) - Überspringe //save jav

Re: Result Annotations and parameters

2007-12-11 Thread jogep
no, it does no effect. my error page displays following error: Message: null javax.servlet.ServletException at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:490) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:458) at org.apache.catalina.

Re: Result Annotations and parameters

2007-12-10 Thread Dave Newton
Just out of curiosity, does it work if you make the ID getter conformant to the JavaBean spec, getId() (with appropriate corrections to your annotations)? d. --- Johannes Geppert <[EMAIL PROTECTED]> wrote: > Hello Ted, > > thank you for reply. > > > Is the property actually "ID", as in "String

Re: Result Annotations and parameters

2007-12-10 Thread Johannes Geppert
Hello Ted, thank you for reply. > Is the property actually "ID", as in "String getID()" ? > > Or is it getId() ? It's getID(), with XML-Configuration it works perfectly. So there can not be an error with misspelling. > In the JPA MailReader code (see the sandbox), @Results like this one > are

Re: Result Annotations and parameters

2007-12-09 Thread Ted Husted
Is the property actually "ID", as in "String getID()" ? Or is it getId() ? In the JPA MailReader code (see the sandbox), @Results like this one are working: @Result(name = Index.SUCCESS, value = Index.INDEX, type =ServletActionRedirectResult.class, params = {Index.USER, Index.USER_USERNAME }) w

Re: Result Annotations and parameters

2007-12-09 Thread Johannes Geppert
Does no one have a resolution for my problem? With XML-Configuration it works perfectly. But I like the Configuration with Annotations. I try it with Struts 2.1.0 and the codebehind plugin. Thank You Johannes > > Hello, > > i try to use the Result Annotations in my new Project, this works fin