RE: Validation a form

2001-08-08 Thread DUPRAT Alexandre
I don't understand why it does not work. It crashes only when the validate method is called and must return an error. Is sqlQuery begins with select it works fine and i got to the result page. Do i need to write a jsp page in case of error? (i already have one where i forward to when an exception

Re: Validation a form

2001-08-08 Thread Pham Thanh Quan
But what is the specific error ? - Original Message - From: DUPRAT Alexandre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 11:31 PM Subject: RE: Validation a form I don't understand why it does not work. It crashes only when the validate method is called and

FW: Indexed tags problem

2001-08-08 Thread Andrew Paul Swift
The way I have solved this problem currently is to create a method in the form that forwards to the object within the form. e.g. public PersonField getPersonField (int index) { return (PersonField)person.getPersonField(index); } It is a work around rather than a fix. I

Get request and the Action servlet

2001-08-08 Thread roger . day
I would like to use Struts with an action that is initiated by following a link, rather the form-based approach that I can see in the documentation. I would also like the ActionServlet to parse the URI and instantiate my bean with the information from the URI. Is this possible? Sorry if this is

Re: Get request and the Action servlet

2001-08-08 Thread Gregor Rayman
[EMAIL PROTECTED] wrote: I would like to use Struts with an action that is initiated by following a link, rather the form-based approach that I can see in the documentation. I would also like the ActionServlet to parse the URI and instantiate my bean with the information from the URI. Is

Re: Get request and the Action servlet

2001-08-08 Thread roger . day
Excellent, thanks. The information I want to submit is minimal anyway. I'll have a look at the source. At 08/08/2001 10:21:08, Gregor Rayman [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] wrote: # # I would like to use Struts with an action that is initiated by following a # link, # rather

struts-config.xml

2001-08-08 Thread Pfingstl Gernot
Title: struts-config.xml In struts-config_1_0.dtd there is a note in the data-source section that the use of url, autocommit and so on as attributes is deprecated, you should use set-property instead. How can I use set-property in struts-config.xml? I have following datasource: data-source

RE: struts-config.xml

2001-08-08 Thread Heritier Arnaud
Now you should write something like that : data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=My Data Source Configuration/ set-property property=driverClass value=oracle.jdbc.driver.OracleDriver/

internal servlet error

2001-08-08 Thread Sunanda_Veeraganti
I started using struts config I just imported all packages into my directory and started tomcat and tried to run an example jsp the following errors are seen in the browser I am unable to fix it out please help me Error: 500 Location: /sunanda/header.jsp Internal Servlet Error:

dynamically setting the html:select property

2001-08-08 Thread JRender
Hi there, inside an iterate tag I'm creating multiple textboxes and selects. to unqiuely identify each item I am appending the index from the iteration (idx) to the name; e.g. input type=text name=rate#bean:write name=idx/ maxlength=10 value=bean:write name=limitBean property=rate / I also

HTML Base Tag using SSL

2001-08-08 Thread Charlesworth, Chico
We have a problem using the html:base tag when displaying a Struts JSP Page under SSL. SSL is configured on our web server (BEA WebLogic) to listen on the default port (443). When the JSP page is displayed in the browser the source HTML code shows the base tag with port 80 instead of port 443

Re. : RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from r equest scope

2001-08-08 Thread mikael . lharant-unilog
Thanks Mark. Where can I find the struts.jar file with the modification special WAS? MIKAEL Mark Wilson [EMAIL PROTECTED] le 07/08/2001 17:48:13 Veuillez répondre à [EMAIL PROTECTED] Pour :'[EMAIL PROTECTED]' [EMAIL PROTECTED] cc : Objet : RE: WEBSPHERE 3.5.4 and STRUTS 1.0:

RE: Re. : RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from r equest scope

2001-08-08 Thread Assenza, Chris
http://www.enfused.com/struts.jar :) Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 3:03 AM To: [EMAIL PROTECTED] Subject: Re. : RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from r equest scope Thanks

RE: dynamically setting the html:select property

2001-08-08 Thread Heritier Arnaud
When you use a parameter of a tag, it should be a text or a regexp. if you write html:select property=lookup#%= idx % the tag interpretor will see the string lookup# and suppose that the parameter shouldn't be evaluated. To do this you should write this : html:select property=%=\lookup#+idx\%

Re: I think I found a bug in Struts?

2001-08-08 Thread Alex Colic
When the app starts I put all the lists which are vectors into the application session. I do this by getting the servletcontext object and putting the vector into there. Alex * Date: Tue, 7 Aug 2001 12:41:11 -0700 (PDT) To: Struts [EMAIL PROTECTED] From:

I'm new, need some tutorials and maybe some advice

2001-08-08 Thread janof
Hi all, I just signed up and looking for some tutorials on struts. I installed it on Linux with Apache-Tomcat config. There is a sample application in there, however it would be maybe easier to go through some tutorials first. Any suggestions ? Also, I'm in the process of doing a little web

Struts Design Question

2001-08-08 Thread Shriver, Ryan
Hello all, I downloaded Struts last week and have enjoyed playing with it. I've come upon a design problem and I was hoping some folks on this list could help solve it. I've had no luck finding an answer in the mail archives. I want to maintain a list of songs. Through a web interface, I want to

RE: Struts Design Question

2001-08-08 Thread Aaron Ravenberg
Yes you can do the add/edit all on the same form. If have a database generated code or key you can put that in a hidden field. When in the action examine the form or request obj to see if that key is there, if it is you have a modify, if not add the record. Have you page that lists the songs

Poolman under Tomcat 4

2001-08-08 Thread Ted Husted
Has anyone using Poolman configured it properly for Tomcat 4? Since it supports both JNDI and a static call for retreiving the datasource, it works well with layered applications. I have it running under Tomcat 3 well enough. But configuring it to play nice with Tomcat 4 is eluding me. I have

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

2001-08-08 Thread Long Zhao
eom --- Pham Thanh Quan [EMAIL PROTECTED] wrote: 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

radio buttons

2001-08-08 Thread Rachel Warburton
using the strut tag library does any one no of a way of making two radio buttons in the same group ie click one deselects the other one thanks ** This email and any files transmitted with it are confidential and intended

Advice on how to implement the following:

2001-08-08 Thread Alex Colic
Hi, I need a bit of advice on how to implement the following. I am creating a page that holds a list of item names along with their description. So far I created a vector that holds an array of items and then passes it to a Struts page in the request scope. The page then iterates the array and

Building Web Application

2001-08-08 Thread Rodney Smith
Hi All, I have sketched out the frame work for my web application. I have configured my Struts .xml files and put this in my Tomcate 3.2.2 and compiled this and this has worked. The question is what I am doing the correct way of building a web application and if not which is the professional

Re: radio buttons

2001-08-08 Thread Matt Raible
give them the same name. --- Rachel Warburton [EMAIL PROTECTED] wrote: using the strut tag library does any one no of a way of making two radio buttons in the same group ie click one deselects the other one thanks **

Database.xml or other avenues

2001-08-08 Thread Rodney Smith
Hi All, I have seen how database.xml works with Struts-example.war and that was good, but I would like to test the same sort of database on Access .mdb If I put dummy data into the .mdb, where do I put the .mdb? do I put this in the WEB-INF section with the other .xml files? I have created a

how to submit a form with different parameter value

2001-08-08 Thread Long Zhao
I have a form like this: html:form action=/*/doSomeThing.do .. input type=image src=button_saveAndContinue.gif input type=image src=button_saveAndGoback.gif /html:form how can I make the first button do doSomeThing.do?action=continue and the second button do doSomething.do?action=goback

RE: Poolman under Tomcat 4

2001-08-08 Thread Alan Inser
Hi Ted, In my Tomcat 3 configuration, I put poolman.xml in the WEB-INF folder. Then you have to add this folder's path in the classpath, see my classpath from Tomcat.bat: set CP=%CP%;D:\Projects\MyApp\Source\webapps\regbl\WEB-INF;D:\DevTools\JTA\jta.j

Why would jsessionid not appear?

2001-08-08 Thread Brian . Duchouquette
My link is: html:link page=/createStakeholder.do?action=createbean:message key =index.createStakeholder//html:link it works, but the URL shows: http://localhost:8080/dne-struts/createStakeholder.do?action=create no jsessionid :( Any hints appreciated! Thanks, Brian Here's my

Re: Poolman under Tomcat 4

2001-08-08 Thread William Jaynes
As another data point, I use resin and tomcat3. I typically configure poolman locally for each web app. That is, I put poolman.jar into each WEB-INF/lib directory and an application specific poolman.xml into each WEB-INF/classes directory. Things also work if I configure poolman globally by

html:image tag, property attribute?

2001-08-08 Thread Rachel Warburton
html:image src=../../images/sendandsave.gif property=guess/ results in input type=image name= src=../../images/saveasdraft.gif which is not what I'd expect from looking at the source for ImageTag: public int doEndTag() throws JspException { // Generate an HTML input type=image

RE: radio buttons

2001-08-08 Thread Allamsetty, Venkata
use the same property name example: html:radio name=dtActionForm property=defaultTime value=5 nbsp;5 Minutes nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/html:radio html:radio name=dtActionForm property=defaultTime value=10 nbsp;10 Minutes nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/html:radio html:radio

FW: ALERT From InfoWorld: New virus spreads using Acrobat files

2001-08-08 Thread DHarty
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 11:13 AM To: [EMAIL PROTECTED] Subject: ALERT From InfoWorld: New virus spreads using Acrobat files INFOWORLD ALERT: SECURITY

Re: Why would jsessionid not appear?

2001-08-08 Thread Brian . Duchouquette
To follow up my last message: jsessionid is now being passed from index.jsp to my next form: CreateStakeholder.jsp. CreateStakeholder.jsp does not seem to recognize jsessionid when it is sent, and does not re-write the link tags.

ActionServlet.addMapping() persistence

2001-08-08 Thread Becky Moyer
Hi all... I want to write an Action that will add mappings to the ActionServlet on the fly. Am I correct in thinking that any ActionMappings and such that I add in this way will not be persisted, and that I also have to modify struts-config.xml if I want the mappings to be available for

Re: Poolman under Tomcat 4

2001-08-08 Thread Ted Husted
Ahh, the poolman.xml under classes! I was trying it in lib .. so this did help, William! And it works just as well under Tomcat 4, so I'm back to having no CLASSPATH again! -Ted. William Jaynes wrote: As another data point, I use resin and tomcat3. I typically configure poolman locally

Re: Poolman under Tomcat 4

2001-08-08 Thread William Jaynes
Ted, I just installed Tomcat4 and got poolman to work for me. As I said, my typical setup is to have poolman.jar in each WEB-INF/lib and poolman.xml in each WEB-INF/classes. After setting up tomcat4 for struts (copying jaxp.jar and crimson.jar from /tomcat4/jasper to /tomcat4/lib) and for poolman

Re: I'm new, need some tutorials and maybe some advice

2001-08-08 Thread David Winterfeldt
Ted Husted has links tutorials, example webapps, and code (custom tags, etc.). http://www.husted.com/about/struts/ A Walking Tour of Struts (at the bottom) walks you through the Struts example webapp. http://www.husted.com/about/struts/scaffolding.htm If you want to stay pure MVC, then you

Context error when load images

2001-08-08 Thread BinhMinh Nguyen
Hi, I have a a JSP page, on which I have loaded a couples of images, eventhough the images loaded all the images correctly, I till get the following error messages, Can you tell me why? thank you very much Binh 2001-08-08 11:18:48 - Ctx( /templates ): IOException in: R( /templates +

Scalability

2001-08-08 Thread Steven Leija
Hello All, I've been working with Struts for sometime now, but now I run into another question. Has anyone had any issues with Struts not being scaleable? Have you performed any stress tests on your applications? I really like Struts, but I'm getting feedback from other developers that don't

Re: how to submit a form with different parameter value

2001-08-08 Thread Craig R. McClanahan
One way would be to have a hidden field in the form named action, and then have some JavaScript event handler on the two image buttons that set the value to be transmitted for the action property to either continue or goback appropriately. Essentially, this is the same thing you would do with

Re: Open a new window after an action

2001-08-08 Thread Craig R. McClanahan
Windows are a client side thing, so you deal with them in Struts the same way you do with static HTML. * You can specify a target attribute on the form, which will cause the response to be displayed in a window identified by the target value. * To open a window with no decorations, you'll

Re: Why would jsessionid not appear?

2001-08-08 Thread Craig R. McClanahan
The jsessionid path parameter will only be added if the servlet container does not know whether your client supports cookies. How Tomcat handles this (probably typical of others): * On the first response in a session, send the session id both ways (cookie and encoding). * If the subsequent

Re: ActionServlet.addMapping() persistence

2001-08-08 Thread Craig R. McClanahan
On Wed, 8 Aug 2001, Becky Moyer wrote: Hi all... I want to write an Action that will add mappings to the ActionServlet on the fly. It's kind of fun to do stuff like this :-), but there's a standard action already available for you -- check out the

Weblogic related question- javax.servlet.jsp.JspException: No getter method for property...

2001-08-08 Thread rhayden
I am moving a Struts-based application from WebLogic 5.1 to 6.1 and I am encountering some strange errors. Has anyone else seen this behavior before, or know what might be causing it? I have a Collection of beans I am trying to iterate through using the Struts iterate tag (works fine with

Re: Weblogic related question- javax.servlet.jsp.JspException: No get ter method for property...

2001-08-08 Thread Brian . Duchouquette
RequestUtils is using introspection on your form bean class to match the name you placed in your html:text tag with a bean method name. So, if you had: html:text property=requestDate Your form bean should have: String getRequestDate() andvoid setRequestDate(String)

Re: session question

2001-08-08 Thread Troy Hart
There is no way to approach this problem as you currently are. You should be able to achieve the same effect however, but you will need to restructure your approach. Not knowing the details of you situation I would advise you to think in terms of having an action initialize your action form

Struts on Websphere on AIX box

2001-08-08 Thread Jain, Shipra
Hi, We have being using struts for a while now. We got it running on VAJ 3.5.3 . Also, on Websphere 3.5.3 on NT box. But now when time for actual deployment came ( which is on AIX Box ) , struts is giving a hard time . We are getting following error : [01.08.03 16:12:21:326 EDT] 6a64e3f8

RE: Weblogic related question- javax.servlet.jsp.JspException: No get ter method for property...

2001-08-08 Thread rhayden
The Bean class does have a matching get method for the specified property. This is why I don't understand why I am receiving this error... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:45 PM To: [EMAIL PROTECTED] Subject: Re:

RE: Weblogic related question- javax.servlet.jsp.JspException: No get ter method for property...

2001-08-08 Thread Brian . Duchouquette
You're Bean class does not extend ActionForm.. [EMAIL PROTECTED]

Can't get setter method(s) for indexed property right. Pleeze help

2001-08-08 Thread Marcel Maré
I'm having trouble getting the setter methods of an indexed property of my formbean to work (despite some postings on this list). It's driving me nuts. So what I'm trying to do is use a String property of my formbean (actually a List of Strings) as an indexed property. === JSP ===

Formbean Reset() called on every pass?

2001-08-08 Thread Marcel Maré
Why is the Formbean Reset() method called on every pass, regardless of scope (request vs session). This makes prepopulating a form a bit awkward. TIA Marcel Maré WebToTheMax

splitting of struts config was RE: ActionServlet.addMapping() persistence

2001-08-08 Thread Daniel Toms
Craig, or anyone, Has anyone actually gotten the below xml inclusion mechanism to work using struts and tomcat 3.2.1? I searched other messages about this in the archives and none of the authors were successful. I always get a parse error like: che/struts/resources/web-app_2_3.dtd' Parse

Formbean Reset() called on every pass?

2001-08-08 Thread Marcel Maré
Why is the Formbean Reset() method called on every pass, regardless of scope (request vs session). This makes prepopulating a form a bit awkward. TIA Marcel Maré WebToTheMax

Can't get setter method(s) for indexed property right. Pleeze help

2001-08-08 Thread Marcel Maré
I'm having trouble getting the setter methods of an indexed property of my formbean to work (despite some postings on this list). It's driving me nuts. So what I'm trying to do is use a String property of my formbean (actually a List of Strings) as an indexed property. === JSP ===

Oops, sorry for the double posts

2001-08-08 Thread Marcel Maré
Something fishy going on here (duplicator worm? ;-) Marcel Maré WebToTheMax

Re: Can't get setter method(s) for indexed property right. Pleeze help

2001-08-08 Thread Brian . Duchouquette
Marcel, I walked through code example submitted by Warwick Boote to get past issues/concepts with setters for indexed properties. The only change I made was to add a second field to the form. So, if your list is named properties, you would have second field on the form called property also.

New Release

2001-08-08 Thread MacKellar, Kimberly
When is the new release of struts coming out (I really would like to use the logic:notEmpty tag)? What happened to PropertyUtils in the nightly builds? Kimberly MacKellar Thomson Financial Publishing [EMAIL PROTECTED]

Construct context-relative URL in Javascript?

2001-08-08 Thread Randall Parker
I've seen Craig posted how something like html:image page=/images/a.gif/ will get translated to img src=/myapp/images/a.gif But I need to create a context-sensitive URL in Javascript. The reason for this is that there are multiple buttons on my form/page and in the action

Re: Construct context-relative URL in Javascript?

2001-08-08 Thread Brian . Duchouquette
Did you try html:base/? Randall Parker

Using multiple data sources

2001-08-08 Thread Jeffrey Bird
I am new to struts and am having a bit of trouble getting multiple datasources working. I have two datasources defined in my struts-config.xml. The documentation is unclear on how to define an identifier for each datasource. The other problem is how to reference the datasource in my action

Re: Formbean Reset() called on every pass?

2001-08-08 Thread Craig R. McClanahan
On Wed, 8 Aug 2001, Marcel Maré wrote: Why is the Formbean Reset() method called on every pass, regardless of scope (request vs session). This makes prepopulating a form a bit awkward. Because it is the only practical way I have found to deal with the funkiness of HTTP with regards to

Re: splitting of struts config was RE: ActionServlet.addMapping()persistence

2001-08-08 Thread Craig R. McClanahan
My ... in the second line needs to be replaced by the usual public and system identifiers -- I pushed SEND before I went back and looked them up in the docs :-( Craig On Wed, 8 Aug 2001, Daniel Toms wrote: Craig, or anyone, Has anyone actually gotten the below xml inclusion mechanism to

Re: New Release

2001-08-08 Thread Craig R. McClanahan
On Wed, 8 Aug 2001, MacKellar, Kimberly wrote: When is the new release of struts coming out (I really would like to use the logic:notEmpty tag)? If you're planning on waiting for a 1.1 release, we haven't really talked about it yet. I know there's quite a bit of stuff yet to integrate - in

newbie question

2001-08-08 Thread Debasish Ghosh
Hi all - I am facing a weird problem, which I could not solve in the last couple of hours. I checked up the mail-archive but could not locate any solution to this. The application has a login screen (login.jsp), which validates a user. There is an ActionForm (LoginForm) with appropriate get and

Re: beans:write bug?

2001-08-08 Thread Martin Cooper
This is a consequence of the JavaBeans introspection mechanism. The getter and setter must be getting and setting the same type for them to be recognized as property accessors. See the Introspection chapter of the JavaBeans spec for more details. -- Martin Cooper - Original Message -

Re: How to detect an ActionError in the JSP (logic:present)?

2001-08-08 Thread Martin Cooper
If you are just trying to determine whether or not there are outstanding errors to be displayed, you should look for the ActionErrors object, which is stored under the key Action.ERROR_KEY. -- Martin Cooper - Original Message - From: Hartmut Bernecker [EMAIL PROTECTED] To: [EMAIL

Re: Staging Pages/Action form question.

2001-08-08 Thread Martin Cooper
The Struts answer to both of these questions is use an Action. The Action classes are where the various pieces come together. In the first case, your action will invoke methods on business-logic objects and populate the form with the results. Then it will forward to the appropriate JSP page to

Re: Using multiple data sources

2001-08-08 Thread Craig R. McClanahan
On Thu, 9 Aug 2001, Jeffrey Bird wrote: I am new to struts and am having a bit of trouble getting multiple datasources working. I have two datasources defined in my struts-config.xml. The documentation is unclear on how to define an identifier for each datasource. The other problem is how

Re: Newbee: design question

2001-08-08 Thread Martin Cooper
You don't have to create a form bean if you don't want or need to. In your example, the form bean would only have one property, and that property came directly from a link (minimizing the risk of invalid values, and hence the need for validation in the form bean), so you could just use

New To Struts

2001-08-08 Thread Nitu Singh
Hi, I am new to struts and for past one week I am trying to find tutorials and materials regarding struts. The only thing I got is some tutorial in jspinsider.com. I understood the model of struts, but when putting it in to code, I am facing problem at very basic step. All I see in tutorials is

Re: New To Struts

2001-08-08 Thread Martin Cooper
You must not have visited the Struts home page, which should have been your *first* resort. :-) http://jakarta.apache.org/struts/ There you will find: * A link to the Struts User Guide * A 'Resources' link, which will take you to a page listing several tutorials and articles on Struts. * An

Re: New To Struts

2001-08-08 Thread Rama Krishna
The following might help you. ramakrishna. * Ted Husted has links tutorials, example webapps, and code (custom tags, etc.). http://www.husted.com/about/struts/ A Walking Tour of Struts (at the bottom) walks you through the Struts example webapp.

Re: New To Struts

2001-08-08 Thread Nitu Singh
Thanks a lot, And I did visit the home page for struts(and that's where the problem started). Let me explain u the doubts which I had going thru the page: 1) All the downloads had 2-3 versions (for example, ANT, it had binary release, source realease and some RPM), which one I have to download,

Weblogic + Struts + VAGE 3.5

2001-08-08 Thread baris.guzelordu
I am trying to run Struts from weblogic in VAGE 3.5 Enterprise edition but I fail to run first example. Is there anyone who could use Struts in VAGE by using Weblogic. I got first applicatin is running at weblogic but when I try to reach index.jsp, I get a SAX parser exception.. Here is the

Struts Tomcat 4.0

2001-08-08 Thread Ajay Chitre
Hello, I have been playing with struts for the past couple of months and I have had fun playing with it. Time has come now to stop playing and get serious. I have been asked to develop a web app with Struts Tomcat. I have been using Weblogic for the past couple of years, but this is my first