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]
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
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
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
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
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
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
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]
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
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
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
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
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
:(
Thanks in advance,
Mukta.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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:
>
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
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
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:
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
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.