keerthi malyala

Greenhorn
+ Follow
since Jul 14, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by keerthi malyala

Hi all I am trying to connect to Postgres database using jsp at tomcat 5.5 server.can anyone help me out in this?I have added the jar file of postgres(postgresql-8.1-408.jdbc3.jar) in tomcat5.5\lib.But still iam gettting this errorIam getting this error when iam running this page.

my error is:

org.postgresql.util.PSQLException: Protocol error. Session setup failed.

my connection lines are:

Class.forName("org.postgresql.Driver");
dbcon = DriverManager.getConnection(loginUrl,loginUser,loginPasswd);

am i doing anything wrong? please Help me in this.

Thanking you,
Keerthi Malyala.
17 years ago
JSP
Hi all I am trying to connect to Postgres database using jsp at tomcat 5.5 server.can anyone help me out in this?I have added the jar file of postgres(postgresql-8.1-408.jdbc3.jar) in tomcat5.5\lib.But still iam gettting this errorIam getting this error when iam running this page.

my error is:

org.postgresql.util.PSQLException: Protocol error. Session setup failed.

my connection lines are:

Class.forName("org.postgresql.Driver");
dbcon = DriverManager.getConnection(loginUrl,loginUser,loginPasswd);

am i doing anything wrong? please Help me in this.

Thanking you,
Keerthi Malyala.
I have set the content type like this
response.setContentType("text/html");
and also
response.setHeader("content-disposition","attachment; filename=test.txt");
but the format which i wanted is not coming.the saved file(test.txt)in this case is displaying all the html tags(like <td width="20%" etc) also along with my required data..how can i make it display only the result of jsp data displayed at browser, excluding the html tags? .

Thank you,
keerthi
17 years ago
JSP
Hi all,
I have a Jsp page, which gets the data from the database, then display it for user to view. and now, how I want to save the result of the page which is seen at the browser to a text/word file.

for example, below is what the user will see from a web browser:
- - - - - - - - - - - - - - - - -
Sno | Code | Name |
- - - - - - - - - - - - - - - - -
a1 | a2 | a3 |
- - - - - - - - - - - - - - - - -
b1 | b2 | b3 |
- - - - - - - - - - - - - - - - -
Now my required output file Should be like this (output.txt)

Sno, Code, Name
a1, a2, a3
b1, b2, b3

Thanks in advance.
keerthi.
17 years ago
JSP
Hi all,
Iam opening a .xls(say temp.xls) file from jsp int browser ,where the xls file is in a particalar folder of my server.now when iam trying to open the temp.xls file ,some junk data is coming instead of the correct data.here iam giving the url of the server/foldername/filename in the window.open method
like
window.open("url of the required location/fordername/filename...");.
But whereas if i open the same file by giving the path of my local system ,it works fine.
for example:
window.open("d:/myname/foldername/temp.xls");
But i wanted the url to work instead of from the specific directory name of my local System.
Thank you,
keerthi.
17 years ago
JSP