aspose file tools
The moose likes JSP and the fly likes getting started with init Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "getting started with init" Watch "getting started with init" New topic
Author

getting started with init

Valarie Brandt
Greenhorn

Joined: Oct 03, 2003
Posts: 24
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

Joined: Aug 15, 2004
Posts: 2874
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: getting started with init
 
Similar Threads
Error with jsp and JavaBeans
JSP mySQL exception
error with JSP
How to send Parameters from JSP to a Servlet?
calling a method in jsp