form-bean and persistent data

2005-03-07 Thread Jonathan M Z
suppose I am using a form-bean to populate an html form, I need to retrieve the values of this form-bean from persistent storage. Do I do this from the Action that eventually forwards to this jsp page? Should I create the form-bean from persistent storage in action.execute(), then forwards the vi

tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-07 Thread Jonathan M Z
dear folks, I know that I can insert an attribute into a jsp page by using tiles:insert and tiles put as the following: but what if I want to get the value of this attribute from one of its sub jsp pages(eg. nav.jsp) I have tried using to import all the tiles attrib

Re: passing attributes to tiles

2005-03-03 Thread Jonathan M Z
t it is not a good practice. It is > better to use an Action > that, eventually, puts some beans in the request > scope and then you access > those beans in the JSP pages. > Ciao > Antonio Petrelli > > Jonathan M Z wrote: > > >I am using tiles as the following

inserting and getting attributes

2005-03-02 Thread Jonathan M Z
I have the following tiles definition file in a.jsp I am trying to put title in: in nav.jsp I have when a.jsp is rendered I get: [ServletException in:/co

Re: tiles definition overload

2005-03-02 Thread Jonathan M Z
It will be 5. You can overwrite the value of the var in your jsp page. if you don't specify var1 in your jsp, it defaults to 10 --- draegoon Z <[EMAIL PROTECTED]> wrote: > if I do this: > > > > path="/tiles/SOME_TILE.jsp"> > > > > > > and then: > > (or is

passing attributes to tiles

2005-03-02 Thread Jonathan M Z
I am using tiles as the following: However I wish to pass parameters to nav.jsp. how do I do this? thanks __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com

Re: problem with logic:iterate

2005-03-02 Thread Jonathan M Z
pageContext.setAttribute("bar",projects,PageContext.PAGE_SCOPE); it's an attribute in the page scope, not session, does it have to be in a session? I am only using it for the current page... --- Eric Lemle <[EMAIL PROTECTED]> wrote: > Is bar in the session? > > >>> [EMAIL PROTECTED] 3/2/2005 12

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Jonathan M Z
I do not think it's possible... I hope someone can prove me wrong. --- Daniel PC Leung <[EMAIL PROTECTED]> wrote: > I have a standand Tiles layout. > ie. it has header, Left, Body and footer. > In one of the body, I have this. > > > > key="securityMaint.userAccountMaint"/> >

Re: problem with logic:iterate

2005-03-02 Thread Jonathan M Z
thanks I am running into a related problem with radio buttons: when rendered it says: [ServletException in:/calc/ProjectManagerMain.jsp] Cannot find bean under name org.apache.struts.taglib.html.BEAN' What's wrong? thanks --- Eric Lemle <[EMAIL PROTECTED]>

Re: Resolved problem with logic:iterate

2005-03-02 Thread Jonathan M Z
Ok it's a trivial mistake, didn't actually put anything in the Vector. --- Jonathan M Z <[EMAIL PROTECTED]> wrote: > hi folks, > I am trying to iterate a through a Vector of object > of > class Project where project has getter and setter > getDescription(),setDesc

problem with logic:iterate

2005-03-02 Thread Jonathan M Z
hi folks, I am trying to iterate a through a Vector of object of class Project where project has getter and setter getDescription(),setDescription(),etc In the jsp page I first created bean of name bar. Vector v=new Vector(); Project p1=new Project(); p1.setName("project1"); p1.setDescription("des"

RE: crazy struts tiles problem

2005-03-01 Thread Jonathan M Z
Allen, thanks! I figured out the cause of my problem, it was actually tricky(or trivial). I forgot to put <%@ taglib uri="/WEB-INF/tiles..."%> on top of the page and when I use , struts didn't complain, it just treat them as regular html tags so they don't show up on the page. I wonder why the j

crazy struts tiles problem

2005-03-01 Thread Jonathan M Z
I am using struts tiles here is my struts-config: Here is my tiles-defs.xml Here is the essence in my layout file: Here is the jsp that uses the tiles <%@ taglib uri=

struts tiles definition in jsp

2005-03-01 Thread Jonathan M Z
I am a bit baffled by creating tiles definitions in jsp(not XML) here is the jsp that tries to use the tiles <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <[EMAIL PROTECTED] file="../defs/common-defs.jsp"%> Here is common-defs.jsp <%@ taglib uri="/WEB-INF/struts-tiles.tld

weird problem generating javascript validation from xml

2005-02-16 Thread Jonathan M Z
hi folks, I am having some problem with javascript validation code generation. I have the following code in my jsp(only showing the relevant ones): I have the following in validation.xml

Re: how to receive emails related to my questions only?

2005-02-16 Thread Jonathan M Z
there's no server side configuration from the mailing list that i can tweak? thanks --- Soaring Eagle <[EMAIL PROTECTED]> wrote: > try using gmail... organizes your email pretty well. > > > On Wed, 16 Feb 2005 10:06:02 -0800 (PST), Jonathan M > Z > <[EMAIL PROTE

how to receive emails related to my questions only?

2005-02-16 Thread Jonathan M Z
hi folks, I am new to the list, I did some search on my question but no luck. Is there a way that I only receive emails related to my post? thank you __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yah

javascript validation in struts

2005-02-15 Thread Jonathan M Z
Hi folks, I am trying to understand struts validation from some example code, it has something like this: validateSigninForm is a javascript validation. I looked up in validation.xml and validator-rules, neither this javascript function nor anything contain the word "signin" is to be found, so

Re: form bean exception -RESOLVED

2005-02-15 Thread Jonathan M Z
I made a mistake in the Action mapping. thank you all --- Saul Qunming Yuan <[EMAIL PROTECTED]> wrote: > Do you have the action mapping defined for logon.do > in your struts-config > file? what's it like? > > > BTW, just a friendly reminder, you probably don't > want to use that email > id in

form bean exception

2005-02-15 Thread Jonathan M Z
hi folks, I have a simple form in struts: I get an exception when the jsp page is rendered [Servlet Error]-[/Login.jsp]: javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null what's wrong? thanks __ Do you Yahoo!? The a