Struts 1.3 Release Date...

2006-06-22 Thread thamizh arasu
Hi All, This is a good news about Struts 1.3 is going to be released. I searched the web but i could not find the release date of struts 1.3 version. can any one tell me the release date of struts 1.3.. BY Thamizharasu S - Yahoo! Messenger wit

Re: How to check for error message in jsp

2006-06-22 Thread Scot Hale
I have found that avoiding all together helps keep your html in the JSPs instead of properties files. I used instead and ended up with something like this: * Then I also have something in a differnet markup

Re: Communicate between two struts apps

2006-06-22 Thread Monkeyden
What is this business? Monkeyden <[EMAIL PROTECTED]> 23/06/2006 07:42 AM Please respond to "Struts Users Mailing List" Here is the snippet from the raw message: ... From: Eric Dahnke <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List Subject: Re: Communicate between t

RE: file upload ACCESS DENIED (AccessControlException)

2006-06-22 Thread David Friedman
I'm glad it worked. I use Tomcat and I have not had any permissions related upload problems like that. Don't forget you should try to secure the 'write' and 'delete' permissions to the webapp (or specific directory) you are using. That way someone can't use that code to override something import

Re: Communicate between two struts apps

2006-06-22 Thread paz . periasamy
Hello All, I believe Single Sign On will be able to share Session attributes between applications. Single Sign On is supported by many application servers like Oracle, BEA, IBM, etc Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, HCL Australia Services Pty. Ltd. Off : +61-3-9

Re: Communicate between two struts apps

2006-06-22 Thread Monkeyden
AFAIK, if the applications are in two separate contexts there is no way to share data between them using a common session Not to mention, some of the Struts tags (form, link) derive context at runtime, so you don't have the ability to specify an external context. You'll be forced to do somethi

Re: Communicate between two struts apps

2006-06-22 Thread Leon Rosenberg
there are about one trillion technologies to share data between two java applications, most popular are probably RMI and CORBA. In your case I would call the second application via CORBA and register a user obtaining an unique code, than inlude this code into the link to the second webapp which t

Re: file upload ACCESS DENIED (AccessControlException)

2006-06-22 Thread zahid mohammed
Hi David, THANKS A LOTIt finally worked after I added "delete" in FilePermissions in server.policy file. Just wondering if this has to be done for other app servers too when using the File upload. How do the other app servers handle this?? Anywayz..THANX once again. Zahid. On 6/22/

RE: Communicate between two struts apps

2006-06-22 Thread Miller, Andy
I've found need to do this myself before. It ended up being a big mess. Fortunately for me I only had a few pieces of data that needed sharing back and forth, so I simply used Cookies to save myself a ton of time. However, it is not a graceful solution, and as eric has stated, it is a shortcoming.

Struts Layout

2006-06-22 Thread George Papandreou
Hello All, has anyone had any experience with the Struts Layout tag libs? Are they robust? Would you recommend using them? Also, btw, is there a better way to search the Struts archives (e.g. ala Axis 2 that provides a search text box) without having to drill-down for every month ,etc? Much

RE: file upload ACCESS DENIED (AccessControlException)

2006-06-22 Thread David Friedman
In about 60 seconds at google.com using "server.policy read,write", I found the below note that sounds relevant. Notice the "delete" etnry for permissions and how it adds a "delete" option to the file io permissions. If that does work for you, I myself would fix the "<>" to normal and see if there

Re: Communicate between two struts apps

2006-06-22 Thread Eric Dahnke
AFAIK, if the applications are in two separate contexts there is no way to share data between them using a common session. You'll be forced to do something kludgy and authenticate to both systems and maintain two sessions. I would love to see a thread started about this because it is a big

Re: file upload ACCESS DENIED (AccessControlException)

2006-06-22 Thread zahid mohammed
Hi David, Thanks for the suggestion. I have put the attribute tempDir="/temporary" in the controller element of the struts-config.xml. Even then it does'nt work. I have this line in struts-config.xml The exception now is almost the same except for the "\temporary" directory java.security.Acces

Input tag name on html contains action form name!!

2006-06-22 Thread Vijayraghav Nerella -X \(vraghav - eTouch Systems at Cisco\)
Hi, My jsp has uses 'nested:iteration' tag in order to generate input text fields. The problem is that when the html page generated from this jsp, the input tag name is beginning from action form name instead of the name of the member of the action form. Not only that, it suffixing index value to

Re: Struts 1.3.x snapshot is not available

2006-06-22 Thread Wendy Smoak
On 6/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: The 1.3.x snapshot location [1] pointed to from the 1.3.5 release page [2] results in "Not Found" response: "The requested URL /builds/struts/maven/trunk/nightly/struts-action/ was not found on this server." Was it moved to another locati

RE: Mistake of syntax in html:button

2006-06-22 Thread Miller, Andy
Well, just looking at this code, you have 2 sets of quotation marks: onclick="Enviar("<%=property%>")"> you need to do a combination of quotation marks and apostrophes... something like this: onclick="Enviar('<%=property%>')"> Andy Miller IS Designer Butte College 530.895.2946 -Original Mess

Re: [JAVA]Converting a string to date

2006-06-22 Thread Chris Cheshire
try { java.sql.Date d = new java.sql.Date(new SimpleDateFormat("dd-MMM-yy").parse("06-apr-07").getTime()); } catch (ParseException ex) { } Chris On 6/22/06, temp temp <[EMAIL PROTECTED]> wrote: I have a string which I want to convert into a date . The string 06-APR-07 How can I conver

Re: html:password not listening to value attribute

2006-06-22 Thread Scott Van Wart
Niall Pemberton wrote: Its a DynaBean - just use set("password", "") Yeah but I'd rather not do it in Java, for various reasons... - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: [JAVA]Converting a string to date

2006-06-22 Thread Miller, Andy
For oracle: to_date('06-APR-07', 'DD-MON-YY') but this is more of a sql question than a struts question ;) Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:25 AM To: user@struts.apache.org Su

Struts 1.3.x snapshot is not available

2006-06-22 Thread Michael Jouravlev
The 1.3.x snapshot location [1] pointed to from the 1.3.5 release page [2] results in "Not Found" response: "The requested URL /builds/struts/maven/trunk/nightly/struts-action/ was not found on this server." Was it moved to another location or is this a temporary technical issue? [1] http://cvs.

[JAVA]Converting a string to date

2006-06-22 Thread temp temp
I have a string which I want to convert into a date . The string 06-APR-07 How can I convert this date into sql date ? Thanks - Yahoo! Groups gets better. Check out the new email design. Plus there’s much more to come.

RE: file upload ACCESS DENIED (AccessControlException)

2006-06-22 Thread David Friedman
Zahid, I don't use that application server but I have a suggestion: change your temp file download directory. Your stack trace shows Struts is using the CommonsMultiPartRequestHandler class and I have read it has ways to change the temp directory. The Javadocs on that class list 3 ways that migh

[shale] t:commandLink issues

2006-06-22 Thread Baker,Jonathan
I am experiencing an issue when embedding a t:commandLink component in a t:dataTable/t:column. For some reason my action is failing to bind to my viewController method. If I put the exact same link outside of the table with hard-coded parameter values, the link works correctly. I have run in m

Communicate between two struts apps

2006-06-22 Thread Wen-Jung Chen
Hello, We have two struts applications which are planning to be created as two war files and deployed as one ear file on application server. We develop one struts app and other team develops another one. The requirement for us is their struts application will call our action method to invoke a wi

Re: html:password not listening to value attribute

2006-06-22 Thread Niall Pemberton
Its a DynaBean - just use set("password", "") Niall On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Hi, I have a LazyValidatorForm with a "password" property. I always want this input field to be blank when the page loads. I also can't clear the value out of the form in Java (code is t

html:password not listening to value attribute

2006-06-22 Thread Scott Van Wart
Hi, I have a LazyValidatorForm with a "password" property. I always want this input field to be blank when the page loads. I also can't clear the value out of the form in Java (code is too generic and I'd rather not hack it for this single case). So I tried: But the password shows up in

Re: file upload ACCESS DENIED (AccessControlException)

2006-06-22 Thread zahid mohammed
Hi, Does this error have to do anything with the SERVER.POLICY file? I have the following lines in the server.policy file // Basic set of required permissions granted to all remaining code grant { permission java.lang.RuntimePermission "loadLibrary.*"; permission java.lang.RuntimePermission "q

RE: How to check for error message in jsp

2006-06-22 Thread Givler, Eric
Couldn't you do something like this: Then you can interrogate that variable later as it contains the contents of the error for the field in question. If no errors, it is empty. // do something here // else do something else or use a -Original Me

Re: Validation a specific element in an String []

2006-06-22 Thread lingan
Hi , Thanks for the reply. You did understand my question. Any way i have written a custom validator . Thanks. -- View this message in context: http://www.nabble.com/Validation-a-specific-element-in-an-Stringt1824259.html#a4996461 Sent from the Struts - User forum at Nabble.com. ---

Struts validation validates wrong attributes

2006-06-22 Thread Sherwood, Reg
Hi I have a single form shared among a few jsp pages. Each jsp references the following after their form tag: Jsp0.jsp Jsp1.jsp The corresponding validation.xml is: mask ${workorder

Re: Accessing LazyValidatorForm properties with EL

2006-06-22 Thread Scott Van Wart
Niall Pemberton wrote: You can get a reference to the Map underlying the LazyValidatorForm ${myForm.map.myProperty} Excellent, thanks! - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: Struts Validator: form value1 < form value2

2006-06-22 Thread Jeremy Nix
Extra parenthesis solved my problem. Thanks for the help. Below is the validation that I added to field 1. I left it out of field2 since I did not want to see redundant error messages. ( ( (field2 == null) or ((field2 != null) and (*this* == null)) ) or (

Re: newbie question on indexed properties and validation

2006-06-22 Thread Niall Pemberton
You can do this: http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html Niall On 6/15/06, Givler, Eric <[EMAIL PROTECTED]> wrote: I was following this article (MS Powerpoint presentation by James Turner) here: http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt When,

Re: validating checkbox

2006-06-22 Thread The Jasper
On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: With multibox, all the checkboxes have the same name: A B So if none are checked, the property in the ActionForm will be String[0]. If there's a way of checking array lengths in the validwhen validator, that's all he should need, but I d

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread Niall Pemberton
On 6/22/06, The Jasper <[EMAIL PROTECTED]> wrote: The struts validator guide says you can only join 2 values with and or or. I'm guessing that means you either have to put in a lot more parentheses or that you can't use and or or more than once. I would first try parenthesizing everything. Yes

RE: Mistake of syntax in html:button

2006-06-22 Thread José María Tristán
Hello: This is the result of view source: ")"> In the jsp: <% String property = request.getParameter("property"); String optionsCollection = request.getParameter("optionsCollection"); %> -Mensaje original-

Re: Accessing LazyValidatorForm properties with EL

2006-06-22 Thread Niall Pemberton
You can get a reference to the Map underlying the LazyValidatorForm ${myForm.map.myProperty} Niall On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: I have a class MyForm extends LazyValidatorForm, mapped with name myForm to myAction: ${myForm.myProperty} The EL fails with a compla

Re: breaking a string using ?

2006-06-22 Thread Niall Pemberton
Struts doesn't have anything to do this - but maybe there is something in the Jakarta Taglibs that can: http://jakarta.apache.org/taglibs/index.html Theres a "split" tag in the String taglib that might help - it creates an array and then maybe you could use iterate with a size limit: http://jak

RE: Mistake of syntax in html:button

2006-06-22 Thread Miller, Andy
What is the value of <%=property%> when the form is generated? i.e., do a "view source" on the generated jsp and look at the values; then work backwards from there. Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED]

Re: passing input form value to error message

2006-06-22 Thread Niall Pemberton
There isn't a way to display input values using the validator framework. Also if you did it could potentially lead to your site having an XSS vulnerability: http://wiki.apache.org/struts/StrutsXssVulnerability Niall On 6/20/06, Dhanasekaran Vivekanandhan <[EMAIL PROTECTED]> wrote: Hi All, I am

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread The Jasper
The struts validator guide says you can only join 2 values with and or or. I'm guessing that means you either have to put in a lot more parentheses or that you can't use and or or more than once. I would first try parenthesizing everything. mvg, Jasper On 6/22/06, Jeremy Nix <[EMAIL PROTECTED]>

To get the session size

2006-06-22 Thread Carl Smith
I am trying to get the session size of our J2EE Struts based, and runing in WebSphere environment, application. Can some one point me what is the good way to get the session size? What tool is a good tool for using? WSAD Profiling? - Yahoo! Mess

Mistake of syntax in html:button

2006-06-22 Thread José María Tristán
Hello: This code: Aceptar it's show in the window: Aceptar ")"> Aceptar is a button but the next text don't must show. Thank you very much. - To unsubscribe, e-m

Re: How to check for error message in jsp

2006-06-22 Thread Niall Pemberton
You can use the and tags to do this - probably combined with the "property" element for specific fields: http://struts.apache.org/struts-action/struts-taglib/tlddoc/logic/messagesPresent.html Niall On 6/21/06, Dhanasekaran Vivekanandhan <[EMAIL PROTECTED]> wrote: Hi, I am using in the jsp p

Re: validating checkbox

2006-06-22 Thread Scott Van Wart
The Jasper wrote: hi, I think I shoul've looked more closely at your question. There are 2 problems I see. One is you want to make sure at least one checkbox is checked. This could be done with validwhen. The other is that checkbox values are only sent if checked, otherwise they are null. I don'

RE: textarea

2006-06-22 Thread Miller, Andy
You will also need to do server side validation if you are attempting to insert/update into a database (i.e., your users may have javascript disabled in which case a javascript test alone will not be sufficient). a Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From

Accessing LazyValidatorForm properties with EL

2006-06-22 Thread Scott Van Wart
I have a class MyForm extends LazyValidatorForm, mapped with name myForm to myAction: ${myForm.myProperty} The EL fails with a complaint about accessing myProperty of bean myForm (since there's no getMyProperty() accessor). How can I access properties with EL? I have value="${myFor

Re: validating checkbox

2006-06-22 Thread The Jasper
hi, I think I shoul've looked more closely at your question. There are 2 problems I see. One is you want to make sure at least one checkbox is checked. This could be done with validwhen. The other is that checkbox values are only sent if checked, otherwise they are null. I don't know how you woul

Re: Error to pass struts-config dtd 1.1 to 1.2

2006-06-22 Thread Niall Pemberton
There is usually more detailed info about the error in the logs. Also for upgrading from 1.1 to 1.2.x - see the wiki upgrade notes: http://wiki.apache.org/struts/StrutsUpgrade Niall On 6/21/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hello: I'll like to use struts 1.2.x. I have

Re: how to download a file

2006-06-22 Thread Niall Pemberton
http://wiki.apache.org/struts/StrutsFileDownload Niall On 6/22/06, Ed Griebel <[EMAIL PROTECTED]> wrote: Take a look at org.apache.struts.actions.DownloadAction, I created an action that extended it (and implemented the internal StreamInfo) and was able to create an action that downloaded a PDF

Re: Why My JSTL Tag Cannot Do What Struts Tag Does?

2006-06-22 Thread Ed Griebel
You don't need to do the intermediate assignment to user, it should be sufficient to do: --- --- Al

Re: how to download a file

2006-06-22 Thread Ed Griebel
Take a look at org.apache.struts.actions.DownloadAction, I created an action that extended it (and implemented the internal StreamInfo) and was able to create an action that downloaded a PDF doc in less than an hour. For creating a new file to stream, one approach is to create the temp file using

Re: Why My JSTL Tag Cannot Do What Struts Tag Does?

2006-06-22 Thread Bill Schneider
in addition, try replacing pageContext.getAttribute with .findAttribute. findAttribute searches all of page, request, session and application scope, in that order. In case , etc. happen to stick things in request scope by default, pageContext.getAttribute will return null but findAttribute wo

Re: Struts and JSTL

2006-06-22 Thread Per Jørgen Walstrøm
take a look at this thread: http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0 -Opprinnelig melding- Fra: fea jabi [mailto:[EMAIL PROTECTED] Sendt: 22. juni 2006 15:15 Til: user@struts.apache.org Emne: Struts and JSTL ${Form.map.customers} was working perfect when I was

Struts and JSTL

2006-06-22 Thread fea jabi
requestURI="PrepareAction.do" defaultsort="7" defaultorder="descending" pagesize="6"> ${Form.map.customers} was working perfect when I was using servlet 2.4 and JSTL 1.1. But now changed to servlet 2.3 and JSTL 1.0. the custs are null. Looks like ${Form.map.customers} is not getting evaluat

To close a window capturing the information

2006-06-22 Thread José María Tristán
Hello: I have a window that open a popup. When the user close the popup I want only show the first window but it's capturing the data. In the popup window I have this: function Cerrar(){