Struts Jar file error

2005-01-05 Thread Vijaya S
Hi, I downloaded the struts source version. When I extracted the file, I got the following folder structure. --Jakarta-struts-1.2.4 --Contrib. --Struts-el --Lib --Webapps --Lib --Webapps Struts.jar file exist

RE: displaytag1.0rc2 (export) and struts problem

2005-01-05 Thread Metin Erksan
hi it downloads myaction.do as a file .? but in its export example , this func does not work like this below is my code var table = document.getElementById("XXX"); var rows = table.getElementsByTagName("td");

[validator] indexed properties

2005-01-05 Thread William Ferguson
Hi all, even after scanning the doco, examples, source code and previous posts I still can't get validation to happen for an indexed field in my Struts (1.2.4) application working. I would really appreciate some help crafting the appropriate validation definition. My form is defined as

RE: How to combine normal servlets and struts

2005-01-05 Thread Ashutosh Satyam
Hi, If you can tell in detail what exactly is the servlet code doing, it'll be easier to explain how can you incorporate it within struts framework. In a struts framework the request processing is done by the Action classes. So eventually, whatever task is being done by your current servlet can b

Install Struts

2005-01-05 Thread Vijaya S
Hello, I downloaded the source version of the Struts software. How do I start the Struts application. Thanks, Vijaya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Switching across multiple web application

2005-01-05 Thread Ashutosh Satyam
Hi, I would like to know how can we switch from one web application to another web application in a struts framework. I don't mean switching between the various application modules within a web application. What I intend to do is to restrict the user from directly accessing the 2nd web applic

Re: [OT] WinCVS problem (free beer!)

2005-01-05 Thread Frank W. Zammetti
Not stupid at all Lucas :) Yes, I did try that, a couple of times with some variables (one time I installed Python first, then Python and TCL, etc.) I DID however get it running on Win2K under VMWare, so I could always use it there. But, one thing I didn't realize is that you can't actually

Re: [OT] WinCVS problem (free beer!)

2005-01-05 Thread Lucas González Pearson
This might sound stupid... but have you tried reinstalling it? - Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "David G. Friedman" <[EMAIL PROTECTED]> Cc: "Struts Users Mailing List" ; "Commons User" Sent: Wednesday, January 05, 2005 7:34 PM Subject: Re: [OT] WinCV

Re: Attributes Initialization

2005-01-05 Thread Richard Yee
It is because the action class execute method is only executed when the form is submitted, not when it is displayed. If you want to pre-load the form, you need to create an action and either forward or redirect to the action which then forwards to the page that displays the form. -Richard At 11

How to combine normal servlets and struts

2005-01-05 Thread Manisha Sathe
I have 2 sets of programms running on Tomcat 1)one set is using normal servlet program architecture. 2)another is using struts technology. This together makes whole application. Eventually the whole application will be in struts, but currently i have half in servlet and half in struts. Cur

Re: Cancel button problem

2005-01-05 Thread Manisha Sathe
Hi Nicolas, I tried it but I am not getting it right, pls can u explain me in detail ? Thanks & regards Manisha Nicolas De Loof <[EMAIL PROTECTED]> wrote: When using cancel button, validation is automatically skipped. Use isCanceled(request) in your action to see if cancel was clicked and f

Re: Hmm... i will go crazy due to validation

2005-01-05 Thread Manisha Sathe
Hi all, I am writing my experience in case somebody same like me (very very new to struts) might get hint if they face the same problem. 1)First thing which i was doing wrong was making use of old validation-rules.xml (downloaded from web while downloading example) along with new jar files.

Re: isRequestedSessionIdValid is returning false for the first time

2005-01-05 Thread Craig McClanahan
On Wed, 5 Jan 2005 17:16:46 -0800 (PST), ans <[EMAIL PROTECTED]> wrote: > Hi, > I am in the process of converting a webapp written > using servlets in to struts actions. > > When I open the browswer and when I enter into an > action class for the first time, then my > 'request.isRequestedSessionId

isRequestedSessionIdValid is returning false for the first time

2005-01-05 Thread ans
Hi, I am in the process of converting a webapp written using servlets in to struts actions. When I open the browswer and when I enter into an action class for the first time, then my 'request.isRequestedSessionIdValid' is returning false Before calling the request.isRequestedSessionIdValid(), I pe

Re: Attributes Initialization

2005-01-05 Thread Cliff
Hi, May be you can try to use the reset() in the Form. Good Luck Cliff - Original Message - From: "elisegev1" <[EMAIL PROTECTED]> To: Sent: Thursday, January 06, 2005 3:12 AM Subject: Attributes Initialization > > I have a form that needs some initialization. The form is derived >

RE: Date validation another question

2005-01-05 Thread Manisha Sathe
Thanks for the reply, do not know why the same is not working properly for me but will try it out again. regards Manisha Vaclavik Radek <[EMAIL PROTECTED]> wrote: Hi, this works fine for me (in validation.xml file). I see no problem with using datePattern... depends="required,date"> datePat

Re: Hmm... i will go crazy due to validation

2005-01-05 Thread Manisha Sathe
Thanks a lot Erik, a very good start for me. regards Manisha Erik Weber <[EMAIL PROTECTED]> wrote: This is not a direct answer to any of your questions but perhaps it will spur your thinking. This is an example of using a custom ("pluggable") validator that makes sure a date entry is not only

Re: Security question

2005-01-05 Thread Sylvain Colomer
I had quite a similar problem, but I didn't wanted to put security related code into my actions codes. I did that way: - I created a new Digester RuleSet (declared in web.xml: "rulesets" init-param of Struts servlet) to extend Struts configuration (struts-config.xml) file with specific security

Attributes Initialization

2005-01-05 Thread elisegev1
I have a form that needs some initialization. The form is derived from DynaValidatorForm and its properties are defined in struts- config.xml. I initialize an attribute in the 'execute' method of my 'Action' class. For some reason when the servlet container creates the page for the first tim

Re: [OT] WinCVS problem (free beer!)

2005-01-05 Thread Frank W. Zammetti
Indirectly I've thought about it... A lot of guys are using WASD at work, which is of course Eclipse-based, but I've been resisting. I've used a number of IDEs over the years, and I've always found that they get in my way far more than they help. That's just me, but it's been my experience.

Re: [OT] struts jsp tags or jstl tags..equivalent taglibs for

2005-01-05 Thread Ashish Kulkarni
Hi is there a equivalent tag library in jstl for wrote: > This document > (http://struts.apache.org/faqs/struts-el.html) talks > about > the Struts-EL tag library, that is a port of some of > the Struts tags to > use the new JSP expression language. More relevant > to your question, it > ha

RE: [OT] WinCVS problem (free beer!)

2005-01-05 Thread David G. Friedman
Frank, Ever think of using Eclipse (v3.X) ? I use it for Java/Struts/Tomcat (Via the Sysdeo plug-in) development and it includes a built-in CVS client. Add-ons also allow for SVN. Regards, David Friedman / [EMAIL PROTECTED] -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTE

Re: [OT] WinCVS problem (free beer!)

2005-01-05 Thread Matt Bathje
Glenn Wilson wrote: Hi Frank, I've run into this problem before myself. The problem I ran into was caused by the focus of my directory browser (that left-hand side browsing area) being on the root directory (C:\), and I had it set to recursively display all files in the file browser (that right

RE: [OT] WinCVS problem (free beer!)

2005-01-05 Thread Glenn Wilson
Hi Frank, I've run into this problem before myself. The problem I ran into was caused by the focus of my directory browser (that left-hand side browsing area) being on the root directory (C:\), and I had it set to recursively display all files in the file browser (that right-hand side listing)

[OT] WinCVS problem (free beer!)

2005-01-05 Thread Frank W. Zammetti
Ok, no free beer, I lied ;) Got your attention though! I'm just now trying to use CVS for the first time, and I'm having a problem I haven't been able to figure out, and I'm sure at least some of you here are using WinCVS, so I hope no one minds an OT question (FYI, I couldn't find a WinCVS sup

[OT] Approach to validation across browser versions

2005-01-05 Thread David Suarez
I may be working on a small privileged applet soon and the requirement is to ensure that it will work across various browsers/platforms (Mac/IE, PC/IE, Opera, etc. etc...). Since Java is pretty standardized I don't foresee any big issues with the testing if I use 1.3 and set the appropriate apple

Re: Does not STRUTS handle escape characters

2005-01-05 Thread Isteyaque Zahur
Hi If u want to escape characters in JSP use taglibs provided by jakarta(ie http://jakarta.apache.org/taglibs/doc/string-doc/index.html#escape) and if u want to escape String in java classes use commons-lang package (api refeence is http://jakarta.apache.org/commons/lang/api/org/apache/common

Re: Does not STRUTS handle escape characters

2005-01-05 Thread fzlists
To the best of my knowledge, struts does NOT handle this. I have faced this issue, as I'm sure many have. Here's the code I use to solve it... This is simply a static method of a Helpers class I reuse throughout most of my projects... I don't for a second claim it is the best answer, but it do

Re: Does not STRUTS handle escape characters

2005-01-05 Thread fzlists
Wasn't sure this posted the first time, apologies if this winds up a double-post... To the best of my knowledge, struts does NOT handle this. I have faced this issue, as I'm sure many have. Here's the code I use to solve it... This is simply a static method of a Helpers class I reuse througho

RE: ActionForm automatic type conversion

2005-01-05 Thread Joe Germuska
Population of an ActionForm is done using Commons BeanUtils, which has a method for registering converter classes which convert strings to objects and back. http://jakarta.apache.org/commons/beanutils/api/index.html Specifically, the work is done by o.a.struts.util.RequestUtils.populate(...), w

Re: [OT] struts jsp tags or jstl tags

2005-01-05 Thread Jeff Beal
This document (http://struts.apache.org/faqs/struts-el.html) talks about the Struts-EL tag library, that is a port of some of the Struts tags to use the new JSP expression language. More relevant to your question, it has a pretty good list of those Struts tags (mostly from the bean: and logic

[OT] struts jsp tags or jstl tags

2005-01-05 Thread Ashish Kulkarni
Hi I am working on a project, need some suggestion on using tag library which do i use struts or jstl? what is the difference , do jstl be to replace tag of struts Ashish __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more.

Re: Does not STRUTS handle escape characters

2005-01-05 Thread Jeff Beal
To my knowledge, the escape mechanisms in the Struts custom tags only handle characters that have special significance in HTML textual content, not JavaScript. It may only escape '&','<', and '>'. If it does escape "'" and '"' (I think it does), it escapes them as ''' and '"' respectively, ra

RE: ActionForm automatic type conversion

2005-01-05 Thread Bala . Paranj
ActionForm attributes are defined as Strings. In your case, a good solution would be to define an adapter class that will do the conversion from String to the appropriate type. Your business objects will use the converted data types to execute the business logic. This approach is discussed in detai

Re: New to Struts & seeking advice

2005-01-05 Thread Derek Broughton
On Tuesday 04 January 2005 12:55, Jim Barrows wrote: > > From: Mark McWiggins [mailto:[EMAIL PROTECTED] > > > *Is AppFuse worth using as a basis for a real app? I tried > > working through the tutorial and got it going, > > but it is based on Hibernate and I was told that > > Hibe

Re: [STRUTS] Another n00b Q - Selecting from dropdown & show view

2005-01-05 Thread fzlists
Depends... Do you want this all to happen on the client only, or do you want a round-trip to the server? If client-only, just wrap the optional elements in a tag, then use the onChange event of the element to show the appropriate group (you'll need to hide eerything else of course... I usuall

Does not STRUTS handle escape characters

2005-01-05 Thread Krishna Mohan Radhakrishnan
Hi all, This is a javascript function that is being called when a button called "Update" is pressed. Now if the planTitle or verbalDescription has got any apostrophe(') then it is throwing up a javascrit error that ) is expected. Does not struts handle these type of characters like ',",/ etc. D

Re: New to Struts & seeking advice

2005-01-05 Thread bryan
Hibernate is mature because it works, unlike "mature" EJB, --b On Tue, 4 Jan 2005 09:55:34 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Mark McWiggins [mailto:[EMAIL PROTECTED] > > Sent: Monday, January 03, 2005 6:19 PM > > To: user@struts.apache.o

[STRUTS] Another n00b Q - Selecting from dropdown & show view

2005-01-05 Thread Ritchie Warsito
hi there. If I were to have a dropdown select (which I don't know yet also how to populate from database), and I select an option say User. I want something (part of a form or such) to show. Example: Adding useraccounts. There are 3 roles, User, Admin & Office. Field Username, Password, Re-Enter

Re: I8N - Locale switch on any page

2005-01-05 Thread Ritchie Warsito
Jim Barrows wrote: -Original Message- From: Ritchie Warsito [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 4:36 AM To: Struts Users Mailing List Subject: I8N - Locale switch on any page Hey there, I'm studying the struts-mailreader example and as some of you might know (I ho

Re: Character encoding problems after 1.1 to 1.2.4 upgrade

2005-01-05 Thread J. Patterson Waltz III
in article [EMAIL PROTECTED], Josh Cronemeyer at [EMAIL PROTECTED] wrote on 4/01/05 18:02: > J. Patterson Waltz III wrote: > >> Merci Guillaume, >> >> I had actually seen the references to the Filter solution in the comments of >> Struts bug 16191 in Bugzilla: >> http://issues.apache.org/bugzill

Re: Validate a field only if a checkbox is checked

2005-01-05 Thread jecrotea
This is simply to enable and disable filters. The users don't want to write something to search with a criteria, then erase it, search something else and then rewrite the first thing he entered. - Jean-Francois Croteau Se

RE: Help : Thanks Joe : execute a equation in String format

2005-01-05 Thread sachin
hi Joe , Jakarta commons JEXL works perfectly with expressions .. and this saved me from creating an 'expression builder' and saved a lot of time ... Thanks a lot . cheers , Sachin Hegde Software Developer Paradyne Infotech Limited , Mumbai 09324546711 "The believer is happy. The doubter is w

Re: Hmm... i will go crazy due to validation

2005-01-05 Thread Erik Weber
This is not a direct answer to any of your questions but perhaps it will spur your thinking. This is an example of using a custom ("pluggable") validator that makes sure a date entry is not only a real date, but that the date is within a desired range (seemingly you are wanting to do something

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Neil Erdwien
I agree that if the "..." is long, or if there are lots of them, then simply repeating the code is less than ideal. On the other hand, if there are only, say, three conditions, and the code is three lines, then duplication isn't horrendous. We've all done uglier things in the push to get the j

RE: Date validation another question

2005-01-05 Thread Vaclavik Radek
Hi, this works fine for me (in validation.xml file). I see no problem with using datePattern... datePattern dd.MM. Radek > -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: We

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Pavel Kolesnikov
On 05 Jan 2005 10:47:40 +0100, Guillaume Cottenceau <[EMAIL PROTECTED]> wrote: > Neil Erdwien writes: > > > How about: > > > > > >... > > > > > >... > > > > Are you serious? When "..." is longer than say 1 or 2 lines, this Neil's answer was as well serious as

org.xmlmiddleware.schemas.dtds.DTDParser

2005-01-05 Thread Richard Jason R. Raquepo
i don't know if this question applies to struts... but im using this org.xmlmiddleware.schemas.dtds.DTDParser on my console-based java application and works ok. now i need to use it on a web application but during development i noticed that it does not run properly. i did some debugging and fou

AW: How to implement OR functionality in STRUTS

2005-01-05 Thread Leon Rosenberg
The "..." is exactly one line, because it's only a flag: ... do the things you need to do. But I fully agree that this is ugly, and should be done by a property of the bean instead: ... Alternatively feel free to make a nested "or" tag. > -Ursprüngliche Nachricht- > V

AW: How to implement OR functionality in STRUTS

2005-01-05 Thread Leon Rosenberg
The "..." is exactly one line, because it's only a flag: ... do the things you need to do. But I fully agree that this is ugly, and should be done by a property of the bean instead: ... Alternatively feel free to make a nested "or" tag. > -Ursprüngliche Nachricht- > V

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Guillaume Cottenceau
Neil Erdwien writes: > How about: > > >... > > >... > Are you serious? When "..." is longer than say 1 or 2 lines, this leads to duplicated source-code, one of the thing I think programmers should avoid with the most energy. -- Guillaume Cottenceau ---

Re: Character encoding problems after 1.1 to 1.2.4 upgrade

2005-01-05 Thread Guillaume Cottenceau
"J. Patterson Waltz III" writes: > P.S. - I know how to view the headers of replies sent from the server to the > browser, but am not sure how to get at those sent from the browser to the > server, to make sure that they are indeed UTF-8. Any suggestions? I usually temporarily modify the URL whe

Multiple Email Validation

2005-01-05 Thread hemant sharma
Hi   I was facing problem in validating multiple Email Addresses given in a form field. As the validator-rules.xml in Validator Framework contains validation for only single Email Address. I tried to modify the code of the existing Email Validator in validator-rules.xml, but it didn't work.   So

Hmm... i will go crazy due to validation

2005-01-05 Thread Manisha Sathe
I am testing struts validatior in one test program. Finally i could do some date validation for user i/p. I could get javascript pop-up if i enter it wrongly. i wanted to test server side validation - so i switched off javascript and tried to submit - it went through w/o throwing any error.

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread dsarris
Hi, use JSTL. Do not spend time with the Struts tags. here is an example: Error 1 has occurred. Error 2 has occurred. Chipix On Wed, 05 Jan 2005 01:05:30 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > Look into the expression language's Logical O

RE: Two Qs re: authentication servlet filter

2005-01-05 Thread Marco Mistroni
Hello, ^/LoginAction.do could this be the problem? Shouldn't u use * instead? Regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cancel button problem

2005-01-05 Thread Nicolas De Loof
When using cancel button, validation is automatically skipped. Use isCanceled(request) in your action to see if cancel was clicked and forward to your index page. Nico. Manisha Sathe a écrit : I am using struts cancel button. But when i click on that it goes to next page (w/o even validation -

Re: Two Qs re: authentication servlet filter

2005-01-05 Thread Nicolas De Loof
You should have a look at securityFilter that does such a job. It tries to "look like" j2ee FORM security check, but allow you to use your own authentication rules. Nico. Jim Barrows a écrit : -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January

Cancel button problem

2005-01-05 Thread Manisha Sathe
I am using struts cancel button. But when i click on that it goes to next page (w/o even validation - using validator). What i want to do is i want to redirect it to index page. I tried using oncancel inside but giving me error. How i can do this ? Thanks and regards, Manisha

Re: Set request parameters in servlet through action

2005-01-05 Thread dsarris
OK, Thanks everyone for your help. The correct approach is: Java: request.setAttribute("myThing", myThing); JSP: Thanks again On Tue, 04 Jan 2005 18:22:32 -0800, Curtis Taylor <[EMAIL PROTECTED]> wrote: > Hi, > > You *cannot* directly add parameters to an http request inside an Action > cl

Date validation another question

2005-01-05 Thread Manisha Sathe
Currently testing text box i/p for date. I do not want to make use of "datePatternStrict" so i used "datePattern" but still it is validating as per "datePatternStrict" only. It is not accepting 1/1/2005 as i/p Do i need to set anything else too ? --