Hi All,
I am developing a struts app and want to apply i18n to the ActionErrors and
ActionMessages being passed from Form and Action classes onto jsp files. I
may have any number of resource properties files named as :
appResources.properties, appResources_jp.properties,
appResources_ko.pro
See "1. Why have two JSP tags that do the same job?":
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
..and follow the link to the Wiki regarding ActionErrors/ActionMessages:
http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Niall
On 7/19/06, fea jabi <[EMAIL P
Thanks Adam!
Adam Hardy-3 wrote:
>
> String forwardUrl = "/private/payments.do?" + customQueryString;
> forward = new ActionForward("anyName", forwardUrl, false);
>
>
> But I would recommend against going down that route, or at least try to
> keep it really simple.
>
>
--
View this mess
At 10:24 PM +0100 7/19/06, Adam Hardy wrote:
I'm trying to set up a new app using 1.3.5 and I
am going to set up the process-view chain to do
some view logic, if possible.
Please could someone in-the-know check these steps to configure 1.3.5:
*snip*
This sounds exactly right.
* write a bes
Hello there! This is more an HTML/JavaScript issue, but I hope someone
has the answer :)
I've been using HTML for a long time, but today I've just found out
something stupid that I've never cared about, reset on a form does not
clean it, but restores to the original state ...
Ok, you can laugh no
Thanks all, we solved this using hidden fields :)
Thanks
On 7/18/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Vinicius Carvalho wrote:
> Hello there! I believe this is an HTML/HTTP issue, but...
>
> I have a userForm that some of the fields (selects) when the user is
> editing must come as read
I'm trying to set up a new app using 1.3.5 and I am going to set up the
process-view chain to do some view logic, if possible.
Please could someone in-the-know check these steps to configure 1.3.5:
* create a web.xml with the ActionServlet config, e.g. from the
struts-blank.war in the apps dow
Thanks Adam. I got it working now
--
View this message in context:
http://www.nabble.com/Valdator---RequiredIf-doesn%27t-work-for-IE-tf1968272.html#a5403936
Sent from the Struts - User forum at Nabble.com.
-
To unsubscribe, e
pantichd on 19/07/06 20:15, wrote:
Is there a way for an action class to send a user to a url other than those
defined as forwards in the struts-config.xml file?
My situation is this:
A filter checks every request in the system to verify that the user has
logged in. If not, the user is sent to t
The problem isn't technically due to the requiredIf tag but rather the
client-side Javascript that is generated by Struts to do the requiredIf
validation. My guess is that you are experiencing one of the many problems
that arise when there are standards related issues with what MS supports vs.
wha
After saving the ActionErrors in action class.
and giving
value="${error}"/>
made the highlighting to work right.
I tried to validate in Action class to check if validate was working right.
When
Hello,
Is there a way for an action class to send a user to a url other than those
defined as forwards in the struts-config.xml file?
My situation is this:
A filter checks every request in the system to verify that the user has
logged in. If not, the user is sent to the login.jsp page.
The logi
Hi all,
I am using struts 1.1 version. I have set up validator framework.
I am using requiredIf rule, it works perfectly in Mozilla Firefox but it
doesn't work in Internet Explorer version 6.0. Is there any reason for it?
Is it not supported on IE.
Thanks
--
View this message in context:
h
On 7/19/06, harriquitawn tawn tawn <[EMAIL PROTECTED]> wrote:
I have configured 2 struts-config.xml files (struts-config1.xml and
struts-config2.xml), two validation.xml files (validation1.xml and
validation2.xml), one validator-rules.xml and the web.xml file.
...
When I execute it, I obtain th
Yah, in the JSP where the errorStyleClass is working I am using property="name"/>
So, do I have to use html:errors? not html:messages?
yes, I am using DynaValidatorForm but calling validate from action class.
The validation is done in validator.xml
In dispath action class I have
ActionMessage
Thank all of you for support.
Now, it it an off-topic question.
I am able to pass the fixed values using the
tag. But, what is the
Javascript like to submit value of a text field in the
Struts context when a link is clicked.
It is difficult for me to get around the problem
because my link is
I have configured 2 struts-config.xml files (struts-config1.xml and
struts-config2.xml), two validation.xml files (validation1.xml and
validation2.xml), one validator-rules.xml and the web.xml file.
Web xml file:
...
/WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml
...
In struts-config1
There is something odd going on here.
In the JSP's where the html:messages and errorStyleClass are working, do you
have html:messages setting 'message="true"'? This is odd because that
changes the key from Globals.MESSAGE_KEY to Global.ERROR_KEY. Action1 Html
tags perform error lookups (I just
On 7/19/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Michael Jouravlev wrote:
> On 7/19/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
>> My text field and the link are defined inside a HTML
>> form
>
>> When I submit the form, the browser address bar shows
>> searchFirstName=
>>
>> a blank is
yes, using 1.2.7 version of struts. This(errorStyleClass) does work in
another page though whose property is in Form-bean.
But here in this page, I have the arraylist in the form-bean, and the
arraylist contains the list of objects whose one of the attribute is shown
in the input field. proba
I suggest you rereading my very first answer. I can add the following to it:
* Clicking on a link, even if this link is defined inside HTML form,
does not submit the form unless you write some Javascript code to do
this.
* Even if your form were submitted with a link, the link paramter
won't be p
Where does "searchFirstName" get defined? If it is in your form when how
would c:url know what form or what field to use? Also, have you tried
having your action set "searchFirstName" with something like this
request.setParameter("searchFirstName", someStringVar) so c:url could see it
as ${search
Michael Jouravlev wrote:
On 7/19/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
My text field and the link are defined inside a HTML
form
When I submit the form, the browser address bar shows
searchFirstName=
a blank is sent.
You should start from here. Why does the browser send an emply
But, it does not work even I changed html-el to html.
In my link, I did pass some fixed values. They are
picked up. Let me explain:
The fixed values "firstName" and "ASC" are picked up
without problem. But the "${searchFirstName}" where
searchFirstName is the property of a te
I see your final output does not list the class="..." attribute. What
version of struts are you using? Accoring to the release notes, only
versions 1.2.7 and above have the errorStyleClass attributes in them. Are
you sure your version supports errorStyleClass? And we ARE talking the
output of y
Thanks for helping me.
The web page has
You said "nested page". Are you including one page inside another or do
you
simply mean "nested inside a displaytag library tag"?
I mean "nested inside a displaytag library tag".
trying to validate the user entered values, here
On 7/19/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
My text field and the link are defined inside a HTML
form
...
When I submit the form, the browser address bar shows
searchFirstName=
a blank is sent.
You should start from here. Why does the browser send an emply
parameter? View HTML page s
I was asking what your html:text tag outputs. Can you post what it puts
into your web page (when you view the source of the generated page?) You
know, the generated html code: (example below)
For what it is worth, your css class definition worked fine in a test page /
form of mine.
You said "
Dear Caroline Jen,
I thought people only used the "html-el" taglib because their JSP container
didn't natively support EL? That would mean your c:url and c:param tags
won't get the expressions ${searchFirstName} or ${ascFirstName} parsed
because your JSP container doesn't do that. If your contai
Thanks for your response.
a) Have you checked your output to make sure the class is set in the html
when an error occurs?
what class are you talking about here?
yes, the css is embeded and the errormsg is also in there. It works fine in
other pages. except for this nested page.
.errormsg{
My text field and the link are defined inside a HTML
form and I do have the html-el and the JSTL tag
libraries. Everything else worked fine except passing
this text field value as a c:param via the c:url link.
When I submit the form, the browser address bar shows
searchFirstName=
a blank is sent
Volker Krebs wrote:
I want to use wildcards. So it should look like this.
config
/WEB-INF/struts*,
/WEB-INF/user/struts*
Has anyone some hints ?
I was thinking about extending org.apache.struts.action.ActionServlet
and overwriting parseModuleConfigFile(Digester digester, Strin
a) Have you checked your output to make sure the class is set in the html
when an error occurs?
b) What is the CSS you specify for that "errormsg" style definition?
c) Have you embedded your style definition in the web page to ensure it is
loaded properly? FireFox has a good plugin called "web d
Make sure your text field is defined inside an HTML form. Make sure
you have proper taglib directives on top of your JSP page, for
example, for html-el tags.
Get an HTTP sniffer and see what is sent from browser when you submit
a form. If you use Firefox, get Live HTTP Header extension.
On 7/19/
I am not talking about submit a JSP, perform some
action, and return a JSP.
I submit the textfield, and I used System.out.println
in my action class to write out the value submitted.
I got a blank. Therefore, something must go wrong.
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 7/19/
On 7/19/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
I must have done someting wrong.
I tried to pass the value entered in a textfield:
to a link this way:
and in my action class, I have
String firstName = request.getParameter(
"searchFirstName" );
I tried to print out the firstName, I
I must have done someting wrong.
I tried to pass the value entered in a textfield:
to a link this way:
and in my action class, I have
String firstName = request.getParameter(
"searchFirstName" );
I tried to print out the firstName, I got a blank!
Please advise what went wrong.
___
Anil-
In your action, you already have access to the resource properties
file. In any member method, as long as you have an instance of the
request object, you can say:
// get the resources for this action servlet
MessageResources resources = this.getResources(request);
to retrieve the MR f
Kim-
I had the same problem with some static form elements (e.g. contents of
list boxes that were not part of any model data I cared to keep, yet it
needed to be in the JSP page.)
One solution I found was to set the properties on the session, but I
decided that that was unnecessarily clutter
Hey have a attribute called "firsttime" in form bean.
set it to "true" inside validate() in formbean.
Now in jsp
check whether the value of the firsttime is true or not()
if its true set all the original values to the formbeam
properties(
mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2
Hi guys,
I would like ot know how to acess the resource properties from an action
class or subsequent DAO classes. Any help, links etc would be great.
Thanks & regards,
Anil.
Information transmitted by this e-mail is proprietary to Infinite Computer
Solutions and / or its Customers and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Is there any open source Java source comparision utility,
Winmerge
http://winmerge.sourceforge.net
KDiff
http://kdiff3.sourceforge.net
- - Chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - ht
Compare It! from www.Grigsoft.com
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: 19 July 2006 14:56
To: Struts Users Mailing List
Subject: Re: Java Source Compare utility
what about old plain diff? or fc in windows world.
and of course each ide brings one.
leon
what about old plain diff? or fc in windows world.
and of course each ide brings one.
leon
On 7/19/06, Romuald this i forgot <[EMAIL PROTECTED]> wrote:
u think of CVS may be ?
we use this one for a java project :
http://www.tortoisecvs.org/
On 7/19/06, Antonio Petrelli <[EMAIL PROTECTED]> w
u think of CVS may be ?
we use this one for a java project :
http://www.tortoisecvs.org/
On 7/19/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Ashish Kulkarni ha scritto:
> Hi
> Is there any open source Java source comparision utility,
> I have 2 versions of smae code and want to find what
On 7/19/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
Is there any open source Java source comparision utility,
I have 2 versions of smae code and want to find what are the excat changes,
Clirr? http://clirr.sourceforge.net/
It's fine to ask non-Struts-related questions occasionally, but ple
Ashish Kulkarni ha scritto:
Hi
Is there any open source Java source comparision utility,
I have 2 versions of smae code and want to find what are the excat
changes,
Thanx
Ashish
Eclipse?
-
To unsubscribe, e-mail: [EMAIL PROT
Hi
Is there any open source Java source comparision utility,
I have 2 versions of smae code and want to find what are the excat changes,
Thanx
Ashish
I am getting below error if i use value="">
Error: Attribute: value is not a valid attribute name
-Original Message-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 5:39 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: logic tags for "" and null
can someone help me with this please.
Thanks.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: errorStyleClass not working
Date: Mon, 17 Jul 2006 11:44:49 -0400
struts-config
dynamic="true">
Thanks for your response.
I am doing the below in Dispatch Action
ActionMessages messages = (ActionMessages)frm.validate( mapping, request );
if ( messages != null && !messages.isEmpty() ) {
saveMessages(request, messages);
return (mapping.findForward("validationFail
If it is submitted as action form, you can do it in your action form
validate method, or you can use
two logic tag
do me
On 7/19/06, Raghuveer <[EMAIL PROTECTED]> wrote:
Hi,
Code below is to check for for Action messages assigned for property.
But i am checking for scalar or nested p
Hello,
I want to specify multiple struts-config files.
But I don't want to use comma seperated list like
config
/WEB-INF/struts-config.xml,
/WEB-INF/struts-config2.xml,
/WEB-INF/struts-config3.xml
I want to use wildcards. So it should look like this.
config
/WEB-
53 matches
Mail list logo