• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting started with init  RSS feed

 
Valarie Brandt
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to bring information into proj3info.jsp from a file called project3.properties I just am at a loss where to start

I know i need to to have an instance of my properties so.....
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%!
public void jspInit()
{
PropertiesManager propManager = new
PropertiesManager("/project3.properties");
}
%>

<html>
<head>
<title>JSP Project Information</title>
</head>
<BODY>
<h1>Project Information</h1>
<p>This page was generated by a jsp page.</p>
<table>
<tr>
<td>My name is: </td>
<td> this is where i need to bring in from propManager getName()</td>
</tr>
</BODY>
</HTML>
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You had better search some good tutorials over the internet. you can look a book on theserverside.com. it is for free.
and read the docs there is no other better substitute.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!