RE: Validation Javascript

2002-09-05 Thread NP-KARRYS MIKE

Dave

Thanks for the help.

I understand that the validation routines can produce static and dynamic
javascript. What I don't understand is why I can't see the
validateMaxLength() function in the page source displayed from Internet
Explorers View/Source menu item. All I see is the maxlength() and
minlength() functions. How does the browsers associate validateMaxLength()
with maxlength(). From what I have read there browser can't hide any of the
javascript source code. Is this true? But where are the validateMaxLength()
and validateMinLength() functions?

Much appreciated.
Mike Karrys

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 10:22 AM
To: 'Struts Users Mailing List'
Subject: RE: Validation Javascript


> -Original Message-
> From: NP-KARRYS MIKE [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 8:05 AM
> To: [EMAIL PROTECTED]
> Subject: Validation Javascript
> 
> Could somebody please explain the following. I'm probably 
> missing something
> simple but I just don't understand how the validate code is 
> accessed and
> called from the validation.xml and validation-rules.xml files.
> [deleted]
> I can see how the validateLogonForm is called but not how the 
> other code is
> called.
> How does the validateMaxLength and validateMinLength calls 
> get executed when
> they are not included, as far as I can see in the page source 
> window, in the
> downloaded page?

I don't remember where I saw the basic validator examples, but if you can
find them, you'll see the use of both the "dynamicJavascript" and
"staticJavascript" attributes of the "" element, but in
different places.

In the example I saw, you have a JSP file (called "staticJavascript.jsp")
that has almost nothing but the following line:

  

Then, in each of your pages that need validation, you would have something
like this:

  

AND:

  

If you use Tiles, the latter line could go in the layout, and the former
would go in your "body page".

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Validation Javascript

2002-09-05 Thread NP-KARRYS MIKE


Could somebody please explain the following. I'm probably missing something
simple but I just don't understand how the validate code is accessed and
called from the validation.xml and validation-rules.xml files.

When I pull up the struts-example application and look at the login page or
registration page from the source view on the browser, IE 6.0, there is
javascript at the bottom of the page.

The javascript cut from the logon form at the bottom of the file is.


  



 






I can see how the validateLogonForm is called but not how the other code is
called.
How does the validateMaxLength and validateMinLength calls get executed when
they are not included, as far as I can see in the page source window, in the
downloaded page?

Mike Karrys


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Logging in struts-example

2002-08-29 Thread NP-KARRYS MIKE


Well I removed all the other webapps in the jetty.xml and now the
MemoryDatabasePlugin.init() routine shows up in the log file. I removed the
expanded webapps struts-blank, struts-documentation, tiles-documentation,
and tiles-tutorial (which I created) Maybe someday I will figure out why
this is happening.

Thanks for the help.

Mike Karrys
PRC Public Sector Inc.

-Original Message-
From: NP-KARRYS MIKE 
Sent: Thursday, August 29, 2002 2:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Logging in struts-example


Craig

Thanks for the reply:

I have figured out that I can see the MemoryDatabasePlugin.destroy() get
executed but not the MemoryDatabasePlugin.init() get executed. In what
sequence do plugins get initialized along with the main application.

Mike Karrys
PRC Public Sector Inc.


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:59 PM
To: Struts Users Mailing List
Subject: Re: Logging in struts-example


You can configure the logging detail level for each named package
separately -- the example webapp's components would all be covered by the
pattern "org.apache.struts.webapp.example".

Check your Log4J configuration to see what debug level would be assgned to
package.

Craig

On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:

> Date: Thu, 29 Aug 2002 12:17:12 -0400
> From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Logging in struts-example
>
>
> I have managed to get the Log4j package logging to a log file, when Jetty
> starts, for the struts-example application. I expected to see the log
> messages from the log.info() entries in the MemoryDatabasePlugin class but
> they do not show up in the log files. Are there additional configurations
to
> get these messages. I get quite a few message from the digrester and when
> the ApplicationProperties file is parsed but nothing from the application
> code.
>
> Thanks for any help,
>
> Mike Karrys
> PRC Public Sector Inc.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Logging in struts-example

2002-08-29 Thread NP-KARRYS MIKE

Craig

Thanks for the reply:

I have figured out that I can see the MemoryDatabasePlugin.destroy() get
executed but not the MemoryDatabasePlugin.init() get executed. In what
sequence do plugins get initialized along with the main application.

Mike Karrys
PRC Public Sector Inc.


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:59 PM
To: Struts Users Mailing List
Subject: Re: Logging in struts-example


You can configure the logging detail level for each named package
separately -- the example webapp's components would all be covered by the
pattern "org.apache.struts.webapp.example".

Check your Log4J configuration to see what debug level would be assgned to
package.

Craig

On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:

> Date: Thu, 29 Aug 2002 12:17:12 -0400
> From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Logging in struts-example
>
>
> I have managed to get the Log4j package logging to a log file, when Jetty
> starts, for the struts-example application. I expected to see the log
> messages from the log.info() entries in the MemoryDatabasePlugin class but
> they do not show up in the log files. Are there additional configurations
to
> get these messages. I get quite a few message from the digrester and when
> the ApplicationProperties file is parsed but nothing from the application
> code.
>
> Thanks for any help,
>
> Mike Karrys
> PRC Public Sector Inc.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Logging in struts-example

2002-08-29 Thread NP-KARRYS MIKE


I have managed to get the Log4j package logging to a log file, when Jetty
starts, for the struts-example application. I expected to see the log
messages from the log.info() entries in the MemoryDatabasePlugin class but
they do not show up in the log files. Are there additional configurations to
get these messages. I get quite a few message from the digrester and when
the ApplicationProperties file is parsed but nothing from the application
code.

Thanks for any help,

Mike Karrys
PRC Public Sector Inc.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: