• Post Reply Bookmark Topic Watch Topic
  • New Topic

new to JSP

 
Jeremy Parsons
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying JSp for the first time, and when I take the following code and try to display it on my browser, my code displays as well as the <H1> tags I want to display.. What am I doing wrong?..

[ October 09, 2006: Message edited by: Bear Bibeault ]
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%= <H1>TEST</H1> %>


Change this to:

 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how you might want the jsp to be:

 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be


Use scriplet only when you need to display a Java variable value as in
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!