Tutorials to .com

Tutorials to .com » Jsp » Application » (Tips) How to write JSP inside inner classes [inner, class]

(Tips) How to write JSP inside inner classes [inner, class]

Print View , by: iSee ,Total views: 18 ,Word Count: 71 ,Date: Mon, 24 Aug 2009 Time: 4:09 AM

<html>
<body>
"%!
class Hello (
private String hello = "";
public Hello () (
hello = "Hello World!";
)
public String getHello () (
return hello;
)
)
%>

<%
Hello hello = new Hello ();
%>
<h1>
<% = Hello.getHello ()%>
</ h1>
</ body>
</ html>


Java Application / Other Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.