wood burning stoves 2.0*
The moose likes Struts and the fly likes using Scriplets in JSP with Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "using Scriplets in JSP with Struts" Watch "using Scriplets in JSP with Struts" New topic
Author

using Scriplets in JSP with Struts

Anurag Mishra
Ranch Hand

Joined: Jun 16, 2003
Posts: 121
Hi All,

Is it advisable to use scriptlets while we are using struts tags to display data at jsp.


thanks
Anurag


SCJP 1.2
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
It is no worse or better to use scriptlets with Struts tags than it is to use them with any other tags. The point is that you (typically) don't want your JSP to include (too much) Java code.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: using Scriplets in JSP with Struts