Re: [POLL] What do you use action forms for?

2005-05-11 Thread Jonathan Wright
#4 So (out of interest) how are you using action forms? Jonathan Wright - Original Message - From: Matt Raible [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, May 12, 2005 10:06 AM Subject: Re: [POLL] What do you use action forms for? #1 - so I

Re: [HELP] action mapping for welcome page?

2005-05-08 Thread Jonathan Wright
You can't have a link to an action as your welcome file, It must be a physical file. You could always have a JSP with a forward to your action as your welcome file. Jonathan Wright - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user

Re: The field name in jsp

2005-05-08 Thread Jonathan Wright
Define fields. Are you talking about form fields? Jonathan Wright - Original Message - From: Cliff Lam [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, May 09, 2005 4:17 PM Subject: The field name in jsp Hi, How can I know the fields in jsp

Re: The field name in jsp

2005-05-08 Thread Jonathan Wright
If the form is not dynamic, i.e. the form fields are not generated at runtime, why not just put a collection of Strings or an array or Strings into the scope of your choice and then iterate over it at the end of your page Jonathan Wright - Original Message - From: Cliff Lam [EMAIL

Re: The field name in jsp

2005-05-08 Thread Jonathan Wright
You could do something clever and use reflection to look at the method names in you action form objects I guess Jonathan Wright - Original Message - From: Cliff Lam [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, May 09, 2005 4:44 PM Subject: Re

JNDI

2004-11-11 Thread Jonathan Wright
to pass around I'm thinking of putting references to DataSources and the ServletContext into a JNDI context. Which JNDI SPI would you recommend for a simple object registry/store? What are the issues regarding the Referenceable interface? Thanks in advance. Jonathan Wright

Re: JNDI

2004-11-11 Thread Jonathan Wright
Craig, Thanks for the prompt reply. I have in the past set up DataSources in Tomcat's server-config.xml. However, due to the nature of our production environment I don't want to edit this file. It's relatively important that my web apps are completely self contained. Jonathan Wright

Re: getDataSource() in JSP

2004-10-07 Thread Jonathan Wright
Your DataSources are stored in the application context. Use your implicit pageContext reference to get a reference to the servlet / application context, then get your data source using (DataSource)ctx.getAttribute(dataSource); Jonathan Wright - Original Message - From: Shailender Jain

Problems with Selects

2004-05-13 Thread Jonathan Wright
I've narrowed the javax.servlet.jsp.tagext.BodyContent.clearBody() problem down to a select tag in my page. As soon as I put white space or any option tags inside the select's body the page fails when invoked. Anyone else encountered similar problems or am I'm omitting something glaringly