RE: Confused about Uploading

2001-06-04 Thread Jon.Ridgway
Hi Peter, When you start the upload process with web container will store the file in a temp location. This will vary depending on your setup. The important thing is that you can access as shown below and then write to a location of your choosing. This code snippet is an edited version of that

Re: Auto Form/Action Class Code Generator?

2001-06-04 Thread Ajit Joglekar
Any ideas about how to do this? Tom, JD are you already working on this? I thought about using JTidy to generate xhtml from the original html and then to use JDom to access / update the form elements and attributes. Regards, Ajit Joglekar. - Original Message - From: Tom Janofsky

Re: how do i forward entity bean reference from Action class to forwarded jsp.

2001-06-04 Thread Konstantin Priblouda
--- ameer [EMAIL PROTECTED] wrote: Im stuck up with an issue here. i am refering to an entity in action class. based on input data .. if a record for the input exists i need to forward the entity remote reference that i have got to a page called display.jsp or if no record exists , i

No context loader error

2001-06-04 Thread Jan Fredrik Øveraasen
Hi When I try to deploy my struts-application to a SilverStream app. server I get the following error message: No context class loader: java.util.collection Thanks in advace Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313,

RE: *TED* Re: I am finding that templates are SLOW

2001-06-04 Thread Deadman, Hal
Weblogic sometimes has trouble parsing relative paths. Are you using Weblogic 6.0? It might be fixed in SP2. I do this %@ include file=/include/toppage.inc % and it works. Try /inc/imports.jsp. -Original Message- From: Jonathan Asbell [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01,

Wizard form approach

2001-06-04 Thread Todd Story
Is anyone currently using multiple pages (same ActionForm) in a wizard-esque manner? If so, how are you doing validation without knowing the details of which elements are displayed on which page? In other words I'd like some fields to be required without having the user to go back 3 pages.

Re: *TED* Re: I am finding that templates are SLOW

2001-06-04 Thread Jonathan
Yes Hal, it is WL6. It was a problem with the paths. We should post this somewhere so others can know. - Original Message - From: Deadman, Hal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 04, 2001 9:46 AM Subject: RE: *TED* Re: I am finding that templates are SLOW

Generating Dynamic Input Tables.`

2001-06-04 Thread Thomas Hsieh
I hope this isn't a repeat, but I need a bit of help here. I have a collection of simple value beans that I'd like to allow the user to edit. I don't know how large the collection is, but the simple bean merely contains a Label and Value. I'm trying to do something like the jsp code below. If

org.apache.struts.example.ApplicationMapping

2001-06-04 Thread Hampton, Paul
Hi all - I have a problem with initalising the main struts controller servlet - doing so produces the exception given below. I'm confused as to why struts will be trying to access org.apache.struts.example.ApplicationMapping - I do not have this mapping in my struts-config.xml file. Any ideas as

RE: org.apache.struts.example.ApplicationMapping

2001-06-04 Thread Hampton, Paul
ActionServlet depends on ApplicationMapping. It's one of the classes defined in struts.jar, check your struts.jar is in your classpath. struts.jar is in my classpath, this exception is thrown at runtime there is no org.apache.struts.example package in my struts.jar, hence my assumption

How do I contribute?

2001-06-04 Thread Ritter, Steve
Hello, I would like to contribute some information on using Struts with Persistence PowerTier (Apache/Servletmill). What's the best way to do this? --Steve

Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Brett G. Palmer
We are getting a NullPionterException which seems to originate from the the struts-html tag libraries. The error only occurs when we run Struts with Tomcat/Apache and SSL. If we bypass SSL and just go through Apache (port 80) we do not see the error. Has anyone else seen this problem when

Is struts-documentation really *required*?

2001-06-04 Thread Ritter, Steve
I found that I could not successfully deploy struts-example.war without first deploying struts-documentation.war. Does this sound right or is it maybe something specific to my servlet container (Servletmill from PowerTier)? --Steve

Resetting an Action Form (urgent)

2001-06-04 Thread Mikkel Bruun
Hi Guys, Please help me out on this one... I ran in to a small problem... 1. In the system im developing the user has to go through several pages, entering information that needs to be processed... 2. When ever the user enters invalid data, he'si returned to the form and is presented to error

RE: Hidding .jsp files

2001-06-04 Thread Mikkel Bruun
Hi Craig, A blast from the past...I believe this post is a month old... Anyways...I see your point, but consider this... If I only refered to the functionaly (pages, actions whatever), I would have the following problem... myForm.do forwards to myAction which is validated to myForm... So if

RE: Any Hashmap examples used in jsp page? - THANX!!!

2001-06-04 Thread Dudley [EMAIL PROTECTED]
Hi all, I just want to thank everyone for their great responses, I really appreciate all the help.GREAT THANX -Original Message- From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 6:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Any Hashmap examples

visual changes based on state

2001-06-04 Thread Jonathan
Just wondering how you all were implementing visual changes based on state. Ex. when a menu button says "logon" before the person loggs on, and then says "logoff" after the person has logged on. How are you doing this switching based on state? In the action? in the template? Or are you all

Form input using image tag

2001-06-04 Thread Luna, Kat
Title: Form input using image tag Hi, I'm trying to use the html:image tag to submit a form, but the graphic is not rendering correctly. html:img works fine for display, but this is the resulting source code of html:image src="images/submit.gif" / tag: tr tdinput type=image name=

Re: visual changes based on state

2001-06-04 Thread Ted Husted
You can either 1. Route users to different pages based on their state, or 2. Deliver the current state to the presentation layer in the form of JavaBeans that the Struts logic tags can test. logic:present name=logon ... -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~

How do I Internationalize ActionError parameter values?

2001-06-04 Thread Kyle Robinson
Hey, Looking through the archive I found a couple of notes about internationalizing the ActionError parameters. I'm talking about the following: public ActionError(java.lang.Stringkey, java.lang.Objectvalue0, java.lang.Objectvalue1) Construct an

Re: Is struts-documentation really *required*?

2001-06-04 Thread Dan Miser
No, it's not required at all. What kind of error are you getting? -- Dan Miser http://www.distribucon.com From: Ritter, Steve [EMAIL PROTECTED] I found that I could not successfully deploy struts-example.war without first deploying struts-documentation.war. Does this sound right or is it

Re: Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Dan Miser
Your SSL isn't configured properly. Take a look at bug 992 in Bugzilla for the solution http://nagoya.apache.org/bugzilla/show_bug.cgi?id=992 -- Dan Miser http://www.distribucon.com From: Brett G. Palmer [EMAIL PROTECTED] We are getting a NullPionterException which seems to originate from the

RE: Is struts-documentation really *required*?

2001-06-04 Thread Ritter, Steve
Ok, good. The error I am getting is as follows: ERROR Exception in thread main_worker java.lang.IllegalAccessError: try to access class org/apache/struts/action/AddDataSourceRule from class org/apache/struts/action/ActionServlet at

RE: Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Deadman, Hal
This could also be caused by a link URL including the port number which sometimes caused a new session to be used. A NPE could result when code that normally expected something in the session didn't find it because the session was new. As indicated by the other post, this may be fixed in b3.

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Deadman, Hal
Getting the locale object is easy. If you are in an Action perform method, just call: getLocale(request); If you are not in the Action class, you can do what that method does, Locale locale = (Locale) session.getAttribute(Action.LOCALE_KEY); if (locale == null) locale =

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Kyle Robinson
Thanks Hal. However, I need to get the locale in the validate() method of my ActionForm object. Any thoughts? -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 13:24 To: [EMAIL PROTECTED] Subject: RE: How do I Internationalize ActionError

RE: Form input using image tag

2001-06-04 Thread Shamdasani Nimmi-ANS004
Title: Form input using image tag Kat, I have html:image src="images/btn_login.gif"/ and it creates this: input type="image" name="" src="images/btn_login.gif;jsessionid=lqwrkmnwb1" I don't know if it should make a difference but try removing the space before / and see if it works

RE: Is struts-documentation really *required*?

2001-06-04 Thread Ritter, Steve
Here are the results of trying to install the struts sample webapps without first deploying struts-documentation.war for Servletmill. Webapp Works w/o doc = struts-blank.warNO struts-example.war

RE: Any Hashmap examples used in jsp page?

2001-06-04 Thread Steve A Drake
On Mon, 4 Jun 2001, Shamdasani Nimmi-ANS004 wrote: Steve, This is how I used a HashMap in a jsp: logic:iterate id=item name=user_list property=userList TR TDbean:write name=item property=key//TD TDbean:write name=item property=value//TD /TR /logic:iterate getUserList() method in

Managing resource life cycle during request

2001-06-04 Thread Jeff Trent
I was wondering how other people deal with physical resource objects (eg. db result sets, etc.) during a request. Before struts, I use to allocate the resource, call request.setAttribute() with the resource object, call request dispatcher (to do jsp presentation), then clean up the resource

multiple selectlists

2001-06-04 Thread Dante le Poole
Hi all, Can Struts deal with selectlists which allow multiple selections? If so, how should I create the accessors methods for the formbean, i.e. how does Struts get/set the multiple selections from the formbean? Thanx! Dante

RE: Any Hashmap examples used in jsp page?

2001-06-04 Thread Deadman, Hal
I don't think what you are trying to do should be done in the JSP by a struts/custom tag. Why not copy the value objects in the HashMap to an array based on the order of the keys in your String array? Then pass the array to the JSP instead of the HashMap. If you need the keys and they aren't

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Kyle Robinson
So are you suggesting that I pass the request object to my ActionForm constructor when I create it in my action? -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 13:56 To: [EMAIL PROTECTED] Subject: RE: How do I Internationalize ActionError

Error compiling 'cannot resolve symbol'

2001-06-04 Thread Sylvie Djihanian
Hi, I am trying to compile the sample application "business.zip" I found in the Struts, an open-source MVC implementation article http://www-106.ibm.com/developerworks/library/j-struts/?n-j-2151. I get the following error: [javac]

Logic-Iterate

2001-06-04 Thread Shane Warne
Hi, I was trying to us the logic-iterate tag and i'm stuck at a point. Please go thru the snippet below, logic:iterate id=test name=mybean property=name liembean:write name=test//em/li % String myName = instance.getName(mybean.getName()); System.out.println(myName); % /logic:iterate Now, how

Problems with struts and resin

2001-06-04 Thread Matthew Heaton (Software Engineer)
I'm trying to deploy a couple of struts apps on resin which I've deployed successfully on Weblogic and on Tomcat. It appears the server tries to call the init method in the ActionServlet over and over eventially causing the server to run out of memory and crash. I've seen also seen this

Re: Problems with struts and resin

2001-06-04 Thread Ted Husted
I haven't had this problem myself. I've kept busy Struts applications in play for several weeks without any unscheduled downtime under Resin. Matthew Heaton (Software Engineer) wrote: I'm trying to deploy a couple of struts apps on resin which I've deployed successfully on Weblogic and on

RE: Is struts-documentation really *required*?

2001-06-04 Thread Ritter, Steve
Thanks Ted, I will take it from here. Once I get my project-specific sample put together I'll look into it some more if its still a problem. --Steve -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 2:46 PM To: [EMAIL PROTECTED] Subject:

Re: Newbie to struts - jdbc/dbtags

2001-06-04 Thread kuma.cra
Hi, im a newbie to struts basically applying the examples and reading the documentation (mvc). I am about to connect a psql datasource (Postgresql, luinx OS) database to a struts mvc utilizing a database URL . Thus is there a ActionForm example and what level if i have to create a ActionForm

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Deadman, Hal
The request is passed into the validate() function as an argument by the ActionServlet. You said you wanted the locale in the validate() method, right? -Original Message- From: Kyle Robinson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 6:11 PM To: '[EMAIL PROTECTED]'

RE: Logic-Iterate

2001-06-04 Thread Shamdasani Nimmi-ANS004
Shane This is how you do it: logic:iterate id=eachBean name=yourBeanObject property=beanList TR TDbean:write name=eachBean property=name//TD /TR /logic:iterate In the above case in yourBeanObject class you will have the method getBeanList() which will return a list of your beans. And in

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Kyle Robinson
Yes, sorry. I wasn't aware the request is passed into the validate. Thanks Hal -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 15:09 To: [EMAIL PROTECTED] Subject: RE: How do I Internationalize ActionError parameter values? The request is

RE: Problems with struts and resin

2001-06-04 Thread Matthew Heaton (Software Engineer)
Humm, it does just to be my applications that are doing it but I can't see where they are configured any differently. -Matt -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: Re: Problems with struts and

Re: Newbie to struts - jdbc/dbtags

2001-06-04 Thread Ted Husted
You can configure Postgresql in the struts-config.xml, and then use the same datasource with the Jakarta Taglibs JDBC. Works like a charm. Struts uses org.apache.struts.action.DATA_SOURCE as the datasource identifier (see Action.java). kuma.cra wrote: Hi, im a newbie to struts basically

Re: Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Brett G. Palmer
Thanks for everyone's suggestions. Updating to Struts beta-3 fixed the problem. I also tried configuring SSL according the Bugzilla record #992, but it didn't fix the problem. Brett - Original Message - From: Bryan Field-Elliot [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: Multipage forms and validation

2001-06-04 Thread Ted Husted
When the time comes, David's Validation servlet would get my vote. Unfortunately, we need to get 1.0 out the door before voting on anything like this. Beta 3 is counting down now, so we only talking a couple of weeks now. In any event, what features Struts, or any Jakarta product, will offer in

Re: Managing resource life cycle during request

2001-06-04 Thread Jeff Trent
Ted, Just because the objects are held in the bean doesn't necessary mean they will automatically be cleaned-up. Am I missing something here? I also agree, I don't want to be writing queries within the JSP. Thanks, - jeff - Original Message - From: Ted Husted [EMAIL PROTECTED] To:

RE: Any Hashmap examples used in jsp page?

2001-06-04 Thread Steve A Drake
On Mon, 4 Jun 2001, Deadman, Hal wrote: I don't think what you are trying to do should be done in the JSP by a struts/custom tag. Maybe it's a dumb idea, but that's never stopped me before. =:] Why not copy the value objects in the HashMap to an array based on the order of the keys in

Re: Managing resource life cycle during request

2001-06-04 Thread Jeff Trent
That's sounds okay for simple forms, but I'd rather not serialize objects from a multi-row recordset to a collection every time. Too much overhead! Let me put the question another way, in Struts, what method on the form or action class gets called following the rendering of the input page? I'll

Re: Managing resource life cycle during request

2001-06-04 Thread Ted Husted
Following the rendering? By Struts? None. It's a straight JSP (or other view technology, like a Velocity template). Generally, things go into the request, and are disposed when the request is disposed. There's an enhancement to the iterate tag in the works that uses a RowSet directly.

Re: Managing resource life cycle during request

2001-06-04 Thread Jeff Trent
Well, it looks to me that short of overriding ActionServlet.process(), there is no way one can clean-up resources after the page has been rendered... - Original Message - From: Jeff Trent [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 04, 2001 10:54 PM Subject: Re: Managing

Re: Managing resource life cycle during request

2001-06-04 Thread Ted Husted
I doubt that overriding ActionServlet.process() would work. The controller sends back the response, and it's done. It's then up to HTTP to deliver the view, usually a JSP. Any clean-up routine would have to be the responsibility of the view, which puts you into the scriplet zone. Jeff Trent

Moving from Struts 1.0b1 to Struts 1.0b3

2001-06-04 Thread Graeme Miller
Currently having a problem with migrating code from using Struts 1.0b1 to Struts 1.0b3 Everything seems to work fine apart from the fact that the validate methods on our form beans (ie subclasses of org.apache.struts.action.ActionForm) no longer get called successfully. I have had a look