Struts 1.3 Release Date...
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 with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: How to check for error message in jsp
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 language as well, if you ever need something similar (this is for WML): On 6/22/06, Givler, Eric <[EMAIL PROTECTED]> wrote: 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 Message- From: Dhanasekaran Vivekanandhan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:23 AM To: Struts Users Mailing List Subject: How to check for error message in jsp Hi, I am using in the jsp page and using date validator plugin ,and it is showing error message as mentioned in the MessageResources.properties file.My question is I want to show ,hide some fields in the jsp page if error is occured.How to check in the jsp page if there is any error occured. any help would be appreciated tia, dhanasekaran __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Communicate between two struts apps
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 two struts apps ... On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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-9618-4085 Mob : +61-0411-354-838 Monkeyden <[EMAIL PROTECTED]> 23/06/2006 07:42 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" , [EMAIL PROTECTED] cc: Subject:Re: Communicate between two struts apps >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 something kludgy and authenticate to both systems >and maintain two sessions. I don't know if I'd refer to SSO as "something klugy" On 6/22/06, Eric Dahnke <[EMAIL PROTECTED]> wrote: > > > 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 shortcoming I come up against frequently in Java. That is, > different wars and contexts are a great way to separate and manage > different large scale projects, but when it comes time to piece it > back together as part of a large possibly modular application, yr > fcked. > > Siteminder (a proprietary product) is a way to get around this and > is Java friendly, but don't know how it works. > > > > On Thu Jun 22 13:10:18 EDT 2006, Wen-Jung Chen > <[EMAIL PROTECTED]> wrote: > > > 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 > > window on > > our side. Does anyone know how their struts app can invoke our > > action > > method? I was told that they can use url redirect by using url we > > provided > > so we can popup a window for them. Is this right way to do it? Is > > there any > > other better way to handle this since we are located in two > > different jvm? > > And also if we want to pass data back so they can display > > message on their > > screen, are we still use same way such as url direct to pass data > > as request > > parameter to them? > > > > Please help. > > > > Thanks, > > Wen-Jung > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > _ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com * Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. **
RE: file upload ACCESS DENIED (AccessControlException)
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 important somewhere else on the app server or even on the operating system itself, depending on which account your service runs as/under. -David -Original Message- From: zahid mohammed [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 5:39 PM To: Struts Users Mailing List Subject: Re: file upload ACCESS DENIED (AccessControlException) 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Communicate between two struts apps
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-9618-4085 Mob : +61-0411-354-838 Monkeyden <[EMAIL PROTECTED]> 23/06/2006 07:42 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" , [EMAIL PROTECTED] cc: Subject:Re: Communicate between two struts apps >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 something kludgy and authenticate to both systems >and maintain two sessions. I don't know if I'd refer to SSO as "something klugy" On 6/22/06, Eric Dahnke <[EMAIL PROTECTED]> wrote: > > > 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 shortcoming I come up against frequently in Java. That is, > different wars and contexts are a great way to separate and manage > different large scale projects, but when it comes time to piece it > back together as part of a large possibly modular application, yr > fcked. > > Siteminder (a proprietary product) is a way to get around this and > is Java friendly, but don't know how it works. > > > > On Thu Jun 22 13:10:18 EDT 2006, Wen-Jung Chen > <[EMAIL PROTECTED]> wrote: > > > 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 > > window on > > our side. Does anyone know how their struts app can invoke our > > action > > method? I was told that they can use url redirect by using url we > > provided > > so we can popup a window for them. Is this right way to do it? Is > > there any > > other better way to handle this since we are located in two > > different jvm? > > And also if we want to pass data back so they can display > > message on their > > screen, are we still use same way such as url direct to pass data > > as request > > parameter to them? > > > > Please help. > > > > Thanks, > > Wen-Jung > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > _ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com * Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. **
Re: Communicate between two struts apps
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 something kludgy and authenticate to both systems and maintain two sessions. I don't know if I'd refer to SSO as "something klugy" On 6/22/06, Eric Dahnke <[EMAIL PROTECTED]> wrote: 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 shortcoming I come up against frequently in Java. That is, different wars and contexts are a great way to separate and manage different large scale projects, but when it comes time to piece it back together as part of a large possibly modular application, yr fcked. Siteminder (a proprietary product) is a way to get around this and is Java friendly, but don't know how it works. On Thu Jun 22 13:10:18 EDT 2006, Wen-Jung Chen <[EMAIL PROTECTED]> wrote: > 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 > window on > our side. Does anyone know how their struts app can invoke our > action > method? I was told that they can use url redirect by using url we > provided > so we can popup a window for them. Is this right way to do it? Is > there any > other better way to handle this since we are located in two > different jvm? > And also if we want to pass data back so they can display > message on their > screen, are we still use same way such as url direct to pass data > as request > parameter to them? > > Please help. > > Thanks, > Wen-Jung > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Communicate between two struts apps
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 the browser sees. The second webapp can than test this code and react accordingly. This way both apps can be deployed on same machine or different machines or even different parts of the world and it will still work. If you dont have much data to send to the other application (only userid for example) you could encrypt this data with an encryption algorithm (blowfish?) and decrypt it on the other side. regards Leon On 6/22/06, Miller, Andy <[EMAIL PROTECTED]> wrote: 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... Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: Eric Dahnke [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 12:45 PM To: Struts Users Mailing List Subject: Re: Communicate between two struts apps 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 shortcoming I come up against frequently in Java. That is, different wars and contexts are a great way to separate and manage different large scale projects, but when it comes time to piece it back together as part of a large possibly modular application, yr fcked. Siteminder (a proprietary product) is a way to get around this and is Java friendly, but don't know how it works. On Thu Jun 22 13:10:18 EDT 2006, Wen-Jung Chen <[EMAIL PROTECTED]> wrote: > 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 > window on > our side. Does anyone know how their struts app can invoke our > action > method? I was told that they can use url redirect by using url we > provided > so we can popup a window for them. Is this right way to do it? Is > there any > other better way to handle this since we are located in two > different jvm? > And also if we want to pass data back so they can display > message on their > screen, are we still use same way such as url direct to pass data > as request > parameter to them? > > Please help. > > Thanks, > Wen-Jung > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file upload ACCESS DENIED (AccessControlException)
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/06, David Friedman <[EMAIL PROTECTED]> wrote: 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 was some way to ensure the "delete" option only applied to my webapp for security reasons. After all, who would want to potentially give write(and mofify) or delete permission to every file/class/jar/etc.? Regards, David The below note was found at http://publib.boulder.ibm.com/infocenter/wpdoc/v510/topic/com.ibm.wp.ent.doc /wps/wpsdirstr.html#wpsdirstr__was_profile_root == begin note == Example 3 Minimum requirement for Struts Portlet Framework: grant codeBase "file:${application}" { permission java.util.PropertyPermission "user.language", "read, write"; permission java.util.PropertyPermission "org.apache.commons.logging.LogFactory", "read"; permission java.lang.RuntimePermission "accessDeclaredMembers"; // The following permission (specifically the delete permission) // allows the FileUpload example to function, since it must be // able to delete temporary files. You should probably comment // this out if your application does not need it. At the least, //consider limiting the permission granted to specific files or // directories. permission java.io.FilePermission "<>", "read,write,delete"; }; == end note == Regards, David -Original Message- From: zahid mohammed [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 3:38 PM To: Struts Users Mailing List Subject: Re: file upload ACCESS DENIED (AccessControlException) 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.AccessControlException: access denied (java.io.FilePermission\temporary\upload_.tmp delete) at java.security.AccessControlContext.checkPermission( AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java :401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkDelete(SecurityManager.java:982) at java.io.File.deleteOnExit(File.java:879) . PLEASE HELP!!! Thanks. Zahid. On 6/22/06, David Friedman <[EMAIL PROTECTED]> wrote: > > 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 might > help > you change the directory to another directory such as /tmp. Those ways > are: > > A temp dir explicitly defined either using the tempDir servlet init param, > or the tempDir attribute of the element in the Struts config > file. > > The container-specified temp dir, obtained from the > javax.servlet.context.tempdir servlet context attribute. > > The temp dir specified by the java.io.tmpdir system property. > > I hope this helps. > -David > > -Original Message- > From: zahid mohammed [mailto:[EMAIL PROTECTED] > To: Struts Users Mailing List > Subject: Re: file upload ACCESS DENIED (AccessControlException) > > Hi, > > I am trying to upload a file using File upload. I get the > > AccessControlException (access denied). We are using Sun One App Server > > 7.0 and Struts 1.2.9. > > > > java.security.AccessControlException: access denied > (java.io.FilePermission > > C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-apps\AppName\Ap > pName_war\upload_.tmp delete)> > at java.security.AccessControlContext.checkPermission > > (AccessControlContext.java:269) > > at > java.security.AccessController.checkPermission(AccessController.java :401) > > at java.lang.SecurityManager.checkPermission( SecurityManager.java > :524) > > at java.lang.SecurityManager.checkDelete > > (SecurityManager.java:982) > > at java.io.File.deleteOnExit(File.java:879) > > at > org.apache.commons.fileupload.DefaultFileItem.getTempFile( > DefaultFileItem.ja > va:620) > > at org.apache.commons.fileupload.DefaultFileItem.getOutputStream > > (DefaultFileItem.java:557) > >
RE: Communicate between two struts apps
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... Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: Eric Dahnke [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 12:45 PM To: Struts Users Mailing List Subject: Re: Communicate between two struts apps 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 shortcoming I come up against frequently in Java. That is, different wars and contexts are a great way to separate and manage different large scale projects, but when it comes time to piece it back together as part of a large possibly modular application, yr fcked. Siteminder (a proprietary product) is a way to get around this and is Java friendly, but don't know how it works. On Thu Jun 22 13:10:18 EDT 2006, Wen-Jung Chen <[EMAIL PROTECTED]> wrote: > 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 > window on > our side. Does anyone know how their struts app can invoke our > action > method? I was told that they can use url redirect by using url we > provided > so we can popup a window for them. Is this right way to do it? Is > there any > other better way to handle this since we are located in two > different jvm? > And also if we want to pass data back so they can display > message on their > screen, are we still use same way such as url direct to pass data > as request > parameter to them? > > Please help. > > Thanks, > Wen-Jung > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Layout
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 appreciated, George. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file upload ACCESS DENIED (AccessControlException)
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 was some way to ensure the "delete" option only applied to my webapp for security reasons. After all, who would want to potentially give write(and mofify) or delete permission to every file/class/jar/etc.? Regards, David The below note was found at http://publib.boulder.ibm.com/infocenter/wpdoc/v510/topic/com.ibm.wp.ent.doc /wps/wpsdirstr.html#wpsdirstr__was_profile_root == begin note == Example 3 Minimum requirement for Struts Portlet Framework: grant codeBase "file:${application}" { permission java.util.PropertyPermission "user.language", "read, write"; permission java.util.PropertyPermission "org.apache.commons.logging.LogFactory", "read"; permission java.lang.RuntimePermission "accessDeclaredMembers"; // The following permission (specifically the delete permission) // allows the FileUpload example to function, since it must be // able to delete temporary files. You should probably comment // this out if your application does not need it. At the least, //consider limiting the permission granted to specific files or // directories. permission java.io.FilePermission "<>", "read,write,delete"; }; == end note == Regards, David -Original Message- From: zahid mohammed [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 3:38 PM To: Struts Users Mailing List Subject: Re: file upload ACCESS DENIED (AccessControlException) 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.AccessControlException: access denied (java.io.FilePermission\temporary\upload_.tmp delete) at java.security.AccessControlContext.checkPermission( AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkDelete(SecurityManager.java:982) at java.io.File.deleteOnExit(File.java:879) . PLEASE HELP!!! Thanks. Zahid. On 6/22/06, David Friedman <[EMAIL PROTECTED]> wrote: > > 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 might > help > you change the directory to another directory such as /tmp. Those ways > are: > > A temp dir explicitly defined either using the tempDir servlet init param, > or the tempDir attribute of the element in the Struts config > file. > > The container-specified temp dir, obtained from the > javax.servlet.context.tempdir servlet context attribute. > > The temp dir specified by the java.io.tmpdir system property. > > I hope this helps. > -David > > -Original Message- > From: zahid mohammed [mailto:[EMAIL PROTECTED] > To: Struts Users Mailing List > Subject: Re: file upload ACCESS DENIED (AccessControlException) > > Hi, > > I am trying to upload a file using File upload. I get the > > AccessControlException (access denied). We are using Sun One App Server > > 7.0 and Struts 1.2.9. > > > > java.security.AccessControlException: access denied > (java.io.FilePermission > > C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-apps\AppName\Ap > pName_war\upload_.tmp delete)> > at java.security.AccessControlContext.checkPermission > > (AccessControlContext.java:269) > > at > java.security.AccessController.checkPermission(AccessController.java:401) > > at java.lang.SecurityManager.checkPermission(SecurityManager.java > :524) > > at java.lang.SecurityManager.checkDelete > > (SecurityManager.java:982) > > at java.io.File.deleteOnExit(File.java:879) > > at > org.apache.commons.fileupload.DefaultFileItem.getTempFile( > DefaultFileItem.ja > va:620) > > at org.apache.commons.fileupload.DefaultFileItem.getOutputStream > > (DefaultFileItem.java:557) > > at > org.apache.commons.fileupload.FileUploadBase.parseRequest( > FileUploadBase.jav > a:391) > > at > org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest > (Common > sMultipartRequestHandler.java > > :193) > > at org.apache.struts.util.RequestUtils.populate(RequestUtils.java > :442) > > > ---
Re: Communicate between two struts apps
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 shortcoming I come up against frequently in Java. That is, different wars and contexts are a great way to separate and manage different large scale projects, but when it comes time to piece it back together as part of a large possibly modular application, yr fcked. Siteminder (a proprietary product) is a way to get around this and is Java friendly, but don't know how it works. On Thu Jun 22 13:10:18 EDT 2006, Wen-Jung Chen <[EMAIL PROTECTED]> wrote: 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 window on our side. Does anyone know how their struts app can invoke our action method? I was told that they can use url redirect by using url we provided so we can popup a window for them. Is this right way to do it? Is there any other better way to handle this since we are located in two different jvm? And also if we want to pass data back so they can display message on their screen, are we still use same way such as url direct to pass data as request parameter to them? Please help. Thanks, Wen-Jung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file upload ACCESS DENIED (AccessControlException)
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.AccessControlException: access denied (java.io.FilePermission\temporary\upload_.tmp delete) at java.security.AccessControlContext.checkPermission( AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkDelete(SecurityManager.java:982) at java.io.File.deleteOnExit(File.java:879) . PLEASE HELP!!! Thanks. Zahid. On 6/22/06, David Friedman <[EMAIL PROTECTED]> wrote: 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 might help you change the directory to another directory such as /tmp. Those ways are: A temp dir explicitly defined either using the tempDir servlet init param, or the tempDir attribute of the element in the Struts config file. The container-specified temp dir, obtained from the javax.servlet.context.tempdir servlet context attribute. The temp dir specified by the java.io.tmpdir system property. I hope this helps. -David -Original Message- From: zahid mohammed [mailto:[EMAIL PROTECTED] To: Struts Users Mailing List Subject: Re: file upload ACCESS DENIED (AccessControlException) > Hi, > I am trying to upload a file using File upload. I get the > AccessControlException (access denied). We are using Sun One App Server > 7.0 and Struts 1.2.9. > > java.security.AccessControlException: access denied (java.io.FilePermission C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-apps\AppName\Ap pName_war\upload_.tmp delete) > at java.security.AccessControlContext.checkPermission > (AccessControlContext.java:269) > at java.security.AccessController.checkPermission(AccessController.java:401) > at java.lang.SecurityManager.checkPermission(SecurityManager.java :524) > at java.lang.SecurityManager.checkDelete > (SecurityManager.java:982) > at java.io.File.deleteOnExit(File.java:879) > at org.apache.commons.fileupload.DefaultFileItem.getTempFile( DefaultFileItem.ja va:620) > at org.apache.commons.fileupload.DefaultFileItem.getOutputStream > (DefaultFileItem.java:557) > at org.apache.commons.fileupload.FileUploadBase.parseRequest( FileUploadBase.jav a:391) > at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest (Common sMultipartRequestHandler.java > :193) > at org.apache.struts.util.RequestUtils.populate(RequestUtils.java :442) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Input tag name on html contains action form name!!
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 the action form name. This is causing my form submission to fail. Did any one face similar issue? What could be the problem here? My jsp looks like this: . . . . . .. . . . . Html generated looks like this: . . . . . . . ... .. Please note the extra 'saveActionForm[..]' in the detail columns input tag. This should not be there. I have tried to use iterate without the 'name' attribute, it is still giving same problem. Any clue on this strange behavior would benefit me a lot. What am I missing? Why is it prefixing the Action Form name to the field name? I am using stuts 1.2.7 Thanks in advance Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.x snapshot is not available
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 location or is this a temporary technical issue? [1] http://cvs.apache.org/builds/struts/maven/trunk/nightly/struts-action/ [2] http://wiki.apache.org/struts/StrutsActionRelease135 There is a thread on the dev list about this. James is working on the nightly builds and things are moving around. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mistake of syntax in html:button
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 Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 8:03 AM To: 'Struts Users Mailing List' Subject: RE: Mistake of syntax in html:button Hello: This is the result of view source: ")"> In the jsp: <% String property = request.getParameter("property"); String optionsCollection = request.getParameter("optionsCollection"); %> -Mensaje original- De: Miller, Andy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 22 de junio de 2006 16:53 Para: Struts Users Mailing List Asunto: RE: Mistake of syntax in html:button 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] Sent: Thursday, June 22, 2006 7:48 AM To: user@struts.apache.org Subject: Mistake of syntax in html:button 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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JAVA]Converting a string to date
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 convert this date into sql date ? Thanks - Yahoo! Groups gets better. Check out the new email design. Plus there's much more to come. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:password not listening to value attribute
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 PROTECTED]
RE: [JAVA]Converting a string to date
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 Subject: [JAVA]Converting a string to date 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 1.3.x snapshot is not available
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.apache.org/builds/struts/maven/trunk/nightly/struts-action/ [2] http://wiki.apache.org/struts/StrutsActionRelease135 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[JAVA]Converting a string to date
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 theres much more to come.
RE: file upload ACCESS DENIED (AccessControlException)
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 might help you change the directory to another directory such as /tmp. Those ways are: A temp dir explicitly defined either using the tempDir servlet init param, or the tempDir attribute of the element in the Struts config file. The container-specified temp dir, obtained from the javax.servlet.context.tempdir servlet context attribute. The temp dir specified by the java.io.tmpdir system property. I hope this helps. -David -Original Message- From: zahid mohammed [mailto:[EMAIL PROTECTED] To: Struts Users Mailing List Subject: Re: file upload ACCESS DENIED (AccessControlException) > Hi, > I am trying to upload a file using File upload. I get the > AccessControlException (access denied). We are using Sun One App Server > 7.0 and Struts 1.2.9. > > java.security.AccessControlException: access denied (java.io.FilePermission C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-apps\AppName\Ap pName_war\upload_.tmp delete) > at java.security.AccessControlContext.checkPermission > (AccessControlContext.java:269) > at java.security.AccessController.checkPermission(AccessController.java:401) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) > at java.lang.SecurityManager.checkDelete > (SecurityManager.java:982) > at java.io.File.deleteOnExit(File.java:879) > at org.apache.commons.fileupload.DefaultFileItem.getTempFile(DefaultFileItem.ja va:620) > at org.apache.commons.fileupload.DefaultFileItem.getOutputStream > (DefaultFileItem.java:557) > at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.jav a:391) > at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Common sMultipartRequestHandler.java > :193) > at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:442) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[shale] t:commandLink issues
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 my debugger and discovered that during the ApplyRequestValues phase while trying to decode the components submitted, we work our way into the processDecodes method of UIData. This eventually calls a method called processColumnChildren which should process each column and the components contained within. I created a table that only contains one row for simplicity. This method is supposed to get every component for a given row and process their decode methods. The problem is that before it process a row it checks to see if the row is currently available. This calls dataModel.isRowAvailable. Somehow I have an instance of emptyDataModel, which always returns false to isRowAvailable, so my linkComponent is never decoded. Why is my datamodel always becoming the EmptyDataModel. During rendering it has no problem finding my backing beans to populate the view, it just can't find it during the applyrequestvalues step. JB
Communicate between two struts apps
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 window on our side. Does anyone know how their struts app can invoke our action method? I was told that they can use url redirect by using url we provided so we can popup a window for them. Is this right way to do it? Is there any other better way to handle this since we are located in two different jvm? And also if we want to pass data back so they can display message on their screen, are we still use same way such as url direct to pass data as request parameter to them? Please help. Thanks, Wen-Jung
Re: html:password not listening to value attribute
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 too generic and I'd rather not hack it for this single case). So I tried: But the password shows up in the field anyways... [* ] and all that fun stuff. I don't mind clearing the property in the .jsp, but after finding out how to get properties out of a LazyValidatorForm (${form.map.property}), I find I don't know how to SET the property of a LazyValidatorForm (JSTL/Struts taglibs/jsp: directives are all fine) in a .jsp. Ideas? Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:password not listening to value attribute
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 the field anyways... [* ] and all that fun stuff. I don't mind clearing the property in the .jsp, but after finding out how to get properties out of a LazyValidatorForm (${form.map.property}), I find I don't know how to SET the property of a LazyValidatorForm (JSTL/Struts taglibs/jsp: directives are all fine) in a .jsp. Ideas? Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file upload ACCESS DENIED (AccessControlException)
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 "queuePrintJob"; permission java.net.SocketPermission"*", "connect"; permission java.io.FilePermission "<>", "read,write"; permission java.util.PropertyPermission "*", "read"; permission java.lang.RuntimePermission "modifyThreadGroup"; }; Its already mentioned "read,write" for FilePermission. I have found a similar thread in the archives but there is no solution.. http://marc.theaimsgroup.com/?l=struts-user&m=105705470300370&w=2 GURUS PLEASE HELP Thanks. On 6/21/06, zahid mohammed <[EMAIL PROTECTED]> wrote: Hi, I am trying to upload a file using File upload. I get the AccessControlException (access denied). We are using Sun One App Server 7.0 and Struts 1.2.9. java.security.AccessControlException: access denied (java.io.FilePermission C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-apps\AppName\AppName_war\upload_.tmp delete) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkDelete (SecurityManager.java:982) at java.io.File.deleteOnExit(File.java:879) at org.apache.commons.fileupload.DefaultFileItem.getTempFile(DefaultFileItem.java:620) at org.apache.commons.fileupload.DefaultFileItem.getOutputStream (DefaultFileItem.java:557) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:391) at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java :193) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:442) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:203) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service (HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720) at org.apache.catalina.core.StandardWrapperValve.access$000 (StandardWrapperValve.java:118) at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:274) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process (NSAPIProcessor.java:158) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598) In the jsp I have Please Help!!! Thanks
RE: How to check for error message in jsp
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 Message- From: Dhanasekaran Vivekanandhan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:23 AM To: Struts Users Mailing List Subject: How to check for error message in jsp Hi, I am using in the jsp page and using date validator plugin ,and it is showing error message as mentioned in the MessageResources.properties file.My question is I want to show ,hide some fields in the jsp page if error is occured.How to check in the jsp page if there is any error occured. any help would be appreciated tia, dhanasekaran __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation a specific element in an String []
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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts validation validates wrong attributes
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 ${workordernumber} The code that is generated from this tag refers to the correct validations for the given page; but upon validation of the Jsp1.jsp form; it seems that the validations specific to Jsp0.jsp are excuted. Reviewing the generated code on Jsp1.jsp the correct validations are listed in the resulting file. Also, if I include onsubmit="return validateWorkOrderForm(this);" in the Jsp1.jsp file... Within the html:form tag the correct validations fire; but the results are displayed in a popup. So, why does struts seem to fire the previous forms validations if I don't do the onsubmit call and fire the correct ones when I do include that. My application wants to display the error messages via html. My other ooption is to have many many forms each specific to a screen... Something which I would like to avoid. Any help would be appreciated. Thanks in advance Reg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing LazyValidatorForm properties with EL
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: [EMAIL PROTECTED]
RE: Struts Validator: form value1 < form value2
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 ( ((field2 != null) and (*this* != null)) and (*this* <= field2) ) ) _ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 x1158 -Original Message- From: The Jasper [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:50 AM To: Struts Users Mailing List Subject: Re: Struts Validator: form value1 < form value2 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]> wrote: > I'm trying the following validation, and it is giving me a syntax error: > "line 1:87: expecting RPAREN, found 'and'". Am I going about this > wrong? > > > > test > > > > > > > > test > > > > > > _ > Jeremy Nix > Senior Application Developer > Southwest Financial Services, Ltd. > (513) 621-6699 x1158 > -Original Message- > From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 22, 2006 4:01 AM > To: Struts Users Mailing List > Subject: Re: Struts Validator: form value1 < form value2 > > Yeah validwhen can do it. anyway these antlr expressions are not very > intuitive. > If You have a problem let me kow i will try to help > > 2006/6/22, The Jasper <[EMAIL PROTECTED]>: > > > > hi, > > the validwhen validator can do what you want. > > > > mvg, > > Jasper > > > > On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> > wrote: > > > Hi there, > > > You can write a custom validator in Struts to do that, it's rather > easy, > > > both client-side and server-side. Open the jar of commons-validator > to > > > see some script for existed validation rule should help. > > > Regards. > > > Tinh > > > Jeremy Nix wrote: > > > > How can I use the Struts Validator to enforce the above rule? > Neither > > > > of the fields are required, but if both are given, they must > adhere to > > > > the given rule. > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > > > _ > > > > > > > > Jeremy Nix > > > > > > > > Senior Application Developer > > > > > > > > Southwest Financial Services, Ltd. > > > > > > > > (513) 621-6699 x1158 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question on indexed properties and validation
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, I tried to cobble this all into a working example, if I left out multiple values (in a four record grid), I'd get one struts validation error back from validator. Is this the "normal" behavior when the properties are indexed? My ultimate goal would be to either show the message: LastName is required for record # {0} (and use the index here) OR: use the new ErrorStyle tag and highlight any field in error and provide the single error at the top. Can anyone point me to a working example of a multi record entry screen that has this type of behavior, or even decent articles on multi-record edits with validation/error handling (using validator or otherwise)? Thanks! Eric Givler Department of Environmental Protection/PA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validating checkbox
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 don't know, as I've never done it myself. You can do something with IndexedListProperty, but I'm not sure how you would use that here. You can also use individual checkbox fields with diffrent name, but that sounds messy. the html:multibox definition says: In order to correctly recognize cases where none of the associated checkboxes are selected, the ActionForm bean associated with this form must include a statement setting the corresponding array to zero length in the reset() method. This seems to imply that you can probably check if it is null. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator: form value1 < form value2
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 it evaluates pairs - so you need more parentheses as Jasper says. Theres a validwhen example in the struts-examples webapp shipped with the binary distro. Niall mvg, Jasper On 6/22/06, Jeremy Nix <[EMAIL PROTECTED]> wrote: > I'm trying the following validation, and it is giving me a syntax error: > "line 1:87: expecting RPAREN, found 'and'". Am I going about this > wrong? > > > > test > > > > > > > > test > > > > > > -Original Message- > From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 22, 2006 4:01 AM > To: Struts Users Mailing List > Subject: Re: Struts Validator: form value1 < form value2 > > Yeah validwhen can do it. anyway these antlr expressions are not very > intuitive. > If You have a problem let me kow i will try to help > > 2006/6/22, The Jasper <[EMAIL PROTECTED]>: > > > > hi, > > the validwhen validator can do what you want. > > > > mvg, > > Jasper > > > > On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> > wrote: > > > Hi there, > > > You can write a custom validator in Struts to do that, it's rather > easy, > > > both client-side and server-side. Open the jar of commons-validator > to > > > see some script for existed validation rule should help. > > > Regards. > > > Tinh > > > Jeremy Nix wrote: > > > > How can I use the Struts Validator to enforce the above rule? > Neither > > > > of the fields are required, but if both are given, they must > adhere to > > > > the given rule. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mistake of syntax in html:button
Hello: This is the result of view source: ")"> In the jsp: <% String property = request.getParameter("property"); String optionsCollection = request.getParameter("optionsCollection"); %> -Mensaje original- De: Miller, Andy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 22 de junio de 2006 16:53 Para: Struts Users Mailing List Asunto: RE: Mistake of syntax in html:button 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] Sent: Thursday, June 22, 2006 7:48 AM To: user@struts.apache.org Subject: Mistake of syntax in html:button 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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing LazyValidatorForm properties with EL
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 complaint about accessing myProperty of bean myForm (since there's no getMyProperty() accessor). How can I access properties with EL? I have But naturally, this fails as well. Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: breaking a string using ?
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://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html#split Alternatively you could write your own custom tag. Niall On 6/22/06, Kavita Mehta <[EMAIL PROTECTED]> wrote: Hi,i have a requirement where i need to display just the first two lines of a multi line string (e.g. exception stack trace) . currently, i am displaying the whole string using a collection & . Is it possible in struts to display just the first few characters/lines of this string instead of the whole one.. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mistake of syntax in html:button
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] Sent: Thursday, June 22, 2006 7:48 AM To: user@struts.apache.org Subject: Mistake of syntax in html:button 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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: passing input form value to error message
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 using struts1.2.9, and one of the form input value is date field and i want to show the error message, "Date entered,0909200 is not a valid date", if the date entered in the form is 0909200. I am using the datePattern validator plugin.I dont know how to pass the user input date value to error message defined in .properties file. Any help wolud be appreciated. TIA, dhanasekaran __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator: form value1 < form value2
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]> wrote: I'm trying the following validation, and it is giving me a syntax error: "line 1:87: expecting RPAREN, found 'and'". Am I going about this wrong? test test _ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 x1158 -Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 4:01 AM To: Struts Users Mailing List Subject: Re: Struts Validator: form value1 < form value2 Yeah validwhen can do it. anyway these antlr expressions are not very intuitive. If You have a problem let me kow i will try to help 2006/6/22, The Jasper <[EMAIL PROTECTED]>: > > hi, > the validwhen validator can do what you want. > > mvg, > Jasper > > On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote: > > Hi there, > > You can write a custom validator in Struts to do that, it's rather easy, > > both client-side and server-side. Open the jar of commons-validator to > > see some script for existed validation rule should help. > > Regards. > > Tinh > > Jeremy Nix wrote: > > > How can I use the Struts Validator to enforce the above rule? Neither > > > of the fields are required, but if both are given, they must adhere to > > > the given rule. > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > _ > > > > > > Jeremy Nix > > > > > > Senior Application Developer > > > > > > Southwest Financial Services, Ltd. > > > > > > (513) 621-6699 x1158 > > > > > > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
To get the session size
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! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Mistake of syntax in html:button
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-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to check for error message in jsp
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 page and using date validator plugin ,and it is showing error message as mentioned in the MessageResources.properties file.My question is I want to show ,hide some fields in the jsp page if error is occured.How to check in the jsp page if there is any error occured. any help would be appreciated tia, dhanasekaran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validating checkbox
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't know how you would combine this with html:multibox, but with multiple checkbox fields you should be able to check that at least one is selected. I haven't gone any deeper than that. Maybe a custom validator would work better for you, but I think it can be done with the standard validators. 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 don't know, as I've never done it myself. - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: textarea
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: Mukta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 9:42 PM To: 'Struts Users Mailing List' Subject: RE: textarea Use following javascript function to limit the number of characters to 255 in a textbox: function checkLength(name) { var textBox = document.getElementsByName(name)[0].value; if (textBox.length>255) { document.getElementsByName(name)[0].value = textBox.substring(0,255); } } And call this function on onkeyup="checkLength('textareaName');" onmouseout="checkLength('textareaName');" -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 3:48 PM To: Struts Mailing list Subject: textarea how can i set the maximum number of chars in a textarea. i can only set columns and rows. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing LazyValidatorForm properties with EL
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="${myForm.myProperty}" /> But naturally, this fails as well. Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validating checkbox
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 would combine this with html:multibox, but with multiple checkbox fields you should be able to check that at least one is selected. I haven't gone any deeper than that. Maybe a custom validator would work better for you, but I think it can be done with the standard validators. mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi jasper, S I have tried with required validator. It s not working. regards, Mansoor -Original Message- From: The Jasper [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 1:30 PM To: Struts Users Mailing List Subject: Re: validating checkbox hi, have you tried the required validator? mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Dear all, > How can I validate atleast one checkbox should be selected b4 form > submited. I am using html:multibox. > > regards, > Mansoor > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error to pass struts-config dtd 1.1 to 1.2
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 struts 1.1. I replace the jars and the tld. In the struts-config I write: http://struts.apache.org/dtds/struts-config_1_2.dtd";> before I have: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> In the web.xml I have: action *.do and the explorer return this error: No está disponible el Servlet action Not available the Servlet action Thank you very much - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to download a file
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 doc in less than an hour. For creating a new file to stream, one approach is to create the temp file using (untested, of course): File dir = new File(request.getSession().getServletContext().getRealPath(".")); File tmp = File.createTempFile("web",null,dir); tmp.deleteOnExit(); You may not have rights to write to the web server's root directory, you might be able to get away with "File tmp = File.createTempFile("web", null);" Store the data to this temp file, passing the file as a stream in the aformentioned StreamInfo object. To eliminate creating the temp file, stream the file directly without having an intermediate file. -ed On 6/22/06, Kavita Mehta <[EMAIL PROTECTED]> wrote: > my requirement is to save some lines on the server in a file and then > download it to the client's PC . can anybdy suggest how to go abt it > thanks > Kavita > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why My JSTL Tag Cannot Do What Struts Tag Does?
You don't need to do the intermediate assignment to user, it should be sufficient to do: --- --- Also, the convention is to keep var names lowercase, as in wrote: I am able to display a List of object returned from the database using the Struts tags: [code] . <%@ page import=".common.pojo.user.User" %> <% List user = (List)request.getAttribute("Users"); pageContext.setAttribute("Users", user); %> . . .. [/code] But, when I use JSTL tags to do the same thing, I cannot display my data. I mean, I do "not" get any JSP error. I can see each row in a table, but it is complete blank in every single column for every single row. I "did" import the JSTL tag library. And the JSTL tag library exists and works in other JSPs. Please help me to see what went wrong. Here is my JSTL code (I am typing my code and there may be typos. Anyway, no error is given in the browser.): [code] . <%@ taglib uri="/tags/core" prefix="c" %> <%@ page import=".common.pojo.user.User" %> ... . <% User user = (User)pageContext.getAttribute( "user" ); %> .. [/code] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to download a file
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 (untested, of course): File dir = new File(request.getSession().getServletContext().getRealPath(".")); File tmp = File.createTempFile("web",null,dir); tmp.deleteOnExit(); You may not have rights to write to the web server's root directory, you might be able to get away with "File tmp = File.createTempFile("web", null);" Store the data to this temp file, passing the file as a stream in the aformentioned StreamInfo object. To eliminate creating the temp file, stream the file directly without having an intermediate file. -ed On 6/22/06, Kavita Mehta <[EMAIL PROTECTED]> wrote: my requirement is to save some lines on the server in a file and then download it to the client's PC . can anybdy suggest how to go abt it thanks Kavita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why My JSTL Tag Cannot Do What Struts Tag Does?
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 would work. -- Bill . <% User user = (User)pageContext.getAttribute( "user" ); %> I don't use this method at all (I prefer jsp:useBean), but maybe the "user" in getAttribute() should be capitalized as "User"? - Scott -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd. College Park, MD 20740 [EMAIL PROTECTED] t: 240-737-1640 f: 301-699-3180 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts and JSTL
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 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 evaluated right now. How should this be? does it have to be different??? Thanks. _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts and JSTL
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 evaluated right now. How should this be? does it have to be different??? Thanks. _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
To close a window capturing the information
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(){ window.close; } If I don't call a javascript function, i call to submit "Aceptar", it's ok but when i call to the sumit "Algo" struts return this error: No action instance for path /coffeenet/SeguimientoComercial/blank could be created Thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to download a file
my requirement is to save some lines on the server in a file and then download it to the client's PC . can anybdy suggest how to go abt it thanks Kavita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: disabled button-style
Hi, Closing the issue with the following resolution. Instead of disabling the button , we can call "#" on click. After Change: document.myForm.add.onclick="#"; Before change: document.myForm.add.disabled = true; Regards, Nagesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 4:40 PM To: user@struts.apache.org Subject: disabled button-style Hi, I did a search on Net and observed that "text-shadow:none" can actually do this. But it is not supported in any available browser and it is defined in CSS2(not avialble in CSS1). Any round about is available? Regards, Nagesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 12:48 PM To: user@struts.apache.org Subject: disabled button HI , I want to set a different property in CSS for a disabled button. My requirement is the button should look like an active button (text decoration , back ground etc..) but should be disabled state. I can switch over to a different class in CSS when the button is disabled. In a disabled button the text is looking horrible because of the shadow/ 3d property of text and also the colour of text is dim. any idea / references? regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Menuitems being overlapped: please help
hi, Am using menuitems in my application which is menuitems.jsp. But when am opening any menuitem from that and if that jsp has any select boxes or text boxes on top, menuitems are getting overlapped with these select boxes. Actually in one of my jsps, i have a fieldset which has two selects displayed when the page is loaded. When this page is loaded, if i try to navigate to any other menu item, these selects are overlapping the menuitems. Please tel me how to control that. Thanks and Regards, MSV Lakshmi. - Yahoo! India Answers: Share what you know. Learn something new Click here Catch all the FIFA World Cup 2006 action on Yahoo! India Click here
RE: Struts Validator: form value1 < form value2
I'm trying the following validation, and it is giving me a syntax error: "line 1:87: expecting RPAREN, found 'and'". Am I going about this wrong? test test _ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 x1158 -Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 4:01 AM To: Struts Users Mailing List Subject: Re: Struts Validator: form value1 < form value2 Yeah validwhen can do it. anyway these antlr expressions are not very intuitive. If You have a problem let me kow i will try to help 2006/6/22, The Jasper <[EMAIL PROTECTED]>: > > hi, > the validwhen validator can do what you want. > > mvg, > Jasper > > On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote: > > Hi there, > > You can write a custom validator in Struts to do that, it's rather easy, > > both client-side and server-side. Open the jar of commons-validator to > > see some script for existed validation rule should help. > > Regards. > > Tinh > > Jeremy Nix wrote: > > > How can I use the Struts Validator to enforce the above rule? Neither > > > of the fields are required, but if both are given, they must adhere to > > > the given rule. > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > _ > > > > > > Jeremy Nix > > > > > > Senior Application Developer > > > > > > Southwest Financial Services, Ltd. > > > > > > (513) 621-6699 x1158 > > > > > > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
breaking a string using ?
Hi,i have a requirement where i need to display just the first two lines of a multi line string (e.g. exception stack trace) . currently, i am displaying the whole string using a collection & name="logEntriesCollection"/> . Is it possible in struts to display just the first few characters/lines of this string instead of the whole one.. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disabled button-style
Hi, I did a search on Net and observed that "text-shadow:none" can actually do this. But it is not supported in any available browser and it is defined in CSS2(not avialble in CSS1). Any round about is available? Regards, Nagesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 12:48 PM To: user@struts.apache.org Subject: disabled button HI , I want to set a different property in CSS for a disabled button. My requirement is the button should look like an active button (text decoration , back ground etc..) but should be disabled state. I can switch over to a different class in CSS when the button is disabled. In a disabled button the text is looking horrible because of the shadow/ 3d property of text and also the colour of text is dim. any idea / references? regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I transfer a file to a struts based web application f rom a java application
Shoukat, Faisal wrote: >Thanks, but I don't see how JFileChooser will help - my application >can already obtain a File what I don't get is how to transfer the file >via http to be processed by the struts application. > > I am pretty happy with httpunit.org, not just for unit testing, but as a generic http library. I think this page has the info for how to make file uploads: http://httpunit.sourceforge.net/doc/api/com/meterware/httpunit/WebRequest.html Cheers, /\/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I transfer a file to a struts based web application f rom a java application
U could try sending it as an attachment in a SOPA message -Original Message- From: Steve Bosman [mailto:[EMAIL PROTECTED] Sent: 22 June 2006 11:27 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: How can I transfer a file to a struts based web application from a java application Thanks, but I don't see how JFileChooser will help - my application can already obtain a File what I don't get is how to transfer the file via http to be processed by the struts application. Steve On 6/19/06, Mukta <[EMAIL PROTECTED]> wrote: > Try using JFileChooser > > > -Original Message- > From: Steve Bosman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 14, 2006 2:58 PM > To: Struts User Mailing List > Subject: How can I transfer a file to a struts based web application from a > java application > > Hi, > > I have a struts 1.1 application with an Action that processes a file > obtained using an ActionForm containing a > org.apache.struts.upload.FormFile parameter, I want to use this action > from a java application and would be really grateful if someone could > give me pointers on how to do this using URLConnection. I've used > URLConnection before, it's just the file transfer that has me stumped. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The Northgate IS Content Screening and Inspection system has scanned this message for malicious and inappropriate content and none was found. Please take care when opening attachments even when these are expected and from known and trusted sources. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I transfer a file to a struts based web application from a java application
Thanks, but I don't see how JFileChooser will help - my application can already obtain a File what I don't get is how to transfer the file via http to be processed by the struts application. Steve On 6/19/06, Mukta <[EMAIL PROTECTED]> wrote: Try using JFileChooser -Original Message- From: Steve Bosman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 2:58 PM To: Struts User Mailing List Subject: How can I transfer a file to a struts based web application from a java application Hi, I have a struts 1.1 application with an Action that processes a file obtained using an ActionForm containing a org.apache.struts.upload.FormFile parameter, I want to use this action from a java application and would be really grateful if someone could give me pointers on how to do this using URLConnection. I've used URLConnection before, it's just the file transfer that has me stumped. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iterating over a Set
hello, I have the following code if the underlying Collection (geOutages) is a List (e.g. ArrayList), this works fine, and the checking/unchecking of the checkboxes work fine. For some reason, I want to only have unique items in my collection, so I change the ArrayList to a HashSet. I then get the following error: 10:53:21,877 ERROR [Engine] ApplicationDispatcher[/oisweb] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Invalid argument looking up property geOutages[0].includedInEolReport of bean geSearchForm I add the 'name' attribute to my nested:checkbox Then the code compiles and the checkboxes are displayed correctly. However, changes to the values of the checkboxes does not work anymore; they are just ignored. I though this might be because of the ordering of the items in a HashSet not being defined, but using a TreeSet or a LinkedHashSet does not seem to make any difference. So my question is: does Struts need an indexable Collection for SETTING values? Like ArrayList, which have get(index i) and set(index i, Object o)? A Set like HashSet or TreeSet does not have any get/set-methods, but are relying on add/remove-methods instead. This does not seem to be sufficient? Any help would be appreciated. cheers, pj
RE: validating checkbox
Hi jasper, S I have tried with required validator. It s not working. regards, Mansoor -Original Message- From: The Jasper [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 1:30 PM To: Struts Users Mailing List Subject: Re: validating checkbox hi, have you tried the required validator? mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Dear all, > How can I validate atleast one checkbox should be selected b4 form > submited. I am using html:multibox. > > regards, > Mansoor > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator: form value1 < form value2
Yeah validwhen can do it. anyway these antlr expressions are not very intuitive. If You have a problem let me kow i will try to help 2006/6/22, The Jasper <[EMAIL PROTECTED]>: hi, the validwhen validator can do what you want. mvg, Jasper On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote: > Hi there, > You can write a custom validator in Struts to do that, it's rather easy, > both client-side and server-side. Open the jar of commons-validator to > see some script for existed validation rule should help. > Regards. > Tinh > Jeremy Nix wrote: > > How can I use the Struts Validator to enforce the above rule? Neither > > of the fields are required, but if both are given, they must adhere to > > the given rule. > > > > > > > > Thanks for any help, > > > > > > > > _ > > > > Jeremy Nix > > > > Senior Application Developer > > > > Southwest Financial Services, Ltd. > > > > (513) 621-6699 x1158 > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validating checkbox
hi, have you tried the required validator? mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dear all, How can I validate atleast one checkbox should be selected b4 form submited. I am using html:multibox. regards, Mansoor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator: form value1 < form value2
hi, the validwhen validator can do what you want. mvg, Jasper On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote: Hi there, You can write a custom validator in Struts to do that, it's rather easy, both client-side and server-side. Open the jar of commons-validator to see some script for existed validation rule should help. Regards. Tinh Jeremy Nix wrote: > How can I use the Struts Validator to enforce the above rule? Neither > of the fields are required, but if both are given, they must adhere to > the given rule. > > > > Thanks for any help, > > > > _ > > Jeremy Nix > > Senior Application Developer > > Southwest Financial Services, Ltd. > > (513) 621-6699 x1158 > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to validate when the form-property is of type="java.lang.String[]"
Hi, So...how are you putting them on the form. I assume you some form of iterative tag to put them on a form. There is probably a better solution, but you could write a custom validator, or validate() method to do what you want. I had to do this for a similar situation, but I had at least 2 levels of arrays to traverse. I seem to remember thinking I could solve it with just one level array to deal with. Also the validation was a little complex. mvg, Jasper On 6/22/06, lingan <[EMAIL PROTECTED]> wrote: Hi, I am trying to validate a field declared as String[] in the form bean. I think you should have solved this earlier. can u help me ?? thanks. -- View this message in context: http://www.nabble.com/how-to-validate-when-the-form-property-is-of-type%3D%22java.lang.String--%22-t9.html#a4983501 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation a specific element in an String []
Hi, so you have 2 textboxes and one of them is required, which is what you want to validate. The problem is that they have the same name, I assume. The obvious solution in that case would be to give them different names, but I'm not sure I understand the question. mvg, Jasper On 6/21/06, lingan <[EMAIL PROTECTED]> wrote: Hi I have two text boxes with the same name . Only one of them is a 'required' field. how should i do this. thanks. -- View this message in context: http://www.nabble.com/Validation-a-specific-element-in-an-Stringt1824259.html#a4975395 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disabled button
HI , I want to set a different property in CSS for a disabled button. My requirement is the button should look like an active button (text decoration , back ground etc..) but should be disabled state. I can switch over to a different class in CSS when the button is disabled. In a disabled button the text is looking horrible because of the shadow/ 3d property of text and also the colour of text is dim. any idea / references? regards, Nagesh The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(
Hi Xuan Tinh, I had created a filter, which set request.setCharacterEncoding('UTF-8') and filtering all url-pattern: *.do or *.vm ... now, everything is fine :) thank you all :) - Original Message - From: "Truong Xuan Tinh" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 21, 2006 5:44 PM Subject: Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :( You must set both attributes like this:<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> By the way, which version of Tomcat are you using? You can search the JIRA database of Tomcat to check whether it's a bug ot Tomcat. Pham Anh Tuan wrote: yes, I had set contentType="text/html; charset=UTF-8" but there's no effect :( - Original Message - From: "Truong Xuan Tinh" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 21, 2006 1:56 PM Subject: Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :( Did you set the page directive in you JSP files like this? <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> Pham Anh Tuan wrote: Sorry all you, I don't intend to flood the mailling list, but yesterday, after I had sent this email, mail server feedback to me that my email couldn't send :( ... So, that the reason why I sent this email so many times, sorry all :( about my situation, I can only save unicode characters into my DB with the form which has the header contains the attribute: enctype="multipart/form-data", if not I can not have unicode characters :( @ Tinh: I did the same thing like you suggested, make a filter and set "request.setCharacterEncoding(encoding);" but as you know, the result was there's no effect :( .. .it's still ISO-8859-1. if you must change encoding for every string ... hiz, that's a heavy work ... is there's any solution :( thanks all, - Original Message - From: "Truong Xuan Tinh" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 20, 2006 10:23 PM Subject: Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :( Hi Tuan, Did you set the page encoding to UTF-8? And one more thing, set the characterEncoding of your request to UTF-8 before it hit your action (ie, in a filter or something like that). PS: I've found a bug in Tomcat with when encoding data to UTF-8 with the GET method (the POST method is OK). Although you set the characterEncoding of the request to UTF-8 in filter, but when it hit the action of Struts, the character is still in ISO-8859-1 :-( . Here is the quick fit for this: byte[] temp = originalString.getBytes("ISO-8859-1"); String result = new String (temp, "UTF8"); Hope this may help. PS: Do not flood the mailing list with duplicate message, you'll get ignored quickly. Pham Anh Tuan wrote: Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: in velocity.properties file, I set: input.encoding=UTF-8 output.encoding=UTF-8 hiz, but with all above, I couldn't save unicode value of something property into my DB (Mysql 4.1, I had set all utf-8) :( but ... when I change the header of form tag like below, everything is fine, it's mean, I can save unicode value into DB :( ... I don't know why, help me plz :( thanks in advance, bowlkhin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]