[Logo] Mentawai Forum - Mentawai Web Framework
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 

Forum Read-Only! Check the new site and forum here!

Validation  XML
Forum Index -> General Comments
Author Message
Jardel


[Avatar]

Joined: 19/10/2009 23:33:57
Messages: 28
Offline

I'm having a problem:

I did controller class using a method "execute" and a method "public void prepareValidator(Validator val, String arg1)".

Now, in the news versions of mentawai we have: "public void initValidator(Validator val, String arg1)".....

Have some diference between this two methods? Because using the second case I can't the validator, dont running, dont give me a result in the page.

Other question: When I use in my first page (index.jsp) is ok! But, in other pages html dont run... Can be something like this?

look how is in my second html page:

-------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="http://www.mentaframework.org/tags-mtw/" prefix="mtw"%>
<xhtml xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" "/>
<title>Buriti.com</title>
<link rel="shortcut icon" href="http://localhost:8084/Buriti/images/favicon.ico">
<meta name="keywords" content="" />
<meta name="Premium Series" content="" />
<link href="http://localhost:8084/Buriti/default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
-------------------------------------------------------------------------------

Somebody can help me? For this my validation don running..

thanks,

Jardel
[Email] [WWW] [Yahoo!] [MSN]
Lobo


[Avatar]

Joined: 23/01/2006 02:17:14
Messages: 840
Location: Fortaleza-CE
Offline

Hi Jardel,

Take a look on application "MyBooks"
http://www.mentaframework.org/mybooks.jsp?loc=en

The code has a sample of Validation feature.
http://www.mentaframework.org/MyBooks-ACTION.zip

Atenciosamente,
Hélio Frota

Helio Frota
10+ Java Programmer
heliofrota.com

Member
Mentawai Developer
 
Forum Index -> General Comments
Go to:   
Powered by JForum 2.1.6 © JForum Team