Re: Grid / Matrix Controls Made Easy (src included)

2001-06-10 Thread Tom Miller
Jeff I'm very interested in trying your code, but only the TLD was attached. Would you please repost? Thanks Tom Miller Jeff Trent wrote: Attached, you will find a couple of new tags I wrote to extend the HTML tag library that comes with struts that will allow you to write grid-style JSP

Re: template:put and get

2001-06-10 Thread suhas
I think template:put tag puts the contents (=/media/h_modify.gif)in some hashtable on the stack . and template:get tag retrieves that content from hashtable and includes in the pageContext which displays it . so I think u can put anything in the header.jsp Suhas - Original Message -

Re: template:put and get

2001-06-10 Thread Oleg V Alexeev
Hello Jim, Sunday, June 10, 2001, 9:16:18 AM, you wrote: JR I've got a situation where I want to include a header file with JR template:insert template=/share/inc_header.jsp JR template:put name=header_image content=/media/h_modify.gif direct=true/ JR /template:insert JR and then in the

Re: template:put and get

2001-06-10 Thread Jim Richards
I decided to do the second option, it works quite well. I don't like the idea of putting the while html:img/ tag into the template:put/ because that'd make the template file confusing for someone trying to maintain it (the image tag would never appear in the source for the included file, the

Re[2]: template:put and get

2001-06-10 Thread Oleg V Alexeev
Hello Jim, Sunday, June 10, 2001, 8:27:25 PM, you wrote: JR I decided to do the second option, it works quite well. I don't like the JR idea of putting the while html:img/ tag into the template:put/ because JR that'd make the template file confusing for someone trying to maintain it JR (the

Re: uploading file requires immediate serialization location?

2001-06-10 Thread Martin Cooper
Good question. What you are really asking is what does the html:file tag do?. Struts will generate an input type=file ... tag, where the value of the 'name' attribute is taken from the 'property' attribute of your html:file tag. It will also generate a 'value' attribute. Looking at the source

Missing configuration resource for path /WEB-INF/struts-config.xml

2001-06-10 Thread Jonathan Asbell
I am not sure why all of a sudden I am getting this Exception on startup = Call org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)javax.servlet.UnavailableException: Missing configuration

Re: uploading file requires immediate serialization location?

2001-06-10 Thread Jonathan Asbell
Martin, you seem to understand this subject well, so let me take a shot and tell me if I am correct: A multi-part request is a request, but a different one. That is, with a regular request things have been abstracted for us nicely with getParameter etc., but a request submitted as multipart is

RE: Scope of the form

2001-06-10 Thread Joyce Tang
Title: RE: Scope of the form Roland, Thank you for the answer. In the forsard.setRedirect(true), can I also forward the content of the request? When I was talking about the erroe, I was actually refering to the validation error in the form. In that the case the ActionController will

Mixing a multipart form with beans

2001-06-10 Thread Jonathan Asbell
If I have a5 page "wizard" (five consecutive form pages) and one bean, where the first three forms are regular requests and the fourth and fifth are each multipart forms, how do I use a bean with these pages? Do I: 1) fill bean with the form values from page 1,2 and 3 ? 2) then for the

XML Namspace Problem

2001-06-10 Thread Sunil P.S.
Hi group, I am trying to using the struts framework and trying to run one example. I am getting the following problem. org.xml.sax.SAXException: Namespace not supported by SAXParser at

Re: uploading file requires immediate serialization location?

2001-06-10 Thread Jonathan Asbell
So do you simultaneously write to a file while reading a String parameter when you process a form? What parts of the multipart request do we save in the bean, and in what scope? - Original Message - From: Martin Cooper [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Jonathan Asbell [EMAIL

Re: Mixing a multipart form with beans

2001-06-10 Thread Martin Cooper
If you want to use a session bean that accumulates the values across all the pages, you can do that. When pages 4 and 5 are submitted, the file upload will be written to disk as the form bean is being populated, which is before your form bean's validate() method is called. From that perspective,

Re: uploading file requires immediate serialization location?

2001-06-10 Thread Martin Cooper
String parameters are not written to a file. Only the bodies of file upload parts are written to disk, and each one to a separate file. The files are written as the input stream (i.e. the request) is processed. Let's say your form has two fields, a textarea called 'myText' and a file input

Re: uploading file requires immediate serialization location?

2001-06-10 Thread Jonathan Asbell
You wrote... The uploaded data is stored in a temporary file somewhere on disk.The bean is in either request or session scope. If the bean goes away, then so does the file that holds the uploaded data. I thought you said the file was written to disk? Thus the binary is not in the bean.