File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Urgent, Error running /building the program/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Urgent, Error running /building the program/JSP" Watch "Urgent, Error running /building the program/JSP" New topic
Author

Urgent, Error running /building the program/JSP

brijesh sharma
Greenhorn

Joined: Nov 13, 2004
Posts: 3
<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

Joined: Jul 07, 2004
Posts: 120
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


--Venkatraman<br />SCJP 1.4<br /><a href="http://kvrlogs.blogspot.com" target="_blank" rel="nofollow">blog</a>
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30377
    
150

"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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Urgent, Error running /building the program/JSP