Re: Struts best pracice

2003-02-05 Thread Cory Newey
Naggi: We're not using EJBs in our project, but we are writing data to a database. Here is how we are doing the conversion from form bean to data bean (value bean in your case). public abstract class BaseBean { public abstract String getQueryString(); public abstract PreparedStatement getU

Re: Form Bean could not be accessed from my custom Tag

2003-02-05 Thread Cory Newey
Just change the getAttribute line so it reads like this: ActionForm form = (ActionForm)pageContext.getAttribute("webutilCollapse", pageContext.REQUEST_SCOPE); or you could change it to: ActionForm form = (ActionForm)r

Re: tag multiple parameter gotcha!

2003-02-04 Thread Cory Newey
I don't know if I'm the right person to respond to this since I've only been using Struts a short while, but why can't you access the formbean properties in a scriptlet. The formbean is stored in the pageContext so why can't you do this: <% MyFormBean form = pageContext.getAttribute("name or f

Re: one desing question, Revisited

2003-01-31 Thread Cory Newey
to factorize functions in sevral Classes of different types you only need to delegate. But maybe I missunderstood what Ashish whant. Malik. Friday, January 31, 2003 4:55 PM , Cory Newey <[EMAIL PROTECTED]> a écrit : > Yeah, if you read his entire post, he says that he knows that multiple >

RE: one desing question, Revisited

2003-01-31 Thread Cory Newey
Yeah, if you read his entire post, he says that he knows that multiple inheritance isn't allowed in Java. It looks to me like you'll have to make CommonFunctions an interface. If the methods in CommonFunctions actually are identical for both MyAction and MyDispatchAction, you could avoid having d

RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Cory Newey
I've heard of this approach to protecting access to JSP pages but I've never been able to get it to work. How, exactly, do you route to a JSP in the /WEB-INF directory? Could you maybe provide a little of the struts-config.xml file that would do this or the code in the Action class that does this

Re: nested tag error

2002-12-13 Thread Cory Newey
Your problem is that your opening tag is closed (see the '/' at the end?). Change the tag to: and everything should work. >>> [EMAIL PROTECTED] 12/13/02 08:54AM >>> Here's a snippet of JSP which is not working: It is giving a compile error "org.apache.jasper.JasperException: O