CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Java and JSP (http://www.codingforums.com/forumdisplay.php?f=54)
-   -   Inserting HTML code in a jsp page (http://www.codingforums.com/showthread.php?t=262348)

zion_rulz 05-23-2012 02:28 PM

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

Old Pedant 05-23-2012 05:09 PM

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>



All times are GMT +1. The time now is 03:04 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.