tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe ENTZMANN <phec2...@yahoo.com>
Subject RE: using ONLY taglib in JSP
Date Thu, 22 Nov 2001 16:43:12 GMT
Thanks for your help.

I could look into Tomcat sources but it will not work
on other container like WebSphere.

I looked at velocity which provide a true MVC approach
but it lakes some king of "taglib support" (not sure).
I really like the tag syntax <XX:MYTAG> over the
velocity syntax #myobject.doSomething().
But if you have a way to use the tag syntax in
velocity it will be fantastic !

You're right, we need presentation logic but we can
provide the main functions as tag (if/then/else, for
each, ... as STRUTS do).
But we are looking for a way to be sure that the JSP
writers will not put "hard" java code in their pages
(I/O access, usefullness String/Stream/Buffer
manipulations, threads, etc ...).

--- Reynir_HŁbner <reynir@hugsmidjan.is> wrote:
> Never seen such a switch in tomcat...
> 
> in theory you should be able to get the source of
> Tomcat and find out
> how it parses the JSP pages (with Jasper) and change
> it so it will not
> parse <% %>.
> 
> You can check out velocity
> (http://jakarta.apache.org/velocity) that is
> a template engine. It might help you in your task.
> 
> Then I question your Model, as I would never want to
> take the ability
> away from my system to be able to have code in JSP
> layer.  Of course as
> we implement the MVC I understand that the View
> should not contain any
> buisnesslogic, but then again it might have
> presentation logic. 
> 
> hope it helps, 
> -r
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Philippe ENTZMANN [mailto:phec2000@yahoo.com]
> Sent: 22. nůvember 2001 15:36
> To: taglibs-user@jakarta.apache.org
> Subject: using ONLY taglib in JSP
> 
> 
> Need some advices to use ONLY taglib in my JSP
> pages.
> We have some taglibs implementing our business
> model.
> With a MVC approach in mind, we avoid using Java
> code
> in our JSP and always put "model" into tag.
> Is it possible de restrict JSP pags to only contains
> tags (taglig, HTML, ...) et not Java source code
> (<%...%>) ?
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting,
> just $8.95/month.
> http://geocities.yahoo.com/ps/info1
> 
> --
> To unsubscribe, e-mail:
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message