Problem with html:form enctype=multipart/form-data/

2001-08-06 Thread Bar³omiej Paw³owski
Hi again I have created multipart form html:form action=/upload enctype=multipart/form-data html:file property=theFile styleClass=form2/ html:submit/ /html:form When I submit it, I receive following exception: java.lang.ArrayIndexOutOfBoundsException at

URL links ActionServlet

2001-08-06 Thread Rodney Smith
Hallo, Firstly I would like to thank Ted Husted for all his help with me getting a better understanding of Struts, as I am a new to this area a lot of the information that I have found is great but not detailed enough to understand some of the process as what Ted has mentioned is perfect, thanks

A small Favour

2001-08-06 Thread Rohit Dewangan
Hi All, Could anybody help me to unsubscribe from your mailing list. I have tried atleast 3-4 times from http://jakarta.apache.org/struts but am still getting tons of mail. Thanks in advance. Regards Rohit -Original Message- From: Rodney Smith [mailto:[EMAIL PROTECTED]] Sent:

Re: A small Favour

2001-08-06 Thread Pham Thanh Quan
In particular, in order to remove yourself from struts mailing list, send an empty email to the following address [EMAIL PROTECTED] - Original Message - From: Rohit Dewangan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 06, 2001 3:34 PM Subject: A small Favour Hi All,

RE: A small Favour

2001-08-06 Thread Rohit Dewangan
Thanks -Original Message- From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Re: A small Favour In particular, in order to remove yourself from struts mailing list, send an empty email to the following

Staging Pages/Action form question.

2001-08-06 Thread Prior, Simon
Hi Guys, I have the following scenarios and to design for and wanted to know how you approached the following problems: 1. I have a page that will have dynamically generated menus populated with entries from a database. My first question is how do you stage the pages? - can you use the action

Please help ...canonical path error

2001-08-06 Thread Dudley [EMAIL PROTECTED]
can anyone please help explain why i get this error? (maximize window to see error) java.io.IOException: The filename, directory name, or volume label syntax is incorrectat java.io.File.getCanonicalPath(File.java:437) at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java:184)

html:select and html:options

2001-08-06 Thread Stefan Faist
Hello all, I these two lists: td bean:define name=erfassungForm id=names property=allProjektNamen / html:select property=projektname html:options collection=names property=value labelProperty=label / /html:select /td td bean:define

RE: Building struts UIs

2001-08-06 Thread Will Spies/Towers Perrin
Kurt, Thanks for the info. I'll look ito DbForm. Will

Re: Building struts UIs

2001-08-06 Thread Will Spies/Towers Perrin
Jean, Thanks for the info. I'll take a look! Will

RE: struts training

2001-08-06 Thread devon . bowen
Sign me up for the course! Where might I read about these points: ?? - preloading form - reset() method gotcha - special issues - cleaning up context variables - Back button sorrow - indexed properties and iterators If I

RE: Re: struts training

2001-08-06 Thread devon . bowen
If you wanted to slim this down, and your goal is just to bring them up to speed on Struts, I'd hazard to say that there's much that a Struts developer doesn't ~really~ need to know about Web application development. Not sure I agree with this. My experience with Struts indicates that it is

Action Errors

2001-08-06 Thread Aaron Ravenberg
Hello all, I did not find an example of the use of this ActionError method. If someone could point me to a good example or reply with one I would appreciate it. I just wasn't clear how the Object part of the method works. What object(s) can you use? How are they structured so they can

Validation a form

2001-08-06 Thread DUPRAT Alexandre
hi, How can i validate a form? I tried : public ActionErrors validate(ActionMapping mapping, HttpServletRequest req) { ActionErrors errors= new ActionErrors(); if(! getSqlQuery().startsWith(select)){ ActionError error = new ActionError(error.requete);

RE: NoSuchMethodError with Weblogic 6.0 sp2

2001-08-06 Thread Daniel Steinberg
WebLogic includes a JAXP 1.0 implementation in its weblogic.jar file. The startup script puts weblogic.jar in the CLASSPATH ahead of anything in your WEB-INF/lib directory. So you will need to modify the startup script to put a JAXP 1.1 implementation ahead of weblogic.jar. -Original

logic:iterate / html:option / scriptlet problem

2001-08-06 Thread Tobias . Himstedt
Hi, the following fragment does not work: html:form action=addMedication.action td html:text property=doseAsInteger size=3/ /td td html:select property=dayCategory logic:iterate

Antwort: Validation a form

2001-08-06 Thread Tobias . Himstedt
Did you enable validate=true in struts-config.xml for that action? Regards -- Tobias DUPRAT Alexandre [EMAIL PROTECTED] 06.08.2001 15:28 Bitte antworten an struts-user An:'[EMAIL PROTECTED]' [EMAIL PROTECTED] Kopie: Thema:Validation a form hi, How can i

RE: Antwort: Validation a form

2001-08-06 Thread DUPRAT Alexandre
i have this int parameter in web.xml for ActionServlet : init-param param-namevalidate/param-name param-valuetrue/param-value /init-param it seem to work cause i can debug the method in visula age for java. I enter the method but i've an error 500 as response from my web server.

Antwort: RE: Antwort: Validation a form

2001-08-06 Thread Tobias . Himstedt
Have a look in the WEB-INF/struts-config.xml. Look for your action element and in particluar for the validate attribute. Regr action path=/editRegistration type=org.apache.struts.webapp.example.EditRegistrationAction name=registrationForm scope=request

Funny request parameters

2001-08-06 Thread Hardee, Tony
We just upgraded our versions of WebLogic and Struts. WebLogic : 6.0 sp 2 == 6.1. Struts: 1.0 nightly build Feb ? 2001 == 1.0 Most things worked without a hitch, however we are experiencing a problem that I am having difficulty resolving. We have the following entries

Indexed tags problem

2001-08-06 Thread Andrew Paul Swift
I am using the indexed tags (cheers, made my life a lot easier!) but I am having a problem. When submitting a form the data in the form is not updated. I have got updates working elsewhere, but I can't get this working. Is it because I use a nested property in the iterate tag i.e.

RE: Re: struts training

2001-08-06 Thread Craig R. McClanahan
I agree with Devon's concerns about this. Struts assumes a pretty robust understanding of the general principles of servlet and JSP programming (including the intricacies of a web application archive file). The good news for developers is that all of this level of knowledge is transferrable,

Re: A small Favour

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, Rohit Dewangan wrote: Hi All, Could anybody help me to unsubscribe from your mailing list. I have tried atleast 3-4 times from http://jakarta.apache.org/struts but am still getting tons of mail. I'd like to help ... but there's a slight problem. There is no

Re: URL links ActionServlet

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, Rodney Smith wrote: Hallo, Firstly I would like to thank Ted Husted for all his help with me getting a better understanding of Struts, as I am a new to this area a lot of the information that I have found is great but not detailed enough to understand some of the

Re: html:select and html:options

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, Stefan Faist wrote: Hello all, I these two lists: td bean:define name=erfassungForm id=names property=allProjektNamen / html:select property=projektname html:options collection=names property=value labelProperty=label / /html:select

Re: Validation a form

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, DUPRAT Alexandre wrote: hi, How can i validate a form? I tried : public ActionErrors validate(ActionMapping mapping, HttpServletRequest req) { ActionErrors errors= new ActionErrors(); if(! getSqlQuery().startsWith(select)){ ActionError

servlet.getServletContext() always null...why?

2001-08-06 Thread Jon Crater
i have a base action class in which i declare a variable of type ServletContext: public abstract class BaseAction extends Action { protected ServletContext ctx = servlet.getServletContext(); ... } yet i always get a NullPointerException on this line when struts tries to instantiate a

Question: Struts on Weblogic - Urgent please

2001-08-06 Thread Upadhye, Sujit (GEAE, Foreign National)
Hi, I am using Struts on Weblogic 5.1 with SP9. Initially I developed my app on Tomcat. Here, I am forwarding control to another action object. So, in my config.xml, I have: forward name=next path=/detcontrol.do redirect=true/ I start my app on Tomcat through URL:

Re: Unit testing Actions

2001-08-06 Thread Paul Holser
i've had some success unit testing struts actions using cactus. here's what i did: 0) replicate your approot in the test webapp, including struts-config.xml 1) in the web.xml (or webapp file for websphere test environment), add struts initialization parameters to the cactus ServletRedirector

MVC via DOM

2001-08-06 Thread Steven Elliott
I have learned alot about MVC (and M2C) from this list and its authors and in general agree that the Struts model is a *better* way to do things (in lieu of the JSP and/or Servlet and Bean design). On the otherhand I have been uncomfortable adopting the BEAN|JSP|ACTION paradigm because of JSP

When session invalidates, template doesn't clear out....

2001-08-06 Thread Becky Moyer
Hi all... I have a webapp that uses Struts templates. I have a place in my template where I plug in the current user's username and basic info. I can sucessfully do a session.invalidate(), but then when I link back to my loginpage, their info still shows up on the template. How do they

Using STRUTS with Servlet Exec

2001-08-06 Thread Vince Davis
I just downloaded STRUTS and am hoping to use it with the ServletExec JSP/Servlet server. I noticed in the install file that there is no reference to Servlet Exec, and am wondering if it's compatible with STRUTS and if there are any additional steps I need to take in setting it up (besides

RE: Form processing question

2001-08-06 Thread Marcel Maré
You do know there's a typo in your example, don't you? You're trying to pair a logic:notPresent with a /logic:present (note the missing not). Maybe it's only in your email, but it has bitten me IRL. Marcel -Oorspronkelijk bericht- Van: Greg Maletic [mailto:[EMAIL PROTECTED]]

Re: servlet.getServletContext() always null...why?

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, Jon Crater wrote: i have a base action class in which i declare a variable of type ServletContext: public abstract class BaseAction extends Action { protected ServletContext ctx = servlet.getServletContext(); ... } yet i always get a NullPointerException

Re: MVC via DOM

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, Steven Elliott wrote: I have learned alot about MVC (and M2C) from this list and its authors and in general agree that the Struts model is a *better* way to do things (in lieu of the JSP and/or Servlet and Bean design). On the otherhand I have been uncomfortable

RE: Form processing question

2001-08-06 Thread Greg Maletic
Thanks; it's a typo in my e-mail. The solution that Craig posted earlier--store the form name in a variable and evaluate it with %= % tags--works great. -Original Message- From: Marcel Maré [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL

Re: TILES template with STRUTS problem

2001-08-06 Thread Cedric Dumoulin
Which xml parser do you use ? Tiles, like Struts1.1-dev use commons.Digester package, which requires Jaxp1.1 to run. Cedric BinhMinh Nguyen wrote: Hi, When copied the titles-doc.WAR into Tomcat 's webapps and run. The following error-message display. Can you spot out the error

Re: Problem using TILES template with STRUTS

2001-08-06 Thread Cedric Dumoulin
Tiles tutorial is now merged in tiles-doc, under tiles-doc/tutorial. Also, Tiles require a Jaxp1.1 compliant XML parser. Cedric BinhMinh Nguyen wrote: Hi, I am a big fan of your Components, it woks very pretty. But since you rename Component to Tiles things are not pretty any

RE: Using STRUTS with Servlet Exec

2001-08-06 Thread Robert Taylor
Hello Vince, I'm currently using Struts 1.0 with ServletExec 4.0 ISAPI for Microsoft IIS on Win2000 and have not had any problems. It was pretty simple. If you use .war file, you can do as you mentioned already and put it in the [SEversion]/webapps/default directory. When SE starts up, then it

IF statement in struts-config.xml

2001-08-06 Thread Yi-Xiong Zhou
Hi, I think it will be very useful if struts can have IF statement in struts-config.xml to control the foward/ action. I am thinking of building a purely configurable system using struts framework. A system whose actions can be reassembled and chained to make new functionalities. IF

RE: IF statement in struts-config.xml

2001-08-06 Thread Assenza, Chris
Hmmm, I'm not sure I see the value in this (at least actually IN the XML file) - could you explain in more detail what you intend to do? Chris -Original Message- From: Yi-Xiong Zhou [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 5:02 PM To: '[EMAIL PROTECTED]' Subject: IF

RE: processPopulate() call configurable?

2001-08-06 Thread Marcel Mare
Please see comments below If you don't want processPopulate() to be called, just omit the form bean from your action element. The underlying problem is that if I prefill my form, all the values are overwritten by the Request objects current parameter values. I this something that

Re: IF statement in struts-config.xml

2001-08-06 Thread Bill Clinton
Hello, The mappings that are set up in the struts-config.xml can be modified programmatically. So, if you want to reconfigure a forward, you would not need an if statement in the struts config, but I believe you can do it in your program that references the forward. For example:

how to create a submit button with my own image

2001-08-06 Thread Long Zhao
for a struts form, html:form action=/html:form, how to create a submit button with my own image? I have tried to use javascript to do onclick=javascript:window.document.form.submit(), but it did not work, because the struts form do not have a name for the form. Thanks Long

Re: Question: Struts on Weblogic - Urgent please

2001-08-06 Thread Pham Thanh Quan
Try putting it into the file web.xml in Web-inf directory Quan - Original Message - From: Upadhye, Sujit (GEAE, Foreign National) [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 12:40 AM Subject: Question: Struts on

Session attributes thread safe

2001-08-06 Thread Michael Mok
Hi all This may be an off topic discussion. Craig mentioned about the need to make session attributes thread safe. What are the factors to look out for in order to make session attributes thread safe? Thanks in advance Regards Michael Mok -Original Message- From: Craig R.

Re: Session attributes thread safe

2001-08-06 Thread Craig R. McClanahan
On Tue, 7 Aug 2001, Michael Mok wrote: Hi all This may be an off topic discussion. Craig mentioned about the need to make session attributes thread safe. Thought that might catch someone's attention ... :-) What are the factors to look out for in order to make session attributes

using a Collection from nested attributes for option tag

2001-08-06 Thread Sorenson, Alexander
I have previously been populating my options form elements from ArrayLists I have stored in the application scope. I am now implementing a more robust caching mechanism for this information and am trying to find the best way to access these collections now. For example to get to one of my

New User For Struts

2001-08-06 Thread Prashant Deshmukh
_ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Re: how to create a submit button with my own image

2001-08-06 Thread Pham Thanh Quan
The name of the form is in the file struts-config.xml. action path=... ... name=this_is_the_form_name_you_want /action Quan - Original Message - From: Long Zhao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 5:21 AM Subject: how to create a submit button with

Re: how to create a submit button with my own image

2001-08-06 Thread Pham Thanh Quan
You may use this html:form ... input type=image src=your_image /html:form Quan - Original Message - From: Long Zhao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 5:21 AM Subject: how to create a submit button with my own image for a struts form, html:form