Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-23-2012, 02:28 PM   PM User | #1
zion_rulz
New to the CF scene

 
Join Date: May 2012
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
zion_rulz is an unknown quantity at this point
Question Inserting HTML code in a jsp page

Greeting folks!

I am not a coding guy to be honest and am working as IT administrator in a small firm.

customer has an application on TOMCAT and wants an HTML code snippet to be added on a jsp page. I need some quick guidance.

I can share the code and the jsp if anyone is willing to help me.

Regards
zion_rulz is offline   Reply With Quote
Old 05-23-2012, 05:09 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,579
Thanks: 62
Thanked 4,063 Times in 4,032 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
This is the JavaSCRIPT forum.

JSP uses JAVA.

The two have little in common other than the first 4 characters of their names.

A moderator will surely move this to the proper forum.

Having said that:

JSP pages *ARE* HTML pages. Only the code enclosed in <%....%> is Java.

So you can mix the two as you like.

Code:
<html>
<body>
<h1>See, this is HTML</h1>
<%
// and now we are writing Java code 
for ( int i = 0; i < 100; ++i ) { ... }
%>
And this is HTML again.
</body>
</html>
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
zion_rulz (05-23-2012)
Reply

Bookmarks

Tags
html code jsp

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:52 AM.


Advertisement
Log in to turn off these ads.