Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Nandu Raghu

Greenhorn
+ Follow
since Nov 21, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nandu Raghu

I have a variable strarray in my form which is an array of Strings (String[])
I have this variable declared as hidden in my jsp.
The values in strarray = {"dog", "cat", rat"}- for example.
In the javascript, I am trying to access the variable as
document.forms[0].strarray[0].value.
This is giving an error on page saying that strarray.0.value is null or not an object.
However, when I print this variable in my action , it does print out the right values.
Not sure what I am missing here. Any help will be appreciated.
Thanks.
16 years ago
Hi Sha Ram,
The validation.xml should be in the same place where the struts-config.xml is.
16 years ago
Hi Sahil,,
I tried doing what you said, but it did not work.
Maybe, we cannot specify any other bundle in the validation.xml. If somebody has had success with this , I would be very interested to know about it.
This is what I am trying to do
In validation.xml.
<arg0 key="label.name" bundle="mybundle"/>
where mybundle is a resource bundle .
16 years ago
HI,
My question is whether we can specify a different resource bundle other than the default ApplicationResources in the validation.xml file. I have a set of error messages defined in another bundle and am wondering how to make use of it in the validation.xml.
I appreciate any help/input.
Thanks.
16 years ago
Thank you FrancK.
It worked !!
[ November 27, 2003: Message edited by: Nandu Raghu ]
16 years ago
Thanks for your response, Sandy.
I am still not clean how the onLoad handler would help me in this case. Can you please explain a little more.
Thanks.
16 years ago
Hi,
I have 2 textboxes and one checkbox. When I click on the checkbox, I want to do some validation and then put the focus on textbox 1 if the validation fails. I am not clear on how to change the focus back to the textbox 1.
Any help will be appreciated.
Thanks.
16 years ago
Hi,
I am using the html select and optionsCollection to display entries in a drop down list . It has values like 10,20.30.40 etc. By default 10 appears as the element displayed in the list, but I want 20 to be the default item displayed on the list and then the user should be able to scroll up to choose 10 or down to choose 30,40 etc.
How do I make the change to display the default as 20 ?
Thanks.
16 years ago
Thank you MT, it did solve my problem !
16 years ago
Hi,

Newbie to struts with a question.
I have two html text input fields- Name1 and Name2.
I enter a value for Name1, when I click on Name2, I want the name1 value to appear there by default. How do I accomplish this ?
Thanks,
Nandu
16 years ago
16 years ago
Hi ,
I am trying to declare a property as a checkbox in a struts html tag. I have the onClick method as follows.
onCheckingBox()
{
// prop1 is a checkbox.
var e1 = document. myform.prop1;
alert (e1.value)

}
When I execute the app, I am not getting any alert message. I am not sure what I am doing wrong here. Any help will be appreciated.
Thanks.
16 years ago