Re: struts and java script and jsp

2005-02-01 Thread Hanson Char
> Then, where does it come up with "username"?

Could it be that you have "username" specified in validator.xml ?

H

On Tue, 1 Feb 2005 11:22:48 +0100, Cedric Levieux <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> You have this JavaScript code cause you ask into the  tag the
> ability to focus on a form field.
> 
> But btw I don't understand why the javascript code didn't work :p
> 
> Regards,
> 
> Cedric
> - Original Message -
> From: "Nadia Kunkov" <[EMAIL PROTECTED]>
> To: "Struts help (E-mail)" 
> Sent: Tuesday, January 25, 2005 5:20 PM
> Subject: struts and java script and jsp
> 
> Hi,
> 
> I'm not sure if this question is really about struts even though it occures
> in my struts application.  My apologies if this is a bit off topic.
> I have a jsp logon page with two input fields "userId' and "password"
> I of course have a corresponding ActionForm with the same attributes.
> When I open my Logon page in Mozilla I have no problem whatosever.
> When I open it in IE it's done with errors on page and  I have the following
> message:
> document.forms["logonForm"].elements["username"].type is null or not an
> object
> 
> When I looked at the page source I saw the following javascript added:
> 
> 
> 
> 
> I'm wondering why this javascript is being added and does it have anything
> to do with struts?
> Also, could the problem be that it refers to element["username"] that does
> not exist in my jsp, since I have "userId"?
> Then, where does it come up with "username"?
> How do I get around it?
> Should I change my form to have "username"?
> 
> -
> 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: Regarding LOGIC tags

2005-02-01 Thread Hanson Char
How about using jstl instead:


...


H

On Tue, 1 Feb 2005 13:41:23 +0100, Cedric Levieux <[EMAIL PROTECTED]> wrote:
> and that's why I have my own tags to make this kind of tests between my
> beans :p
> 
> - Original Message -
> From: "Kishore Senji" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Thursday, January 27, 2005 7:55 AM
> Subject: Re: Regarding LOGIC tags
> 
> > On Thu, 27 Jan 2005 10:48:47 +0530, Krishna Mohan Radhakrishnan
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi all,
> > > I have a very simple doubt on struts equal tag.
> > >
> > > The tag is like this
> > > 
> > > 
> >
> > Here is one way:
> >
> > 
> > 
> > 
> >
> > >
> > > Here planDesc1 and planDesc2 are both beans of the same class planModel.
> > >
> > > Can I have a comparison with 2 beans of the same class.
> > > I heard that logic equal comparison has to be done to a constant valu.
> > >
> > > Any other method to do this.
> > >
> > > Regards,
> > > Krishna Mohan
> > >
> > > -
> > > 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]



action param-element not working ?

2008-06-30 Thread Hanson Char
Hi,

I tried to inject some values to an action via the param-element, but it
doesn't seem to be working.  See example config below.  I set a breakpoint
with a debugger, and the setter methods of the two properties (minValue and
maxDecimalPlaces) don't ever get invoke, even though the "myMethod" did.  Is
this a known issue, or should I open up a JIRA issue ?

(I am using struts-2.0.11.1 and therefore xwork-2.0.4.)

Thanks,
Hanson





0
2

10
text/plain


/jsp/MyPage.jsp
/jsp/RetroCharge.jsp



Re: action param-element not working ?

2008-06-30 Thread Hanson Char
That works!  Thanks :)

On Mon, Jun 30, 2008 at 1:16 AM, Lukasz Lenart <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> Did you use stack with
>  class="com.opensymphony.xwork2.interceptor.StaticParametersInterceptor"/>
> ?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: action param-element not working ?

2008-06-30 Thread Hanson Char
On the other hand, if a param-element is specified in an action, shouldn't
it just work as expected ?  What is the rationale behind requiring the user
to further configure a staticParams interceptor in order to get the
param-element to work ?  Or is this just an accidental/convenient decision ?

Hanson

On Mon, Jun 30, 2008 at 9:14 AM, Hanson Char <[EMAIL PROTECTED]> wrote:

> That works!  Thanks :)
>
>
> On Mon, Jun 30, 2008 at 1:16 AM, Lukasz Lenart <
> [EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> Did you use stack with
>> > class="com.opensymphony.xwork2.interceptor.StaticParametersInterceptor"/>
>> ?
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>