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. ...

Validation and duplicate Tags...

586 byte By Jim_Warlock at 2007-9-26 1:13:47
I need to validate an XML file and throw an exception when duplicate tags are encountered.From the w3c spec. I have the impression that when a sub-element is defined in the DTD as :<!ELEMENT attr_cert (ver,serialNo,own,issuerName,issuerUI,valid,attr+,ext*,sigAlg,sig)>according to the ...

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 ...

Lend a helping hand...

273 byte By sfrenchie2000 at 2007-9-26 1:14:11
I'm new to XML parsing and would like to know a few things:Where do I get a parser and all .jars needed for XML work?Which one is the fastest?Where is a GOOD tutorial on parsing with Java (not by Sun)?That's all for now!SF

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 ...

JMS and 2 machines: OutOfMemoryError on client

970 byte By gavinelster at 2007-9-26 1:15:04
Hello -I'm trying to use the JMS reference implementationand get something to work between two Win2k machines.On a single machine, everything works fine.When I use two machines, I need to configurethe client orb.properties file to point to theserver host and port. This is discussed in ...

a question about Pk and Fk?

261 byte By primeton at 2007-9-26 1:15:10
Hi,everyone ,please help me! Now I am writing a CMP bean in EJB2.0,and I must define a PK class,but I find there is a column is a foreign key and this column must be included in primary key?How can i deal with it? help please

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

please,how can I use javamail to implementing draft box on webmail

81 byte By fly6677 at 2007-9-26 1:15:38
please,how can I use javamail to implementing draft box on webmail

How to config JSEE server to connect Oracle?

970 byte By tarotsukamoto at 2007-9-26 1:15:41
Hello.I''m going into this tutorial http://developer.java.sun.com/developer/onlineTraining/EJBIntro/exercises/DeployingJ2EERI/help.htmlI set set CLASSPATH=D:\oracle\ora81\jdbc\lib\classes12.zip;%CLASSPATH%in ...

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 ...

Urgent Please Help.............................

290 byte By abhinay_rai at 2007-9-26 1:16:00
I have downloaded the j2sdkee1.3 for comiling my Ejb files.All the files get compiled but my client file which uses javax.naming package doesnt get compiled.The error message says its unable to find javax.naming package. Can somebody help me on this issue please.Thanx

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!

xml parsing

159 byte By xerokool at 2007-9-26 1:16:26
hi alli have a question here. how do you parse a string to an XML format?an example will be most helpful :)thanks in advance

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 ...

Websphere

147 byte By RohrerG at 2007-9-26 1:17:21
Hi!Has anyone here experience with IBMs WebSphere Commerce Suite or WebSphere Application Server?Regards,Gerhard

.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 ...

Is it possible to send SMS using Java?

612 byte By ventural at 2007-9-26 1:18:12
Hello!I am an Italian student who studies Computer Science at Pisa University, andI am developing some projects in Java using Java 2 Standard Edition (J2SE) and Java 2 Micro Edition (J2ME, for MIDP 1.0 compliant devices). I need to know if there are some Java API(for J2SE and J2ME) to send SMS ...

what are the client classes

361 byte By paruchurink at 2007-9-26 1:18:35
hi all i am new to EJB's. i am using weblogic6.0 . i am doing jar and deploying it. but my doubt is with the client program. why should i make the home and remote classes available to my client program(jsp page). what all the classes we have to make available to client and why should we do ...

Load a Schema

470 byte By bkprasad at 2007-9-26 1:18:36
Hi,My apologies if a similar question had already been answered before on this forum.I need to create a DOM tree with values at each node which should be valid in terms of a schema definition. Is there any way I could load a schema and it could hand me back an DOM tree into which I could load ...

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 ...

How to store ZIP & JAR files.

181 byte By sachin_ch at 2007-9-26 1:18:50
I am succeeded in storing & then sending big files as an attachment except for ZIP & JAR files.Can anyone guide me what's the problem with ZIP & JAR files

no one has answer of my question? please help!!

1739 byte By pnk_jha at 2007-9-26 1:18:51
hi gurus,i am trying to test sun provided demo programs for testing JAVA Mail API i am getting these errors please help me out ...... thanks in advance DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]DEBUG SMTP: useEhlo ...

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 ...

how to convert a XML tree to an object tree (SAX parser used)

229 byte By priyanka12 at 2007-9-26 1:19:10
Hi,I need to design the framework which will convert an XML tree to an object tree. Is there any standard way of handling this. parser used will be SAX. This will be used by lot of places in the application.