request Processor in struts.

2005-02-08 Thread Sandip Khetle
Hi Where do we make the entry for the request processor in struts application?for example I have extended the RequestProcessor class to create my MyRequestProcessor ...How do I communicate this to the application.Will i have to make any entry in some config file...? Thanks in a

Redirect instead of forward in action mapping

2005-02-08 Thread Neil Aggarwal
Hello: When I set up a form in struts, I am using this action mapping: When the form is posted successfully, the user is forwarded to a page that says their information was entered successfully. Unfortunately, if they hit reload on that page, it will re-execute the form and the

RE: Struts validator [ client side error when using date validator]

2005-02-08 Thread Amjad I. Shahrour
Already tried, but still not working ! Amjad -Original Message- From: Saul Qunming Yuan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 7:35 PM To: Struts Users Mailing List Subject: Re: Struts validator [ client side error when using date validator] Off the top of my head,

RE: LazyDynaBean question

2005-02-08 Thread Joe Hertz
How about a simpler case then My real goal is to have DynaForms that are backed my experimental "semi-lazy-dynabean". BeanValidatorForm (while an impressive piece of work IMHO) isn't actually subclass of a DynaForm (even though it seems like it can be used in almost the same way). The way

RE: LazyDynaBean question

2005-02-08 Thread Joe Hertz
How about a simpler case then My real goal is to have DynaForms that are backed my experimental "semi-lazy-dynabean". BeanValidatorForm (while an impressive piece of work IMHO) isn't actually subclass of a DynaForm (even though it seems like it can be used in almost the same way). The way

RE: Can't put scriptlet into onmouseover

2005-02-08 Thread Neil Aggarwal
Daniel: Is there a more "struts-friendly" way to do rollover buttons? I have my images served out of apache, not tomcat in order to make them load as quickly as possible. Also, since I am using named virtual hosting, the url to an image will be different in http and https mode. That is why I ne

hml:select question

2005-02-08 Thread Sergey Livanov
I have a vendors collection consisting of bean Vendor( long vendor, String name ) When I'm writing a null value occur! MY FORM private Vendor [] vendors ; public Vendor [] getVendors() { return this.vendors; } public void setVendors( Vendor [] newvendors )

Re: Application Security

2005-02-08 Thread Tim Christopher
All works fine now - cheers :o) On Tue, 08 Feb 2005 21:55:03 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > JDBC driver jar files belong in $TOMCAT_HOME/common/lib (I think that's > what you are asking). > > Erik > > > Tim Christopher wrote: > > >Turned out that the database driver could not

Re: Application Security

2005-02-08 Thread Erik Weber
JDBC driver jar files belong in $TOMCAT_HOME/common/lib (I think that's what you are asking). Erik Tim Christopher wrote: Turned out that the database driver could not be found, which resulted in the same error that I was being given by the Container when it tried to connect for the JDBCRealm. Ad

Re: Application Security

2005-02-08 Thread Tim Christopher
Turned out that the database driver could not be found, which resulted in the same error that I was being given by the Container when it tried to connect for the JDBCRealm. Adding the file to the WEB-INF/lib folder allows a connection to be made from a JSP, however Tomcat still gives the same erro

RE: wizard form and checkboxes that won't turn off

2005-02-08 Thread Daniel Lipofsky
That's definitely one solution. The other is to have an onsubmit method on the form with javascript to iterate over all the input elements in the form, find unchecked check-boxes, and create a hidden input with the same name and a value of "false". - Dan > -Original Message- > From: James

RE: Application Security

2005-02-08 Thread David G. Friedman
Tim, Have you tried using any command line tools to get to your datastore? Knowing that could rule out permissions issues on the database site as well as the connection host/port/URL. Regards, David -Original Message- From: Tim Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, Februar

Re: Trying to test an Action using only JUnit

2005-02-08 Thread Hubert Rabago
Have you tried using an ActionForward as opposed to a ForwardConfig? On Tue, 8 Feb 2005 16:56:29 -0600, Simon Chappell <[EMAIL PROTECTED]> wrote: > I'm trying to write a JUnit test for an Action and I'm having problems > with ClassCastExceptions on the findForward() method of ActionMapping. > I a

Trying to test an Action using only JUnit

2005-02-08 Thread Simon Chappell
I'm trying to write a JUnit test for an Action and I'm having problems with ClassCastExceptions on the findForward() method of ActionMapping. I am not in a position to try any other packages or tools, so I have to roll this one myself. I have narrowed the problem down to getting the ClassCastExcep

Re: Can't put scriptlet into onmouseover

2005-02-08 Thread Daniel Watrous
Neil, It seems that the approach to take would be to modify (or replace through inheritance) the link tag. This way you could eliminate the scriplet in your page and centralize your management of images too. I'm not sure that scriptlets are permitted inside jsp tags. The idea of the tag is th

Re: Application Security

2005-02-08 Thread Tim Christopher
I managed to solve the first error by reordering the elements within the server.xml file, however I'm now stuck with the following error (which occurs when the server is started): JDBCRealm[Catalina]: Exception opening database connection java.sql.SQLException: com.borland.datastore.jdbc.DataStore

Can't put scriptlet into onmouseover

2005-02-08 Thread Neil Aggarwal
Hello: I have an html:link tag in my navigation jsp page. I that page, I have an html:link tag that has an on mouseover attribute. I want to put a scriptlet in the onmouseover to generate the url to the image. Here is an example: ')" But, this fails to compile. I get this error: org.apach

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-08 Thread Daniel Watrous
Thanks for the advice! I have enabled debug and found as you suggested these lines at the bottom of my file: 16:32:57,446 DEBUG RequestProcessor:787 - Populating bean properties from this request 16:32:57,459 DEBUG RequestProcessor:919 - Validating input form properties 16:32:57,460 DEBUG Prop

JSP produces invalid XML?

2005-02-08 Thread Laurent
Hi, There is something I do not understand with the way JSP outputs XML: If in my source JSP file, I have something like this: a & b The XML parser should interpret this string as "a & b" and represent it internally as "a & b". However, when it ouputs that data to the XML file being sent back to

RE: Redirecting back to input

2005-02-08 Thread Chaikin, Yaakov Y.
Karan, I think you missed the point a little bit. I'll leave the discussion of whether it's a good idea to let the user access a JSP page directly or not out of this. Truly, there is nothing wrong with doing that if all you are doing is setting up the form on that page. But, leaving that aside...

Problem with checkbox

2005-02-08 Thread Norris Shelton
I have a checkbox drawn by: ${recordType.description} The form is defined as: ... ... The check box displays correct and even defaults. If I uncheck the box and submit, when it failes validation, it is still checked. = Norris Shelton Software Engineer Sun Certif

Re: Redirecting back to input

2005-02-08 Thread Karan
This method will cause an actual redirect, and so, the user will see the correct name of the action in the address bar. But it IS a bad idea to be showing the url of the webpage. If you can, you want to use only action URLs, because in ur action bean you can check if u have ur variables set up corr

Re: Connecting buttons to go to next pages.-Help!

2005-02-08 Thread Erik Weber
Sab wrote: I have one action defined in struts config file . Name="itemsearchForm" Scope="session" type="com.my.ItemSearchAction"> I have defined in global forward the I have a tiles definition which takes me to Itemsearch.jsp This jsp has 2 buttons.-Export and Cancel. When I click on Expo

Re: I have a jsp. that has two included jsp's that are actually struts actions but the response only

2005-02-08 Thread Joe Germuska
At 2:15 PM -0700 2/8/05, Eric Lemle wrote: So how does one get the final HTML from two Actions into the same page? I am pretty sure that Tiles will do includes instead of forwards where necessary so that you can use actions as the source of components. I've never had to use it, but someone rec

Re: Extending Action Mapping

2005-02-08 Thread Joe Germuska
At 3:35 PM -0500 2/8/05, Todd Nine wrote: Thanks for the help, given the Java Bean standards of getters and setters, is there any way to set a Map or a List from the xml file (something like the way Spring Framework does it)? And thanks for the naming complement, we get quite a few amusing ones,

Re: I have a jsp. that has two included jsp's that are actually struts actions but the response only

2005-02-08 Thread Eric Lemle
So how does one get the final HTML from two Actions into the same page? Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] >>> [EMAIL PROTECTE

RE: Extending Action Mapping

2005-02-08 Thread Fogleson, Allen
A workaround - albeit maybe not the best public void setAddIgnore(String value) { ignore.add(value); } public void setIgnore(List value) { this.ignore = value; } /** * @return A list of keys to ignore */ public List getIgnore() { return ignore; } then instead of use I don't like

Re: [OT-izzy]

2005-02-08 Thread Vic
Right back at ya: http://www.webdez.net/alig .V James Mitchell wrote: http://sites.gizoogle.com/?url=http://struts.apache.org -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx -- Forums, Boards, Blogs and News in RiA --

Re: Extending Action Mapping

2005-02-08 Thread Todd Nine
Thanks for the help, given the Java Bean standards of getters and setters, is there any way to set a Map or a List from the xml file (something like the way Spring Framework does it)? And thanks for the naming complement, we get quite a few amusing ones, like LaserBeanUtils... :) On Tue, 8 Feb

RE: [OT-izzy]

2005-02-08 Thread Dahnke, Eric (Company IT)
That's flippin brilliant. Seriously, LOL > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 08, 2005 12:59 PM > To: Struts Users Mailing List > Subject: [OT-izzy] > > > http://sites.gizoogle.com/?url=http://struts.apache.org > > > > -- >

RE: Extending Action Mapping

2005-02-08 Thread Benedict, Paul C
If your setter (for setIgnore?) does not have the same type as its getter, it is probably ignored. The JavaBean spec is really strict with its requirement for properties. By the way, "LaserActionMapping" is the coolest action classname I've ever seen. If there was an award for these things, I thin

Extending Action Mapping

2005-02-08 Thread Todd Nine
Hi all, I am trying to extend the ActionMapping Class with my own, LaserActionMapping. I have a List that I want to populate with MessageResource keys,. I have the configuration below, and my class. The setter is never being called, does anyone have any suggestions?

1.2.6 beta and SAXNotRecognizedException

2005-02-08 Thread Kirby Vandivort
Just grabbed the 1.2.6 beta and put the jar files and tld files in my app and tried to initialize it, and I'm getting the following exceptions. I've also including logging from right before the exceptions: 2005-02-08 13:11:16,483 DEBUG org.apache.struts.action.ActionServlet:653 -Initializing m

Connecting buttons to go to next pages.-Help!

2005-02-08 Thread Sab
I have one action defined in struts config file . Name="itemsearchForm" Scope="session" type="com.my.ItemSearchAction"> I have defined in global forward the I have a tiles definition which takes me to Itemsearch.jsp This jsp has 2 buttons.-Export and Cancel. When I click on Export it tak

RE: Struts html tag question

2005-02-08 Thread Slattery, Tim - BLS
> How to show a basic struts text box > and a checkbox? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts html tag question

2005-02-08 Thread Sab
How to show a basic struts text box and a checkbox? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT-izzy]

2005-02-08 Thread James Mitchell
http://sites.gizoogle.com/?url=http://struts.apache.org -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Problems with ControllerConfig properties

2005-02-08 Thread Todd Nine
Nevermind, I just realized why its being set. That's what I get for trying to use a WSAD gui! ;-) On Tue, 8 Feb 2005 12:50:59 -0500, Todd Nine <[EMAIL PROTECTED]> wrote: > Hi all, >I am trying to extend RequestProcessor as well as ControllerConfig > and I am running into errors. For instanc

Problems with ControllerConfig properties

2005-02-08 Thread Todd Nine
Hi all, I am trying to extend RequestProcessor as well as ControllerConfig and I am running into errors. For instance, when I use the default ControllerConfig, all of the values are initialized to their defaults, and no setters are called. When I extends the processor and the config, setters a

RE: Application Security

2005-02-08 Thread David G. Friedman
Tim, Have you also updated your web.xml and Tomcat conifgurations? -Original Message- From: Tim Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 12:05 PM To: Struts Users Mailing List Subject: Re: Application Security Cheers for all your advice. I've just tried im

Re: Application Security

2005-02-08 Thread Tim Christopher
Cheers for all your advice. I've just tried implementing the JDBCRealm, though unfortunaltly it does not work. The Log4j error file contains the following: http-80-Processor25 ERROR org.apache.catalina.realm.JAASRealm JAASRealm.java:269 Unexpected error java.lang.SecurityException: Unable to loc

Re: Struts validator [ client side error when using date validator]

2005-02-08 Thread Saul Qunming Yuan
Off the top of my head, try using: datePatternStrict instead of datePattern in in your validation.xml. Saul > Hi, > > I have configured and used struts validator for my application, > Server side validation is working perfectly... > > For client side, the required validator is working fine, b

Struts validator [ client side error when using date validator]

2005-02-08 Thread Amjad I. Shahrour
Hi, I have configured and used struts validator for my application, Server side validation is working perfectly... For client side, the required validator is working fine, but the date ( for example) is not working and giving a java script error " datePattern" has no properties. Please help

[ANN] Struts-JSF London Networking BOF VIII / Tuesday / 15th Mar ch 2005 @ 18:45 / Oracle City of London

2005-02-08 Thread Pilgrim, Peter
Dear Reader I would like to formally announce that The Eighth Struts/JSF London Networking BOF is taking place on 15th March 2005 at ``18:45'' at Oracle City of London offices. The meeting will take place in a room with Audio/Visual facilities between 7-9 pm. Afterwords members can retire to the

Re: Problem setting up a basic JSP with actions

2005-02-08 Thread Soaring Eagle
Thanks for the reply. Turns out, that i was facing the class not found exceptions because somehow, my J2EE container (weblogic) was not picking up struts.jar from the lib directory or the WAR file. my WAR file was inside an EAR file. When I placed the struts.jar and other library jars in the EAR fi

Charset

2005-02-08 Thread Markos Charatzas
Hi there, Although, 1. I have defined a in struts-config.xml like the following 2. my html templates have the content type set properly 3. my resource files are in the corrent content type I still get question marks (?) displayed back to the browser :( Is there any other place I need to set t

Re: Session handling in Struts

2005-02-08 Thread Mark Lowe
Are you links being encoded? or Mark On Tue, 08 Feb 2005 15:23:52 +0530, Rajesh <[EMAIL PROTECTED]> wrote: > Hi: > > I haired that struts by default supports session handling. > > when i tried to disable in cookies in my browser and try to access my > site which is a shopping site the sit

Re: Antwort: Session handling in Struts

2005-02-08 Thread Rajesh
Bernd: THANK YOU VERY MUCH Bernd. I got you now :) Rajesh [EMAIL PROTECTED] wrote: Hi Rajesh, automatic session handling by URL-rewriting (which will happen if the client is not accepting cookies) can only be guaranteed by Struts if you use the corresponding struts tag libraries or JSTL Tags in

Antwort: Session handling in Struts

2005-02-08 Thread Bernd . Knobloch
Hi Rajesh, automatic session handling by URL-rewriting (which will happen if the client is not accepting cookies) can only be guaranteed by Struts if you use the corresponding struts tag libraries or JSTL Tags in your JSP-Pages for hyperlinks and forms. If you write link to some page no rewrit

Session handling in Struts

2005-02-08 Thread Rajesh
Hi: I haired that struts by default supports session handling. when i tried to disable in cookies in my browser and try to access my site which is a shopping site the site is not handling sessions. when ever i try to add items to cart, in next page am not getting the session !!! is there any way

Re: Problems using Tiles with Modules

2005-02-08 Thread Christian Hesse
Hi all! I solved the problem on my own: Because I have to use struts 1.0 and contextRelative and module are not available, I have overloaded the Class vor the Image-Tag and now it works. Bye Christian "Struts Users Mailing List" schrieb am 07.02.05 17:39:47: > > Hi all! > > I have a very

Re: Struts & Velocity

2005-02-08 Thread Markos Charatzas
Thanks Joe, Im aware of the list so I will post there, I just thought it was more of a Struts related thing :) Sorry for that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]