RE: Date validator does not ignore nulls

2005-05-06 Thread tarek.nabil
That's strange, because the way I understand it is just the opposite. What I understand is if a validation depends on another validation, then this validation should not be triggered unless the first one succeeds. Actually, this makes sense, because it's useless to try to validate an empty field to

Re: Losing request attributes after validate()

2005-05-06 Thread Michael Jouravlev
Umm... This one pulls data from userName property of a form bean. So if the form bean has session scope, the value will be retained.. This one pulls value from portfolioName, you need to check where this object is stored, in what scope. You are right, if this object has request or page scope, th

RE: Any way to retrieve the index of html:select?

2005-05-06 Thread Slattery, Tim - BLS
> I was wondering if there is any way to retrieve the selection > index of the during the action. The value that I'm > storing is the coded value for the description that it > represents (e.g. 1 for male, 2 for female). Instead of taking the > value and hitting the database, I would like to

Any way to retrieve the index of html:select?

2005-05-06 Thread Randy Kennedy
I was wondering if there is any way to retrieve the selection index of the during the action. The value that I'm storing is the coded value for the description that it represents (e.g. 1 for male, 2 for female). Instead of taking the value and hitting the database, I would like to take the s

RE: Losing request attributes after validate()

2005-05-06 Thread Barnett, Brian W.
To the action mapping -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 1:52 PM To: Michael Jouravlev; Struts Users Mailing List Subject: Re: Losing request attributes after validate() a I see. Soam I adding scrope="session" to the Form Bean

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
also.. you're RIGHT!!! It's not working in other places either!!! here's a question. The way I thought it would work is that under the covers and before redirecting BACK to the page (assuming validate() fails) I thought it would take all the form attributes and put them back on the request to p

Slightly OT: web security-constraints

2005-05-06 Thread Vinicius Caldeira Carvalho
I was wondering... I have this configuration on my web.xml: Actions Actions *.do POST GET usuarios permitidos Administrador Encryption is not required for the application in general. NONE W

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
a I see. Soam I adding scrope="session" to the Form Bean or the Action Mapping? On 5/6/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > I do have redirect="true" set on the actionMapping that brings me to > this > > page, and tthe browser should be caching field values. > > > > the

Re: Losing request attributes after validate()

2005-05-06 Thread Michael Jouravlev
> I do have redirect="true" set on the actionMapping that brings me to this > page, and tthe browser should be caching field values. > > the weird thing is this works in other places If you want to keep redirect="true" (I personally prefer redirects for better user experience), then you may wa

Re: struts file upload

2005-05-06 Thread Woodchuck
hihi, what application server are you using? and are you forwarding requests from a web server to your application server (eg. apache/IIS --> tomcat)? woodchuck --- temp temp <[EMAIL PROTECTED]> wrote: > I am using struts and trying to upload files of any > type and size.If the server as well

Re: Validations

2005-05-06 Thread Michael Jouravlev
I guess, there are other ways, but these are off the top of my head. * Define a hidden field in each form with the same name, but different value. In the validate() method check value of the Java field, which corresponds to hidden HTML field. Validate accordingly. * for multiform page you can use

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
I actually am for one of the properties. In the page I have : and in the Action Class (right before the reditrct to this page) request.setAttribute("queryName",queryName); and it shows fine in view--> source. thn if I submit the form (wiuth an error) the hidden field is **not** populated On

RE: multiple file uploads with one property

2005-05-06 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> http://issues.apache.org/bugzilla/show_bug.cgi?id=25963 I applied the suggested patch, and tested it. Looks like it works, though I'm not exactly sure what an automated test script would like for this use case. BTW, does anyone else find the ASCII art in this test hilarious? http://tinyu

Re: Losing request attributes after validate()

2005-05-06 Thread Michael Jouravlev
Do you redirect to your form, and your form bean has request scope? Or do you just click Back browser button, and your pages are marked as non-cachable or browser is instructed not to cache field values? On 5/6/05, David Johnson <[EMAIL PROTECTED]> wrote: > Hi all > I apprear to be losing my requ

Validations

2005-05-06 Thread Rafael Taboada
Hi dear Struts list friends. I have several JSPs and all them map only one actionform. All work fine, in my actionform i have all attributes they appear in my JSPs. The problem is when i want to validate some input. For example in a JSP i have two forms and when i want to work with only the fi

Losing request attributes after validate()

2005-05-06 Thread David Johnson
Hi all I apprear to be losing my request parameters after a form submit that fails in the Validate() of my Form. Has anyone seen this before? It works fine in all the other areas of the application, it's just this one page. the result is when I come back t the page all the data is blank as if I

Local struts developer in MD/DC/VA area?

2005-05-06 Thread Vincent
Hello, Don't want to spam the list with job postings but... if you are in the DC Metropolitan area and are looking for a job working with struts based webapp, please email me or IM me at xaymaca2020 (AIM,MSN). Back to regularly scheduled broadcast. Thanks, Vincent -- Plato is my friend, Aristotle i

Re: [ANNOUNCE] Struts 1.2.7 Test Build Available

2005-05-06 Thread Niall Pemberton
In the Struts 1.2.x series we adopted the Tomcat style of release. We ship a version (say 1.2.7) and then vote on its quality. If there are any issues we don't fix that version we just roll the next one (i.e. 1.2.8). Version 1.2.6 was voted only "beta" quality since there were a issues with it -

Re: [ANNOUNCE] Struts 1.2.7 Test Build Available

2005-05-06 Thread Michael Jouravlev
While 1.2.7 is going to be released, should 1.2.6 status be changed to "stable", or there will be two beta versions? Or 1.2.7 will become "stable" and 1.2.6 will be removed from download? Michael. > At 1:18 PM +0100 5/6/05, Niall Pemberton wrote: > >The Struts 1.2.7 Test Build is now available he

Re: struts file upload

2005-05-06 Thread Dakota Jack
If you look into the basics of the URL framework in Java, you can see it is fairly easy to add support for new protocols and content types. The engineers at Sun, planning for a self-extensible browser, divided the problem into protocol handling and content handling. Handling the protocol means ma

Re: Validator not plugging in keyed values

2005-05-06 Thread Niall Pemberton
The "bundle" attribute in Commons Validator (i.e. in your validation.xml) is not supported in the current release of Struts (Version 1.2.4) which is why it isn't finding your values. This has now been implemented in the latest Struts version (version 1.2.7) which I announced today: http://www.mai

Re: Infinite loop with action mappings

2005-05-06 Thread Michael Jouravlev
Um, you pulled this from default tomcat\conf\web.xml? Because application's web.xml is processed before default web.xml, you had to explicitly process your JSPs before actions? Why don't you just change your Struts action mapping to something like controller *.do so Struts would receive ca

RE: Validator not plugging in keyed values

2005-05-06 Thread Allistair Crossley
Some more information; my message resources were declared as follows Note the use of a key on the bundle. In my JSP output of the errors I used

Fwd: struts file upload

2005-05-06 Thread Dakota Jack
-- Forwarded message -- From: Dakota Jack <[EMAIL PROTECTED]> Date: May 6, 2005 8:50 AM Subject: Re: struts file upload To: temp temp <[EMAIL PROTECTED]> If the stream to the file upload fails, then the file upload must abort. I would suggest, again, that you seriously consider w

Re: [ANNOUNCE] Struts 1.2.7 Test Build Available

2005-05-06 Thread Joe Germuska
At 1:18 PM +0100 5/6/05, Niall Pemberton wrote: The Struts 1.2.7 Test Build is now available here: http://cvs.apache.org/dist/struts/v1.2.7/ Thank you for taking the time, Niall -- this is really valuable. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow mind

Validator not plugging in keyed values

2005-05-06 Thread Allistair Crossley
Hello Again, Having a spot of bother with validating an ActionForm. It's all setup and I believe accurately. I have 2 text fields. Each are specified as needing the required rule. I do not ask my action mapping to validate. http://intranet/iq/j2ee/validator_1_1_3.dtd";>

RE: Infinite loop with action mappings

2005-05-06 Thread Allistair Crossley
I found that by placing a direct jsp mapping to Tomcat's JSP servlet, I could accomplish what I needed, so long as the URL is longer than the catch-all mapping as per the servlet spec. jsp org.apache.jasper.servlet.JspServlet fork false

Infinite loop with action mappings

2005-05-06 Thread Allistair Crossley
Hi, I have a catch-all servlet mapping to push all requests to my Struts controller in web.xml; controller /* I have 2 action mappings; When I request http://www.domain.com/view Struts finds the action mapping and delegates a forward to /views/layout.jsp. However, /views/layout.jsp i

Re: Action's set-property Tag

2005-05-06 Thread rmanchu
set-property is available when u extend ActionConfig and include your getter/setter methods. [for 1.2.x branch ] if you're using 1.3.x-dev you can use to set arbitrary properties without extending the config class. Only available for ActionConfig as of now. hopefully all config's would get this

Action's set-property Tag

2005-05-06 Thread Prashant Reddy
Struts DTD specifies : But there seems to be no API on "ActionConfig" to get the Name-Value paris set using "set-property" Tag Many Thanks for any help. -Prashant - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: ajax proj

2005-05-06 Thread ahmet hassan
Hi all, I try to use XmlHttpRequest, but I can't successfully.I have a form which is composed of 5 select boxes and on each of them, I have onchange = "submitData()" ( taken from Zammetti's sample :)).Every combo data changes each time one changes.Anyway below the code: Kurum Kodu :

[ANNOUNCE] Struts 1.2.7 Test Build Available

2005-05-06 Thread Niall Pemberton
The Struts 1.2.7 Test Build is now available here: http://cvs.apache.org/dist/struts/v1.2.7/ The release notes include highlights of changes in this version, as well as the full details of changes and bug fixes: http://struts.apache.org/userGuide/release-notes.html Once feedback has been collec

Re: Overwriting HtmlTag

2005-05-06 Thread Cliff Lam
I bind the onchange function dynamically at the client side using javascript. But I don't know if it is a good idea. Cliff - Original Message - From: "Nancy Lin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, May 04, 2005 11:59 PM Subject: Overwriting HtmlTag >