Re: Replacing the Form in an Action

2001-10-21 Thread Paul Dillon
In an action that uses the form bean you want to replace, you can do something like this: if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else request.getSession().setAttribute(mapping.getAttribute(), form); This assumes that the new form bean

Re: Problem populating form bean with multiple parameters of same name

2001-10-21 Thread Steven Valin
Renaud, I appreciate your response, but unfortunately when the JSP is regenerated and displayed, Struts places the toString() value of the String array into the html:text property=propertyName size=20/ tags, such as: [Ljava.lang.String;@262bf4 I have also tried a twist on this strategy,

Using html:form within templates

2001-10-21 Thread Zielke, Andreas
Hi, I've just started using struts and ran into the following problem: I've created a table layout for my pages; at the moment this is my template. All my real jsps now look like this: %@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' % template:insert template='/template.jsp'

RE: Using html:form within templates

2001-10-21 Thread du Clos, John
Andreas, If the taglib for the struts-html.tld is not defined, the html: tags cannot be rendered, thus remain within your end HTML document. Check to ensure you have the following defined within your JSPs: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % -Original Message-

Re: Dynamic XML extended defintions

2001-10-21 Thread Sandeep Takhar
here is a link to something that suggests it is possible -- may have to play around a bit. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16127.html - sandeep --- iT meDic [EMAIL PROTECTED] wrote: Hi, I was wondering if it would be possible to overwrite the values(2 or 3

Re: errors not clearing when hitting BACK

2001-10-21 Thread Sandeep Takhar
this seems quite strange to me, unless you are doing something with the cache? normally when I hit the back button, the page is not refreshed and just shows as it previously showed the last time I was at the page. According to what you are saying, you are getting the old ActionErrors()

Re: bean:message inside html:link javascript function?

2001-10-21 Thread Vincent Aumont
Mike Bridge wrote: Is it possible to embed a bean:message inside an html:link tag? No. Check http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12720.html --Vincent.

Re: how to refer to images from JSPs in WEB-INF?

2001-10-21 Thread Vincent Aumont
and that's bad because users shouldn't be able to get to WEB-INF directly should they? It's not that they shouldn't, it's that the servlet container won't directlty serve pages that are under web-inf. Ted recommended to put your jsp under web-inf only if they are diplayed through an Action.

RE: Questions About Struts Validator

2001-10-21 Thread David Winterfeldt
That isn't possible with the default mask validator. I've recently added a min and max length validation to nightly builds though. Or you could either write your own mask validation method that accepts multiple inputs or you can define the mask validator again under a different name like mask2.

Re: Dynamic XML extended defintions

2001-10-21 Thread iT meDic
Thank you, should have got the nightly build. From: Sandeep Takhar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Dynamic XML extended defintions Date: Sun, 21 Oct 2001 08:36:16 -0700 (PDT) here is a link to something that suggests it is possible -- may have

RE: Problem populating form bean with multiple parameters of same name

2001-10-21 Thread Tricia Ong Cheah Yen
Steven, here's my code snippets where I had defined my title field property as an array of strings so that I can have a variable number of text input fields that all have the same name. Getting the content displayed is not a problem but I have a problem in updating information

Upload file slow

2001-10-21 Thread Michelle Popovits
I am using the upload feature of struts (struts-upload.war) and I find it uploads very slowly. Why is this so slow? Is there a way to improve this? Thanks, Michelle _ Get your FREE download of MSN Explorer at

Installing Struts 1.0 on Websphere 3.5.4

2001-10-21 Thread Nicolas Parisé
I want to install Struts on WAS 3.5.4, should I do the steps required for 3.5.2 explained on the Struts site? Thank you Nicolas Parise

package problem

2001-10-21 Thread John LYC
Hi AllHope i can get help here...this could be a struts or java or even tomcat question.. i'm not sureI'm using apache jakarta Structs with my EJB..I have trouble forward to some of my Action classes.tomcat log down a classNotFoundException for these classesand i finally found the