Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Common file which contains scriptlet code...

Thread view: 
gautam.chavan@gmail.com - 15 May 2006 04:57 GMT
Hello all,

    I have around 3 webpages which use the same scriptlet code.
    Hence the code is repeated.
    Can i put the common code in a file & include the file.
    Similar to a *.js file where you can put your common javascript code.

regards,
Gatuam.
Aj-India - 15 May 2006 11:58 GMT
yes you can.
put the common code in a jsp page (for e.g., CommonCode.jsp ) and call
them with

<%@ include file="CommonCode.jsp"%>

in the other 3 pages.
Cheers,

Aj


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.