You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hohlen, John" <JH...@erac.com> on 2002/01/25 15:36:48 UTC

Using Tiles and Validation Frameworks Together...

Using the extensions to Struts 1.0, you can use the Tiles Servlet (called
the ActionComponentServlet)or the Validation Servlet (called the
ValidationServlet), but not both.  Is this correct?

More specifically,   the "ValidationServlet" extends "HTTPServlet".
"ActionComponentServlet" extends the Struts "ActionServlet".  Therefore, it
appears than you cannot use both of these frameworks in your application
(assuming you want to use the TilesDefinitions.xml file with the Tiles
framework).  If the Validation framework and the Tiles framework are both
being added to Struts 1.1, how is this being addressed?

If there is a way to use both frameworks with Struts 1.0, I'd like to know.
I realize if you just want to use the Tiles custom tag libary and not the
TilesDefinitions.xml file, then both frameworks can be used since you
wouldn't need to use the ActionComponentServlet.

Thanks,

JOHN


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Using Tiles and Validation Frameworks Together...

Posted by Ted Husted <hu...@apache.org>.
The ValidationServlet is just used to load the validations from the XML
file. All the requests for actions still go through the ActionServlet,
so there is not a conflict. 

In Struts 1.1, the ValidationServlet will not be needed (in a Struts
application), since the validations are being integrated into the Struts
configuration. This part hasn't happened yet, but in the meantime you
can continue to use the ValidationServlet to load the validator.xml file
on startup. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


"Hohlen, John" wrote:
> 
> Using the extensions to Struts 1.0, you can use the Tiles Servlet (called
> the ActionComponentServlet)or the Validation Servlet (called the
> ValidationServlet), but not both.  Is this correct?
> 
> More specifically,   the "ValidationServlet" extends "HTTPServlet".
> "ActionComponentServlet" extends the Struts "ActionServlet".  Therefore, it
> appears than you cannot use both of these frameworks in your application
> (assuming you want to use the TilesDefinitions.xml file with the Tiles
> framework).  If the Validation framework and the Tiles framework are both
> being added to Struts 1.1, how is this being addressed?
> 
> If there is a way to use both frameworks with Struts 1.0, I'd like to know.
> I realize if you just want to use the Tiles custom tag libary and not the
> TilesDefinitions.xml file, then both frameworks can be used since you
> wouldn't need to use the ActionComponentServlet.
> 
> Thanks,
> 
> JOHN
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>