Form wizard: how to manage state?

2009-11-11 Thread Alex Siman

Suppose a state of the form wizard is stored in session. And ID of current
wizard process is passed with every form submit. But if user unfinishes
process and leaves the form wizard, then wizard data will pollute the
session.

What is the best way to manage form wizard state?
-- 
View this message in context: 
http://old.nabble.com/Form-wizard%3A-how-to-manage-state--tp26309519p26309519.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Catching: Unable to instantiate Action

2009-11-11 Thread Roger
On Wednesday 11 November 2009 17:34:49 Oscar wrote:
> Maybe using a exception mapping for java.lang.ClassNotFoundException
> 

This sounds like the same problem that I'm having, Why would mapping 
ClssNotFoundException help? It's a sub-class of java.lang.Exception and 
mapping that should catch everything - yes?

Regards


> 2009/11/11 Gustavo Felisberto 
> 
> > I have a Project were we have in struts.xml:
> >
> >
> >
> > 
> >
> >/WEB-INF/plugins/{1}/{2}.jsp
> >
> > 
> >
> >
> >
> > 
> >
> >  
> >
> > 
> >
> >
> >
> > 
> >
> >  /WEB-INF/Error.jsp
> >
> > 
> >
> >
> >
> > If any exception is thrown in my actions the global maping catches it and
> > sends to correct JSP. If user enters some Url where the Class exists but
> > the
> > method does not the exception mapping works ok. Problem is if the Class
> > does
> > not exist. In that case I get a struts error page (if debug mod is on) or
> > a tomcat error page. Any way to catch this exception?
> >
> >
> >
> > --
> >
> > Gustavo Felisberto.
> >
> > WIT-Software, Lda
> >
> > Coimbra (Portugal), San Jose (California)
> >
> > Phone: +351239801030
> >
> > Web:   http://www.wit-software.com
> 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Catching: Unable to instantiate Action

2009-11-11 Thread Oscar
Maybe using a exception mapping for java.lang.ClassNotFoundException

2009/11/11 Gustavo Felisberto 

> I have a Project were we have in struts.xml:
>
>
>
> 
>
>/WEB-INF/plugins/{1}/{2}.jsp
>
> 
>
>
>
> 
>
>  
>
> 
>
>
>
> 
>
>  /WEB-INF/Error.jsp
>
> 
>
>
>
> If any exception is thrown in my actions the global maping catches it and
> sends to correct JSP. If user enters some Url where the Class exists but
> the
> method does not the exception mapping works ok. Problem is if the Class
> does
> not exist. In that case I get a struts error page (if debug mod is on) or a
> tomcat error page. Any way to catch this exception?
>
>
>
> --
>
> Gustavo Felisberto.
>
> WIT-Software, Lda
>
> Coimbra (Portugal), San Jose (California)
>
> Phone: +351239801030
>
> Web:   http://www.wit-software.com
>
>
>
>


-- 
Oscar


Catching: Unable to instantiate Action

2009-11-11 Thread Gustavo Felisberto
I have a Project were we have in struts.xml:

 



/WEB-INF/plugins/{1}/{2}.jsp



 



  



 



  /WEB-INF/Error.jsp 



 

If any exception is thrown in my actions the global maping catches it and
sends to correct JSP. If user enters some Url where the Class exists but the
method does not the exception mapping works ok. Problem is if the Class does
not exist. In that case I get a struts error page (if debug mod is on) or a
tomcat error page. Any way to catch this exception?

 

-- 

Gustavo Felisberto.

WIT-Software, Lda

Coimbra (Portugal), San Jose (California)

Phone: +351239801030

Web:   http://www.wit-software.com 

 



Re: displaytag - Nothing found to display.

2009-11-11 Thread Kris Reid

To add a little more information the the JSP looks like this





Cheers

Kris



Kris Reid wrote:
> 
> Hi
> 
> I am using Struts2 with Display tag to display a List
> Most of the time it works perfect but sometimes it displays the error
> "Nothing found to display"
> 
> This is not correct as I have the action class print out the List and it
> always is able to print the List.
> I can usually hit refresh and it works fine. Sometimes it takes several
> refreshes.
> 
> Has anyone run into this?
> Any ideas?
> 
> Cheers
> 
> Kris
> 
> 


-
http://www.kremsoft.com Kremsoft - Software Development 
-- 
View this message in context: 
http://old.nabble.com/displaytag---Nothing-found-to-display.-tp26301323p26302611.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



displaytag - Nothing found to display.

2009-11-11 Thread Kris Reid

Hi

I am using Struts2 with Display tag to display a List
Most of the time it works perfect but sometimes it displays the error
"Nothing found to display"

This is not correct as I have the action class print out the List and it
always is able to print the List.
I can usually hit refresh and it works fine. Sometimes it takes several
refreshes.

Has anyone run into this?
Any ideas?

Cheers

Kris


-
http://www.kremsoft.com Kremsoft - Software Development 
-- 
View this message in context: 
http://old.nabble.com/displaytag---Nothing-found-to-display.-tp26301323p26301323.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



DispatchAction and Log4j

2009-11-11 Thread NiJK

I'm trying to get Log4j working with my application.

It works fine in all my classes when I add the line
private static Log log = LogFactory.getLog(ClassName.class);

However, a DispatchAction already has a logger defined. When I add this line
to a DispatchAction I am receiving two lines of output instead of just the
one. If I remove the line, I get no output at all.

I am forwarding commons-logging to log4j using
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory

How do I configure the logger for a struts action?

Thanks.
-- 
View this message in context: 
http://old.nabble.com/DispatchAction-and-Log4j-tp26300684p26300684.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org