How to create custom ActionMapper

2006-06-06 Thread Mukta
I am working on URL cleaning in my struts web application. How can I create a custom ActionMapper and how to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: message resources

2006-06-08 Thread Mukta
Pass the argument {0} as follows: -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 1:32 PM To: Struts Users Mailing List Subject: message resources Hi, I want to print a message like this: myValueAdded=my value{0} has been added. How can I fil

RE: message resources

2006-06-08 Thread Mukta
ments using arg0, arg1, .., arg4 in the same manner. HTH, Mukta. -Original Message- From: Mukta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 1:40 PM To: 'Struts Users Mailing List' Subject: RE: message resources Pass the argument {0} as follows: -Original Me

RE: message resources

2006-06-08 Thread Mukta
Try using -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 2:28 PM To: Struts Users Mailing List Subject: Re: message resources >Pass the argument {0} as follows: > I tried that, but then it writes literally: Value value has been added. But

RE: message resources

2006-06-08 Thread Mukta
What do you mean by " Action adds value"?? Where does Action add this value? -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 2:30 PM To: Struts Users Mailing List Subject: Re: message resources >Where do you want to print this message ? I type in

RE: message resources

2006-06-08 Thread Mukta
In your Action class, add following statements before return statement: ActionMessages oMsgs = new ActionErrors(); oMsgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("myValueAdded", "")); saveErrors(oRequest.getSession(), oMsgs); In your jsp, you must be having It will w

RE: message resources

2006-06-08 Thread Mukta
It will be displayed as a message only. For code-cleaning purpose, since it gives an incorrect interpretation, you can achieve the same result by slightly manipulating this code. Try replacing ActionErrors with ActionMessages In jsp also, replace with It should work. Actually I had that implemen

RE: sessions

2006-06-12 Thread Mukta
If you have some session attributes in your application, then it is very easy to do so. Whenever a user directly tries to access any action, first try to get that session attribute. If it is null, redirect to login page. -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]

RE: Cancel button sets the form value

2006-06-19 Thread Mukta
If you want to reset the form values on cancel button click, you should use html:reset instead of html:cancel -Original Message- From: deepali sharma [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 1:01 PM To: user Subject: Cancel button sets the form value Hi I am using html:canc

RE: Default value for text field

2006-06-19 Thread Mukta
You can use " > -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 6:24 PM To: Struts Users Mailing List Subject: Re: Default value for text field Please tell me in Struts context. What do I need to write in my html:text tag? Shervin Asgar

RE: How can I transfer a file to a struts based web application from a java application

2006-06-19 Thread Mukta
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 wi

RE: How to set size of submit button

2006-06-19 Thread Mukta
Just try -Original Message- From: José Moreira [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 2:59 PM To: Struts Users Mailing List Subject: Re: How to set size of submit button [EMAIL PROTECTED] wrote: > I am using html:submit for creating 4 sumit buttons. The requirement is

RE: How to specify default displayed value in html:select

2006-06-19 Thread Mukta
You can specify in body onload as follows You can specify any index that you want to set as default selection. -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 4:13 PM To: Struts Users Mailing List Subject: How to specify default displayed v

Image Caching in Tomcat

2006-06-19 Thread Mukta
:( Thanks in advance, Mukta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: i18n, refreshing ApplicationResources

2006-06-20 Thread Mukta
Bharat, If you are just distributing your application's war file to be deployed at your customer's server, you need not give the whole code base to him. As the properties files are required for i18n features in the project, your client may need to change the messages and labels etc. as per his

[Solved] Image Caching in Tomcat

2006-06-20 Thread Mukta
Thanks Paz, My problem seems to be resolved :) Mukta. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 11:41 AM To: Struts Users Mailing List Cc: Mukta Subject: Re: Image Caching in Tomcat Hello Mukta, I would nto advice to disable

RE: [newb question] Turning on DEBUG level logging

2006-06-21 Thread Mukta
Darren, In your code, instead of using "protected static Log log = LogFactory.getLog(ControllerServlet.class);" You should have used "import org.apache.log4j.Logger;" "private static Logger log = Logger.getLogger(ControllerServlet.class);" And then use following for logging "log.info("Your

RE: Default value for text field

2006-06-21 Thread Mukta
You are right Dave. I'm sorry for writing so. It doesn't give the desired result :( -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 5:14 PM To: Struts Users Mailing List Subject: Re: Default value for text field Mukta wrote: >

RE: passing input form value to error message

2006-06-21 Thread Mukta
You may refer http://struts.apache.org/struts-doc-1.2.4/userGuide/dev_validator.html -Original Message- From: Dhanasekaran Vivekanandhan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 12:28 PM To: user@struts.apache.org Subject: passing input form value to error message Hi All

RE: textarea

2006-06-21 Thread Mukta
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.subst

RE: textarea

2006-06-21 Thread Mukta
Sorry I mean "textarea". I have mistakenly written "textbox" for "textarea". Anyways, its just a variable name. Doesn't affect the functionality. -----Original Message- From: Mukta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:12 AM To: 

RE: Communicate between two struts apps

2006-06-23 Thread Mukta
I am developing an SSO application and we are using this kind of scenario when one app calls some actions of the other app. We are picking those URLs from DB and simply providing links to them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 20

RE: [again] how to disable browser's back button after logout ?

2006-06-25 Thread Mukta
If you can use javascript, just add following code to all your pages. Whenever anyone will click browser back on any page, that page itself will get reloaded rather than going back to the previous page.