Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent, Error running /building the program/JSP

 
brijesh sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html>
<Head><Title>An Example of Finding the Projects</Title></Head>
<Body>
<CENTER>
<FONT SIZE="6" COLOR="blue"> Listing of Projects</FONT>
</CENTER>
<%@ page import="com.starbase.starteam.*"%>
<%@ page import="com.starbase.util.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.lang.*"%>
<%@ page import="java.awt.*%>

<TABLE>
<TR>
<TH >PROJECT NAME</TH>
<TH >CREATED BY ID</TH>
<TH >CREATION TIME </TH>
</TR>

<%!
String strAddress="localhost";
int nPort=49201;

String strUserName="Administrator";
String strPassword="Administrator";

%>

<%
// Create a new Starteam Server object
Server s=new Server(strAddress,nPort);

// Establish a connection to the Server
// This is optional -logon() connects if necessary.
s.connect();
// Logon as a specific user .
s.logOn(strUserName,strPassword);
// use the Server object to find the number of versions
// enumerate the projects that are available on a given server
// The project collection is a simple array.
Project[] projects=s.getProjects();
for(int i=0;i<projects.length; i++)
{
%>

<TR>
<TD><%= projects[i].getName()%></TD>
<TD><%= projects[i].getCreatedBy()%></TD>
<TD><%= projects[i].getCreatedTime().toString()%></TD>
</TR>

<%
}
%>
</table>

<%
//disconnect when finished
s.disconnect();
%>
</BODY>
</html>
 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you tell us what error you are getting? in future post your errors and be as descriptive as possible. not all people are blessed with esp
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"brijesh28sharma",
We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic