FORWARDING FROM ACTION TO ACTION AND form bean not getting prepopulated

2002-09-28 Thread deepank
I have the following struts-config file, TWO ACTIONS WITH SAME FORM BEAN actionpath=/reviewTeam type=com.sasken.erp.sdlc.action.ReviewTeamLoadAction name=reviewTeamForm scope=request

RE: Please help decide a religious discussion

2002-09-28 Thread Robert Taylor
+1 on initializing static data at application start up time and caching it. In addition we found that putting the Collection directly into some scope with a well defined Constant.KEY_XXX was much better in the long run as opposed to trying to put in the form bean. This way the control on

Re: logic:iterate with nested html:img

2002-09-28 Thread Eddie Bush
Ok, you're stuck on older stuff. Yeah, unfortunately the JSTL stuff requires a JSP 1.2 compliant container :-( Use the RTE :-/ ... and upgrade when you can :-) html:img src=%= imgBean.src % border=/ That help? Sorry :-( hate to see people stuck on older containers ... Vinh Tran wrote: I

Pre-populating ActionForms

2002-09-28 Thread Mohan Radhakrishnan
Hi, Pre-population of ActionForms seems to be tricky. How do you populate ActionForms and then take the user selection from them? Let's say I want to show some HTML options. The user selects some values. The selected values should go back into the ActionForm. Is this so difficult that I have

Re: Pre-populating ActionForms

2002-09-28 Thread David Graff
Override the 'reset' method of the ActionForm descendant, set your initial values in there, then (most likely) when you want to reference the page, reference the .do that would forward you out to that page. Hope that helps. Mohan Radhakrishnan [EMAIL PROTECTED] wrote in message

Re: tabsLayout.jsp ServletException??

2002-09-28 Thread Curtney Jacobs
Hi, thank you for replying. As you suggested, I tried to see if the tiles-doc.war files work for my configuation. I am still getting the same error with an additional error that org.apache.struts.webapp.tiles.portal.UserMenuAction is not found. I have tried browsing through the API for this

Use struts pool with Castor

2002-09-28 Thread thierry templier
Hello, I try to use Castor with the struts framework. I use a pool to connect to an oracle database. I don't know how to connect Castor on this pool via the xml config file. Is it possible to use this pool with Castor? Is there another way to use struts with castor? Thanks in advance for

Update array from JSP using Struts

2002-09-28 Thread Rea, Ron
According to one of Ted Husteds tips, in order to present a screen with multiple records and allow the user to edit all records at once, then hit submit, you have to break the record into arrays for each field and load the array. For example, Employee table will have row 1 name go to name[0],

RE: OFF topic: BeanUtils

2002-09-28 Thread James Higginbotham
Read the docs on the Jakarta commons logging library, which they use. You can disable it by using the package prefix up to the level you want to disable logging (org, org.apache, etc). James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday,

RE: logic:iterate with nested html:img

2002-09-28 Thread Vinh Tran
Eddie: I'm finally up and running on Tomcat 4.0 but now I'm pulling my hair out trying to get EL to work. Is it possible to use Struts-EL in conjunction with Struts tags? For example: bean:define id=beanid name=MyBean type=com.custom.bean.MyBean scope=session ignore=true/ ...later in the page

Re: taglib url problem

2002-09-28 Thread Billy Ng
Actually, I consider it to be added simplicity. ;-) It simplifies my app because I know that the container will prevent someone from accessing my JSP pages directly, and there is *nothing* else I have to do to ensure this. It always my concern on people trying to access anything after /. I

Proper exception handling of JDBC code? Need to call connection.rollback()?

2002-09-28 Thread Bomb Diggy
One of the many points I raised earlier was how to properly close a database connection, and how that might change depending on whether you were using connection pooling and/or a DataSource. The example JDBC code cited was that in the Struts 1.0.2 Javadoc:

Using data-source with ActionForm

2002-09-28 Thread V. Cekvenich
Vincent, in response to: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg42254.html (others asked related questions on JDBC / connection pool, closing, etc.) You are right, you do not do it in a getter in a setter. Mostly you have a bean. And even the bean delegates to DAO. DAO

Set up default values on jsp page

2002-09-28 Thread Dan Tran
Hi I am new user of Struts (love it), I would like some help to get started (even I have read most of Struts literatures) I would like my start page to invoke a jsp page which has a form, and a form should have some default value. Can someone give me some hints (like what object should I

Re: logic:iterate with nested html:img

2002-09-28 Thread Eddie Bush
Oh - cool! Glad you could upgrade! All you should have to do is drop the JAR you built into your app's lib directory, copy the TLDs over into wherever you keep those, add references to the taglibs in your web.xml, declare the taglib in your page, and use them just like you would the Struts