• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

getting started with init

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic