JavaScript Alert

Hi all,I am new to struts and I developed a simple program with automatic validation.I am getting Error Messages in the form rather than the Javascript alert.How can I get Javascript Alert?Thanks,Aarthy
[230 byte] By [aarthyjavaa] at [2007-11-26 14:16:00]
# 1
Try asking your JavaScript question on a JavaScript forum.
cotton.ma at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 2
i belive itsalert("this is not a javascript forum");
mkoryaka at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 3
This is a struts related Question
aarthyjavaa at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 4
> This is a struts related QuestionNot really no.At any rate do you ever plan on letting us see some of your precious codings?
cotton.ma at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 5

[nobr]<HTML>

<HEAD><TITLE>Simple Page</TITLE></HEAD>

<BODY BGCOLOR="#FDF5E6">

<P>

<CENTER>

<%@ taglib uri="http://struts.apache.org/tags-html"

prefix="html" %>

<html:errors/>

<html:form action="/actions/register"

onsubmit="return validateRegisterFormBean(this);">

First name: <html:text property="firstName"/><BR>

Last name: <html:text property="lastName"/><BR>

Mailing address: <html:text property="address"/><BR>

ZIP Code: <html:text property="zipCode"/><BR>

Email address for confirmation:

<html:text property="email"/><BR>

<html:submit value="Register Now!"/>

</html:form>

<html:javascript formName="registerFormBean"/>

</CENTER>

</BODY></HTML>

This is the code.

I am getting error messages in the form itself rather than in a message box.[/nobr]

aarthyjavaa at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 6
could it be because you encounter an error before the html is built out?
mkoryaka at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 7
What is the error message?
cotton.ma at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 8
I am getting validation(error) messages
aarthyjavaa at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...
# 9
>> What is the error message? > I am getting validation(error) messagesOn behalf of cotton.m....*PLONK*
warnerjaa at 2007-7-8 2:05:55 > top of Java-index,Java Essentials,Java Programming...