JspWriter and PrintStream

413 byte By pbendersky at 2007-9-26 4:53:10
Hello! I'm writing a class that has a method wich writes something using print and println function calls.I want this method to work writing to JSP out object and to a file (giving it the filename as a parameter).What's the best way to implement it?I've trying to find out, but JspWriter and ...

holding the values based on login

351 byte By greatchivi at 2007-9-26 4:53:12
hi,the scenario is,a user logs in and selects certain fields based on which a query is generated and the result is shown.now the user closes everything restarts tomcat and logs in again at that time i want to display a list based on the previous query generated by the user.Can anybody help me ...

Session Binding

364 byte By sandeepgupta72 at 2007-9-26 4:53:17
I want to know when a session is unbound after timeoutcan we still access the session parameters/variables in the class implementing the HttpSessionBindingListener.I have been trying to retrieve the values from the session in valueUnbound() method but it is always giving me null.Am I making a ...

refreshing properties files

587 byte By pptemp5 at 2007-9-26 4:53:26
HiAt the moment any time we make a change to a properties file, we have to restart tomcat for the changes to take effect.I'm trying to set up a jsp page which will call the function in the bean which loads the properties file. This is the codes we're using:in = ...

request.getRequestURI() Problem

492 byte By chandruos at 2007-9-26 4:53:48
Hi all,I am using request.getRequestURI() to get the url of the calling page.But, Can anyone let me know how do i get the complete url.eg: if http://localhost:8080/servlet/abc.jsp?abc=12324&xyz=5830 is the url of the page.when i use request.getRequestURI() I get only ...

JDBC && JSP Problem (cross-posted - sorry)

371 byte By SPasmofiT at 2007-9-26 4:53:56
Hello! Can someone help me with this error:java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state I'm running MS SQL Server 7.0 and I'm accessing it thru JDBC-ODBC.The code is quite regular (took straight from an example). Does it matter that I'm making this connection ...

redirect to different server

463 byte By susieM at 2007-9-26 4:54:07
HelloI am trying to redirect to a asp page on a different server.I have added all the information to the querystring that I need, but the url is being added to my current locationString url = "http//otherserver/dev/page.asp?rd=20";response.sendRedirect (response.encodeRedirectUrl(url));but the ...

ClassCastException in form processing using JSP

4919 byte By maggiexu at 2007-9-26 4:54:11
I am learning JSP and tried out a simple jsp and javabean program on Tomcat, but it didn't work. Could anyone please tell me what did I do wrong?Counter.jsp:<%@ page import="com.jguru.CounterBean" %><jsp:useBean id="session_counter" class="com.jguru.CounterBean" scope="session" ...

Dynamic Check box values

1628 byte By redi1012 at 2007-9-26 4:54:17
Hi,I have n number of check boxex, which are getting created dynamically. Once I created , after i select some of them I will hit button.As soon as I click on button I need to grab the vaues of selected check boxes.Ex:lets say Dynamically I got 4 check boxes<form ...

Drop Down List Box - assign selected.

305 byte By ck0012 at 2007-9-26 4:54:33
I have a drop down list box which contains the values "Y" and "N". When the list box is displayed I want to show the value which is currently in the database. I receive the current value of the field from a Bean. Does anyone have an example of assigning selected to a value in the list box? ...

JSP:Plugin and naming an applet

2711 byte By mkozikowski at 2007-9-26 4:54:36
Howdy,I am presently having good success with the jsp:plugin tag starting my applet.But, I can not seem to give the applet an ID or NAME in the <object> or <embed> tag.This is needed, as I am attempting to access the applet from javascript in the html page.my jsp:plugin tag looks ...

I keep items in my db. i want to show 5 at a time. But rotate every 4 hours

734 byte By adamrau at 2007-9-26 4:54:38
I have a database with lets say 100 items. I want to show 5 at a time which is no problem. BUT every four hours I want to grab another 5 items. I guess you would call it rotating. Keep in mind that I dont want to do random. I first want to show the first 5. Four hours later I want to show the ...

Need query help...

348 byte By hyrum14 at 2007-9-26 4:54:40
I have a search page used to search over resumes. There is multiple search criteria.A user can select the location (city) or the option ANY.They can also choose a category to search under.An experience range can also be selected.What would be the best way to handle this in my query to the ...

image

1234 byte By rokar at 2007-9-26 4:55:02
Hi alll iam just reading image from url .I cant able ... can any one help me import java.awt.*;import java.awt.image.*;import java.util.*;import java.io.*;import java.net.*;Public class Tb{private static Hashtable urlImagesCache = new Hashtable(); public static Image getImage(URL url){try{Image ...

j2ee

145 byte By rizvik at 2007-9-26 4:55:07
Hi friends iam using J2EEwhich directory of the j2sdkee1.3 do I store my jsp files..any one having idea abt this.....

What servlet support can I get for MS IIS

219 byte By ingee at 2007-9-26 4:55:13
I'm using a hardware server that already runs IIS as the Web server. I'd like to run a Web application that I developed that uses servlets. Can I use IIS? Will I need to run an additional servlet engine?

Interesting Error message using ORACLE and java

1893 byte By stephensutherland at 2007-9-26 4:55:14
Hi Everyone.i'm using Java beans, JSP, Oracle db.I'm using classes that work on other projects. has anyone seen this error before ? Error Message: Fail to convert to internal representationStack Trace: java.sql.SQLException: Fail to convert to internal representationat ...

Newbie help please! How do I port my JSP code to my web-server?

467 byte By uma_var at 2007-9-26 4:55:25
Tomcat and the sever shipped with the old JSWDK somehow don't work on my windows ME PC. However, I am usng JRun. How do I get my JSP files onto my intranet? I am a newbie and will be very grateful for pointers.Thanks.I have a form JSP, database loader bean(.java program), and 2 other JSPs to ...

urgent

87 byte By jdrums at 2007-9-26 4:55:33
hello How can i stop JSp execution in middle of execution process.

LDAP-help-urgent

71 byte By pytir at 2007-9-26 4:55:43
How can we check authentication using LDAP server and JSP

New to java

193 byte By latha545 at 2007-9-26 4:55:46
Hi iam new to webservers... can any one share with me abt JAVA webserver , apache and tomcat server..... How it will works....whats the importants....and also pros and cons

If - Else

1313 byte By mocarroll at 2007-9-26 4:55:49
I have a modify jsp and the parameter ffisactive is a number "-1" and "0" in oracle but I want the "0" and "-1" to appear on the jsp page as "Yes" or "No" I can achieve the yes or no but how I am doing it is messing up the columns in the table - all the notes for the column after appear in ...

Please recommend a JSP book

93 byte By JRedJava at 2007-9-26 4:55:54
New to JSP, know some basic Java. Can some one please suggest a good JSP book?

Am I nuts, or is this not possible?

1505 byte By bploetz at 2007-9-26 4:56:09
Hi all,Ok, so.....I have a publishing app that allows professors to publish lectures over the web for distance learning purposes. The lecture is video taped and converted to a RealVideo, and the slides that they use during the presentation are saved as images and uploaded to the server, where ...

unexplained new line character in Navigator 4

525 byte By davedsun at 2007-9-26 4:56:16
I'm using Jakarta-Tomcat 3.2.3.Newline characters are somehow added to the source code in Netscape. (not added by servlet)It causes a problem because it could be in the middle of a tag or anywhere else for that matter.e.g.<td>This will not display correctly I've tried the following ...

Closing a Connection with the DB

306 byte By jzulu2000 at 2007-9-26 4:56:26
HiWhat can I do for closing a Connection who's spending a lot of time to be resolved for the DataBase and is killing My application?I tried with connection.close() but this method waits until the query returns the resulset and then it can be closed but not before.Thanks ...

Stored Proc won't work - pass through SQL does work - why?

5770 byte By dwaynedixon at 2007-9-26 4:56:38
Hey fellow JSPers, When I run the page below it never responds, but the one without the stored procedure does respond. I've also tried to execute a SP with the prepareStatement - execute methods. I can run queries, but not SPs. Once I run the bad one, the good one and nothing else will run ...

Error. Required Attribute Missing

1983 byte By caiyun01 at 2007-9-26 4:57:00
Hi,I had the following code:<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" " http://www.wapforum.org/DTD/wml12.dtd"><%@ page session="true" %><%@ page import="java.io.*"%><%@ page import="java.sql.*"%><%@ page ...

Request/response servers

211 byte By samreengul at 2007-9-26 4:57:02
hihow can i devlop the API or wat type of API i have to build to extend the functionality of request/response servers except webservers cuz we have already servlets for thatbye

Create a txt file (Linux) in JSP

474 byte By seeteshh at 2007-9-26 4:57:18
Hi,I am using Linux 7.0 with Tomcat 3.2.1. My jsp is supposed to create a txt file containing some information from some fields (String a = "sss"; String b = "silver";)How do I create this txt file on Linux. Please advice on the same. I concatenated all these values into a Sting Tokenizer and ...

very very urgent

154 byte By bapi2 at 2007-9-26 4:57:41
Dear friends I'm really in big trouble.I want my JSP page should not be allowed to shave in hard disk.Iwant really answer very soon.

.class file

64 byte By tadi at 2007-9-26 4:57:56
How to send .class file for jsp as web application

login problem

877 byte By humant at 2007-9-26 4:58:14
hi forum friends Here i am using jsp for login purpose..seems to be very stupid.. i can't able to login. <%@ page import="java.util.*,login.*" %><html> <head> <title>Login</title> </head> <body> <%String username = ...

urjent - problem displaying string !

654 byte By kovaimadhu at 2007-9-26 4:58:15
hi i , am getting string input from a textarea and storing in mysql database. when retrived and displayed in a table it ignores the <return> key entered while data entered in textarea and displays as a continous lineFor examplei type as followshihow are youit is displayed as hi how are ...

problem in executing beans in j2sdkee1.2.1

620 byte By hiananth at 2007-9-26 4:58:42
I have an email application which uses a bean called webmailbean.java. I could successfully execute this mail application under java webserver2.0 but it fails under j2sdkee1.2.1 server. I have kept this bean in a package called test and placed this bean in ...

Results are not updated properly

1832 byte By AntonioC at 2007-9-26 4:58:45
I use this JSP (1.jsp) to show a list of persons from a database and when you dblclick in the list the element selected is deleted from the database and the list is reloaded.But I don't get the list updated. But when I dblclick over another element I get the list with the fist element ...

QUESTION ON SESSION

243 byte By sribk at 2007-9-26 4:59:00
Hi,I'm having a BO..it is too large..This I'm putting on to session . Currently my Application is very slow.. is this be the reason behind that?..Any suggestions regarding session where in I can avoid session overloaded?

Interesting Problem in VA4Java: Using POST with forward(req, res)

552 byte By tauqeer_bhatti at 2007-9-26 4:59:27
I am trying to use POST Metod with forward(request, response) in VisualAge for java using webSphere test environment and getting an error page. Interesting thing is that if I set a breakpoint then I get the desired page otherwise an error page. However, if use GET Method everything works fine. ...

Returning ResultSet in a Bean to JSP page

456 byte By isiew at 2007-9-26 4:59:54
In my Bean, I have a QueryDB method that returns say 100 rows in the ResultSet. Usually, in a JSP page, you can iterate through using a While loop and using out.println to write out the ResultSet columns with HTML code to be displayed.Now, how would you achieve this in a Bean? Is there a way to ...

Session Variables behaving oddly

1382 byte By ssardal at 2007-9-26 5:00:02
Hi,We are using JSP-BC4J framework and we have deployed our application on the 9ias web server.We are facing some issues with the session variables.We have three Jsp pages Page1, Page2 & Page3.All these pages access the Database using and show some data on the screen.All the Pages are ...

javax.servlet.ServletException: Compilation error occured:

4354 byte By suzigriffiths at 2007-9-26 5:00:28
I can't seem to see what the problem is here: I created my own import "Employee.java" compiled ok my JSP file below is called usingClasses.jsp - <%@ page import="Employee"%> html> <head> <title>Using the Employee Class</title> </head> <body> ...

MVC - Am I doing this correctly?

1759 byte By TJHolmes at 2007-9-26 5:00:33
I am creating a User Enter/Edit app based on the MVC Model 2 Design Pattern. The app user goes to the Servlet (doGet) first and determines if this is the first time into the page, and if an User ID was passed in. If the UserID was passed in, then the Servlet instatiates the User Object, passes ...

JSP and thread safety within <% [..] %>

938 byte By nudnik111 at 2007-9-26 5:00:38
Hi folks !Consider the following code within a MULTITHREADED JSP, meaning "isThreadSafe" equals "true":[....]<% String temp = someObjectInSessionContext.getString() %><TABLE><TR><TD><%= temp%></TD></TR></TABLE>-If I learned my lessons well enough, ...

How do I get the redirect location from header?

2188 byte By usg9620 at 2007-9-26 5:00:59
I am in a project which need a JSP script to get the header information from a URL (redirect) - the status code and the redirect location. I used following to simulate the situation.script 1: test1.jsp<%-- distination page --%><%out.println("You have been redirected to this ...

IllegalStateException:output stream is already being used for this request

312 byte By haaida2000 at 2007-9-26 5:01:06
How to read binary data in JSP. I know, in servlets it can be done and JSP can handle only character data. When i try to open res.getOutputStream(), it is throwing the following exception:"IllegalStateException:output stream is already being used for this request". Is there any workaround in ...

How Can I validate a Quiz in JSP

545 byte By mgk05 at 2007-9-26 5:01:10
I am trying to create a Quiz page...it may contain any number of questions ( 1 ...n) and each question contains 4 possible answers with one being the correct one. I want to know, how to use JSP, Bean, HTML radio button etc to generate this kinda quiz and validate it also.Specifically, if I have ...

<BASE> tag can make Tomcat create new HttpSession?

2000 byte By idan at 2007-9-26 5:01:13
Hi!I am building a web application where a set of existing HTML pages are displayed in a sequence using arrows to go to the next, previous, first, last. Imagine a servlet or JSP that must display all HTMLs from a folder. In Tomcat all HTMLs are stored in /myapp/docs. All <IMG> tags in the ...

jsp --> servlet: what about constructors?

713 byte By aNdy at 2007-9-26 5:01:15
ok guys,i have to forward to a servlet from a jsp.how can i handle different constructors of that servlet?i mean that servlet defines its state via the constructorsbeing passed some variable data, but what is my impacton that from a jsp forward statement?jsp:<jsp:forward ...

A pdf file content type from JSP...HELP!?

247 byte By tszalew at 2007-9-26 5:01:31
I changed the content type from HTML to PDF in JSP.PDF tried to launch and then an error message of dataformat error occurred. What type of conversion do I need to make to have Acrobat launch successfully? Tom Szalewski

Disabling browser stuff/....

296 byte By wmacey at 2007-9-26 5:01:54
Is there a way to disable browser specific function key actions? Basically, I want to run a JSP / HTML / Javascript in a browser, but I do not want F1(IE) to bring up IE Help.....I can capture the keyCodes no problem, but how do I swallow the default action, or can I?