can a servlet read a jsp file and display its contents?

243 byte By Gsunfun at 2007-9-26 1:13:22
Hi, I would like to know if Servlets can read a Jsp file and display its contents.. Right now for our website, I am using a html file to be displayed after a successful post operation through the Servlets...-Thanks!

request.setAttribute() in Servlet 2.0

517 byte By beattris at 2007-9-26 1:13:27
Hi all,I'm stuck using Jserv w/ Servlet 2.0 and I want to put something in the request for a jsp:include to use. I notice ServletRequest has getAttribute(), but no setAttribute like 2.1+. If there's a getAttribute(), but no setAttribute(), how are you supposed to put an attribute into the ...

BLANK ERROR SCREEN

736 byte By stephensutherland at 2007-9-26 1:13:33
Hi EveryoneAt the top of my page I have the following declaration.<%@ page import="java.sql.*,java.lang.*,java.util.*" errorPage="myerrorpage.jsp" %>on my error page i have -myerrorpage.asp looks like this <%@page isErrorPage="true" %><%=exception.getMessage()%>-exception ...

Session invalidated

310 byte By wmacey at 2007-9-26 1:13:42
When I invalidate the session, I can redirect to my log-out page, but if someone hits the back button(due to caching issues) the page is displayed unless you hit refresh.How an I get around this behaviour, I wish to have it so that you cannot go back and view the page after logout. ...

BROWSER BACK BUTTON

61 byte By meely at 2007-9-26 1:13:51
Is it possible to Disable browser back button?

automatic restart of tomcat ?

177 byte By Smoerble at 2007-9-26 1:13:55
hoi all...anyone has a solution how to automaticly restart the tomcat-server (startup.bat= on a Win2000-machine ?(sorry, the server is not my idea ;)

Apostrophes And Parenthesis in the string

936 byte By stephensutherland at 2007-9-26 1:14:03
Hi Everyone.How do you guys handle apostrophes and parenthesis in java?I have a solution where the client wants to put apostrophes and parenthesis in the database as part of their strings. ie O'reily (also known as dude)Now these apostrophes and parenthesis come from the database into the java ...

Reading file using JSP

121 byte By caiyun01 at 2007-9-26 1:14:33
I got a file name from user. How can i declare a write code to read the content of the file. Please help...

session lifecycle

203 byte By purpureleaf at 2007-9-26 1:14:35
Hello everybody,I'm what will happen on the session object when a user do somthing like these:He closeed his browser.He just changed the url in his address bar and hit enter.

help?

380 byte By des_xu at 2007-9-26 1:14:37
hi, I go two qns to ask, hope someone could help mi out =)1) Can I use integrate javascript with JSP codes in a single JSP page?2)If i want to encrypt something without using SSL, how do i encrypt a text on client side, then send to server the encrypted text? I can't use javascript cos this ...

What is the solid book on JSP? Servlets? EJB?

184 byte By MGinzburg at 2007-9-26 1:14:45
Hi,I'm looking forward to extend my java knowledge by learning servlets, JSP and EJB? What books (book) would you suggest?Thanks in advance,Michael.

Still How to Count Active Sessions? !HttpSessionListener!

325 byte By sunnywang at 2007-9-26 1:14:48
i found that maybe i can Implement interface HttpSessionListener to hand all active sessions,in method sessionCreated(),the counter increase.in method sessionDestroyed()...but it not work properly.HOW TO USE HttpSessionListener?could you give me a example?thanks a lot! ...

Hai Any body..

217 byte By binduA at 2007-9-26 1:14:53
I know a little bit servlets, Jdbc ok now my work on JSP.Which is the best book you used simple, robust and useful i.e in Indian Market. I told my position in servlets please consider that .......

forte4j not showing up changes from css

698 byte By louiseO at 2007-9-26 1:14:57
I can't get cascading style sheets to show up in forte for Java.For example the html below...<HTML><body><font style=' font-family:"Sesame Street", "Kidprint", sans-serif; font-size: 24pt; font-weight: bold; text-transform: uppercase;'>Cookie ...

How to call a jsp or servlet from a html to display the count on same page

309 byte By thomas747 at 2007-9-26 1:15:00
In our site there is counter that counts the hits..Now there is a javascript for the counter not working fine.Is it possible to call a servlet or jsp from the html pagethat returns the count & to display on the same html page ..?how is it?thanks in advance ...

unregistered servlets in weblogic5.1

1011 byte By malu4ram at 2007-9-26 1:15:03
Hi 1)In am calling from javascript file:parent.frames[1].hiddenfrm.action = "/servlet/login.AdminMainServlet"; For this the entry in weblogic properties file is:weblogic.httpd.register./servlet/login.AdminMainServlet=login.AdminMainServletThis works fine.2) But now I am calling a servlet like ...

Tomcat

78 byte By sube at 2007-9-26 1:15:15
How to configure Tomcat dynamically .. if so give me a example ?

caching

174 byte By des_xu at 2007-9-26 1:15:17
Hi, how come my computer still can cache mi JSP files despite me setting the header to no-cache and even putting in the http-equiv as well? anyone?thanks

tool to develop a forum in jsp

256 byte By pumpindave at 2007-9-26 1:15:30
hi,i have to develop a forum in a jsp page. are there any tools i can use to do this. maybe there are commercial or non-commercial forums written in jsp (or servlets or beans) i can use...?thx for helpcu pumpindave

Why the redirect is not working in JSP?

183 byte By himanshu1979 at 2007-9-26 1:15:48
hello, I create a JSP page in that i used a syntax for redirect a page.Syntax is proper but that is not redirect..I have to compulsory use <jsp:forward> ...

How we use connectionpool facility of weblogic server..

252 byte By himanshu1979 at 2007-9-26 1:15:51
hello friends,In my JSP pages i use connection pool which is written like a one JSP page..But i want to use WLS's connection pool facility for my every page..Can any one help me in this..That how we use that con. pool Thanx

how to detect connection

713 byte By parul_patidar at 2007-9-26 1:15:56
hi i am developing an application which downloads data from a database(which is on server) to the client.i want this program start automatically whenever client connects to the internet or a ras server. for this i think a program should run all the times at client detecting connection and when ...

reading files(*.txt) from JSP

96 byte By des_xu at 2007-9-26 1:16:05
Hi, does anyone know how to read a text file saved on my directory, to a JSP page?

Record search on double-byte value failed using tomcat and oracle

344 byte By vljdc at 2007-9-26 1:16:22
I managed to put double-byte value (chinese) in a database record and retrieving correctly using jsp.However, when I tried to search for the record with double-byte value in WHERE clause (constructed at runtime), it always failed to match the record, eventhough the final displayed SQL is ...

How to reload a jsp using apache-tomcat server?

238 byte By MaliciousHUT at 2007-9-26 1:16:24
my computer running on-Windows 98-jdk1.3-Tomcat 4.0-b5-IE 4 & Netscape 4.7When modifying the source of a isp page, I could not reload the browser?is there any mistake?thx!

upload files

118 byte By pablotronk at 2007-9-26 1:16:53
How can I upload any kind of file from a jsp in order to store in the server side database?Thanks

setProperty Action

319 byte By sdtsdtim at 2007-9-26 1:16:57
Is it possibel to have a String with an expression in the property attribute of setProperty.For example<jsp:setProperty name="cap" property="firstString" value="select cman_name from capman where cman_code = <%=makeid%>" />.or are there other ways to do this?Cheers ...

.jsp files in IplanetWebServer6.0

235 byte By vlokesh at 2007-9-26 1:17:51
Can you tell me where should i place the .jsp files in Iplanet Web Server 6.0 and how to excute the .jsp files thru the browser?for eg: http://localhost:81/<filename.jsp>Please let me in detail.

Killing session cookies

439 byte By signorinicl at 2007-9-26 1:18:07
Hi everyone!I've got a terrible problem with session cookies.When you invalidate a session, it will not delete the cookie from the client browser.I tried to setMaxAge(0) to the session cookies but it doesn't work: the session rewrite it with setMaxAge(-1).How can I delete programmaticaly the ...

TextFields empty after submit

354 byte By stoneJ at 2007-9-26 1:18:39
Hello everyone,I hope this is not a stupid question(newbe..)?I have a JSP file, where i use a submit button in a FORMAfter clickking the submit button al my fields are empty,Is there a way to avoid this?Can somebody help me out,please!Thanks in advance...bystoneJ ...

Javabean vs. Servlets?

370 byte By ajpaxson at 2007-9-26 1:18:40
I'm curious.... and maybe I can't get a direct answer. But, what really is the difference when using Javabeans and Servlets? Is there an advantage?From what I can understand, they do pretty much the same thing. The only difference is, Javabeans are accessed via a JSP, and servlets are ...

Guides...

676 byte By des_xu at 2007-9-26 1:18:53
Hi, I am currently using JBuilder 4 and Tomcat 3.1 to host my JSP pages on a windows 98 platform.I am thinking of switching my JSP pages to a Linux or Unix platform. I am not veri familiar with either Linux or Unix, so i like to ask a few questions here.1)Is there any 'for-dummy' guides for ...

Taking a URL with a servlet

336 byte By achilipu at 2007-9-26 1:18:54
Hi all,I'm a newbie in Java and I have a question which I'm sure the most of you will find pretty easy. I need a servlet which take an URL given from a redirect process and then the servlet must work with it. I think I have to do it by means of the doGet method. Any idea?Thanks in ...

Previous URL

724 byte By basusm at 2007-9-26 1:19:01
Hello,For my app I need to know from which URL this request was made.let us say i am in http://www.sun.com/index.htmland on that page I click on link which says http://forums.java.sun.com and I will go to forums.in page http://forums.java.sun.com .In http://forums.java.sun.com if I want to know ...

jsp page - bouncing back strings

697 byte By linsalad at 2007-9-26 1:19:07
Hey guys, I was just assigned the dubious task (dubious because I've never used JSP before) of creating a JSP page that will send whatever is sent at it (in the form of a string) back to who sent it. I believe it is to be used as a test page, such that someone can send error messages to it and ...

problem with the jsp

412 byte By al3xii at 2007-9-26 1:19:18
Hello,We are a team with projects for homebanking at Internet. Everything is working on Internet Explorer 5.5 and others versions, but at Netscape, our JSPs don t work because they have functions of Javascripts, the system get those JSPS , but does not make any functions work. The validations ...

ODBC Datasource

546 byte By dUb at 2007-9-26 1:19:28
When I try to run my JSP page I get the following error. A Servlet Exception Has OccurredException Report:javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifiedI think that I need to create and ODBC Datasource however I do not ...

Valid SELECT statement for use in JSP?

270 byte By hyrum14 at 2007-9-26 1:19:31
Just starting to work with mySQL and JSP, is this a valid statement:String Query = "SELECT r.resumeID,r.userID,u.location FROM resumes r,resumeHolders u WHEREr.userID=u.userID AND u.location=" +City;City being a variable set earlier...

Help with JSP:GetProperty Tag

295 byte By wmacey at 2007-9-26 1:19:48
Howdy all,I have a <jsp:getProperty name='input' property='code01'/>tag and would like to be able to put a variable in the property field so that I can increment from code01 to code02 to code 03 by concatenating stringsIs this possible?

Servlet & stand alone application

176 byte By adelezhou at 2007-9-26 1:19:51
Can I invoke a stand alone application which contains jdbc in a servlet?If it can, can you give me some hint how to do that?Thanks a lotAdele

can i pass a session and request object to a bean ?

189 byte By stephensutherland at 2007-9-26 1:19:54
can i pass a session and request object to a bean ?Or do i have to loop the the request object and pass each parameter to the bean method individually ? Stephen

Various forms in the same page

397 byte By EVA_02 at 2007-9-26 1:19:55
We want to make a page in which a form will appear after another first form will be submitted (using this information to fulfill new combos, etc).The first form had a combo box, but after submitting, the selected option disappear. How could we "save" the selected option after submitting?Thanks ...

Javascript error : HELP

743 byte By Priyam at 2007-9-26 1:20:05
Hi ,Follow. is my javascript program. I'm getting an error'e is undefined 'I'm not able to find it out . Could you please help me asap.<html><head><script> var a = 0;var b = 0f1(a,b);function f1(c,d){ alert("f1");var e = c;var f = d;document.write("<input type = button ...

JSP's with WML pages

985 byte By ishtiaqbutt at 2007-9-26 1:20:45
Hello, Well i have some problems using JSP pages with WML pages. I am using Tomcat (3.1) and i changed it's web.xml file in the d:\Tomcat\etc folder for MIME types.The toolkit for WAP which i am using is "Nokia Toolkit 2.1".Well i have seen other Tomcat which have "Conf" folder and has web.xml ...

Why the "refresh" button works like that?

1235 byte By aidshiv98 at 2007-9-26 1:20:53
Hi, I set up a index.jsp, which includes two frames one is top.html for the picture and one is the main.jsp for log-in.In the main.jsp:<FORM METHOD=post action ="confirm.jsp" ><input type=TEXT name=newName size = 20><input type=password name=newpass >... After the user put ...

Help: Problems accessing XML file in WebSphere 3.5 Fix Pack 4 on Solaris

1026 byte By yaox0018 at 2007-9-26 1:21:16
We are having an emergent issue with WebSphere 3. 5 Fix Pack 4 on Solaris 2.6: The WAR file we deployed fails with runtime exception due to the inabilityto access a local resource(XML file) in the converted WAR file's web directory.The way we access this XML file is as follows:ServletContext ...

QueryString Problem

793 byte By honey_jal at 2007-9-26 1:21:19
Hello,I am using Tomcat 3.21 for JSP.I am facing a problem with jsp. I want to send some information to other jsp page.When I use a url like this in frame src:<FRAME SRC="displayMessages.jsp#current?rn=<%=roomname%>" name="MessageWin">other page is unable to retrive querystring ...

The difference between session and application

235 byte By jacobee at 2007-9-26 1:21:51
Hi gurus,Can anyone tell me what is the main differences between storing objects in application and sessions please?I will be very grateful for detailed differences.Thanks in advance:)Undergrad

using jsp taglibs

74 byte By s_hariprasaanth at 2007-9-26 1:21:58
I need to know the usage of taglibs and more about tag libs.

Build e-commerce , must need Enterprise Java Bean?

217 byte By iseec at 2007-9-26 1:22:01
I want to build e-commerce application with JSP and Servlet, but I want to ask ... it must need enterprise JAva bean? or not to manage transaction if there are some people log-in at the same time?