Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 6th, 2002, 06:02 PM
andrewl41 andrewl41 is offline
Coder Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: London
Posts: 35 andrewl41 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 47 sec
Reputation Power: 7
Why are there any tags in JSP

Does anybody know why JSP pages use a CF tag like syntax for things like include files and forwards. Surely these could be accumplished in method calls inside <%%>'s.

It seams odd to use two different types of syntax.

Maybe somebody canshed some light on this?

Thanks,

Reply With Quote
  #2  
Old March 13th, 2002, 10:40 AM
wolfespawn wolfespawn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 68 wolfespawn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to wolfespawn
we use tags to distribute our product to clients. we dont want a ton of hard coded stuff in the JSP pages. this allows them to change the look of the site to anything they want and use our tags (which return about 5000 different rows of data) where ever they want.

Reply With Quote
  #3  
Old March 21st, 2002, 04:43 PM
markhorgan markhorgan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Salford, UK
Posts: 0 markhorgan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can do it both ways using XML tags or "scriptlet"

<jsp:forward page="x.jsp"/>

or

<%pageContext.forward("x.jsp");%>

It depends on what you prefer. The idea of mixing XML tags and HTML tags is a nice idea but sometimes xml tags can require too much typing so I resort back to scriptlets. Coldfusion has the same ambiguity with CF tags and putting scripts in <CFSCRIPT>, though cfscript is a small subset of the Coldfusion tags.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Why are there any tags in JSP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway