• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

getting started with init  RSS feed

 
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>
 
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!