question: how to support both MVC and Struts?

2006-01-29 Thread Sun Shine
Hi, I'm rewriting an existing MVC project into Struts. I have to keep the existing servlet name e.g. 'fooServlet' available for 30 days. How can I support the new 'fooServlet.do' code and also support the old MVC code 'fooServlet'? (btw, I have to keep the fooServlet name for the rewrite). In Stru

Multiple buttons with Dispatch Action

2006-02-16 Thread Sun Shine
Hi, I have a page with multiple 'links'. One is an image button and another is a simple submit button. I was using a Dispatch action that maps to each one of these buttons, using javascript to set the methodToCall on each of the buttons. worked like a charm until... I was informed I cannot use j

Struts actionForm design

2005-11-28 Thread Sun Shine
Hi All, Sorry if a similar question has been posted already but here goes... What do you think is the best way to accomplish the following: You have several pages in a flow. On your first page, you allow a user to make a selection. On subsequent pages, you want to display what the user has select

help using validate inside ActionForm

2005-12-04 Thread Sun Shine
Hi all, In my application, I'm using one ActionForm Bean for several pages. How do I properly use validate method when user goes from one page to another? It's a collection of data, so, on page 1, I need to validate X fields, on page 2, validate Y fields, etc. Is there an easy way to tell what pag

Re: help using validate inside ActionForm

2005-12-04 Thread Sun Shine
ee which page has submitted to > the actionForm based > on the parameters input. or use hidden tags to do > the same thing. or use > the HttpServletRequest's getPathInfo(). > > dave > > On Sun, 2005-12-04 at 15:19 -0800, Sun Shine wrote: > > Hi all, > > In m