wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 29220
    
135

"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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent, Error running /building the program/JSP
 
Similar Threads
ie and netscape!!
when i retrive data from access it showing empty page in tomcat
how to display output in the same page of imput
reading data from jsp page to another jsp page using request.getParameter
save checked value in checkbox to database