812 byte By
9615415 at 2007-9-26 4:19:33
I am a Final year Computers student and have completed a Project using Java Servlets to connect to Database and dynamically generate HTML response pages I constructed and tested this Using the Develepment environment available on this site However i now have to host the site on the internet I ...
859 byte By
tim.liu at 2007-9-26 4:19:57
I am trying to let a jsp page pick up an html file with a changing name. But not sure how to do it.-I can use a jsp page to pick up an html file with a fixed name --<jsp:include page="myoutput.htm" flush="true" />and there is no problem about this.-However, when I try to let a jsp page ...
302 byte By
hoanet at 2007-9-26 4:20:03
Sorry for the Vocabulary I'm just a beginer,I have Two Beans BeanA and BeanB In BeanA I Try to Call a Method from BeanB what do I need to Declare, Import ....The Beans are in the same Package in the Classes Folder of my WebServer (Iplanet)Thanks for your help ...
Hi,I am working on an app which will display 15 days in retrospect with the date and day for any entered date. For example if the user enters June 15, 2001 the app has to display dates from June 1 and the corresponding day of those dates like sunday, monday... Is there any function which would ...
145 byte By
momul at 2007-9-26 4:20:41
how to do database connection pooling using JSPs..i can't able do this problem. it very urgent in my application...
441 byte By
rokar at 2007-9-26 4:20:43
The system cannot find the file specified in open taglibrary taglib : d:\tomcat\webapps\tomapp\WEB-INF\taglib.tld this is my web.xml says: <web-app> <display-name> Tag Lib </display-name> <taglib> <taglib-uri>taglib</taglib-uri> ...
433 byte By
rabson at 2007-9-26 4:20:53
Hi,I have errorPage="error.jsp" at the top, and for the most part, it works great. However, there are some instances where it doesn't work... even with the same error occurring? Instead of directing to the error page, it just stops writting the html for most of the rest of the page... weird ...
174 byte By
MMMM1 at 2007-9-26 4:20:56
How can I take an URL an tokenize it within my JSP. I want to take an URL and only use the last part of the URL...only that after the last /?Thank you...
Hi,please tell me how to update a record using my jsp
74 byte By
jinkk at 2007-9-26 4:21:05
How to I send email in servlets and jsp.I need with examples
560 byte By
ashalu at 2007-9-26 4:21:10
Hi,I have one JSP in which I have set of customized tags. The JSP page has some dynamically generated HTML code (by tags) and some static HTML.The generated code by Tomcat is in proper sequence till it comes across a tag. After a tag execuation, code generated by tags is present even if there ...
197 byte By
kenthk at 2007-9-26 4:21:11
Hi pals, A method which can keep a variable among different jsp pages which are virtual included within a page.can any body suggest me abt global variables in jsp
1663 byte By
vipinC at 2007-9-26 4:21:14
Hi all, I can't able to send data to servletError: IO Exception: java.io.StreamCorruptedException: CaughtEOFException while reading the stream header code in applet: String strURL = "/work/app/servlet/ServToApp"; uc = new URL(getCodeBase(), strURL).openConnection(); uc.setDoInput(true); ...
Hi I am new to JSP. I need to pass values from a servlet to jsp.How do I call the servlet from within the jsp.and how do I pass these values.I tried passing using request.setAttribute() in the servlet.But i get null values in my jspThanksArn
223 byte By
reshmi at 2007-9-26 4:21:20
I would like to take a text from a textbox in a JSP page and I am searching a particular file using that text. So i need to put the text search code in my bean.Text search on a .pdf using BufferedReader
1279 byte By
barbieM at 2007-9-26 4:21:27
I am developing a web application using JSP. I don't want to distribute the javac with the application in order to run the JavaServer pages. I read in the JavaServer Pages 1.1 Specifications that you can compile the JSP into a Servlet class and place into a WAR file. I have tried this and ...
52 byte By
sunka at 2007-9-26 4:21:28
How can to integrate Jboss with Tomcat
568 byte By
tmehrens at 2007-9-26 4:21:38
I am trying to move to a new jsp page upon the successful update of the current jsp page. My code is below;<%String actionResult = htmldw.getActionResult();if (actionResult.indexOf("|update_success|") >= 0) {response.sendRedirect("localhost:8080/CRxTier/hello.jsp");}%>I recieve the ...
543 byte By
mullala at 2007-9-26 4:21:39
I am trying to access a database connection class, DConn, which is initialized in a .jsp page, from a servlet.The .jsp code is <jsp:useBean id="DConn" class="DConn" scope="application" />and in my serlvet I haveDConn dconn = (DConn) getServletContext().getAttribute("DConn");However, ...
344 byte By
shekhow at 2007-9-26 4:21:47
Hi,I've a function double calculate (double variable_1, double variable_2){....return output;}When I call this function using:double A=calculate (5,7);it works, but it give NaN if called this way:double A=calculate (5,7)-calculate(6,4);Any idea? ...
320 byte By
tvs_2001 at 2007-9-26 4:21:51
what are the differences between single thread model and multi threaded model in servlets.when we use single thread model and multi threaded model in our servlet programs.what is the use of single thread model and what is the use of multi threaded model.please send me about this information. ...
3561 byte By
shekhow at 2007-9-26 4:21:57
Hi, this (simplified) code will not run. It seems that some of the variable could not be passed on to the function Quanto_Calc(). If I set Output=S, if works fine and gives me the expected number. but for Output=FX ; or some of the other parameters, it simply would not work. Yet the redirect ...
If anyone knows how to set TimeOut for JSP session, like as session("mySession").setTimeOut("1000"), give me the code shows it!Or set ExpiredTime, like as session("mySession").setExpiredDate("July-22-2010 10:00 AM");Thanks for your helped ideas!
464 byte By
hubertn at 2007-9-26 4:22:01
keep getting this error when I add this:double dTotalPercentage = Double.parseDouble(totalPercentage); where totalPercentage is a String I'm getting from the session object.String totalPercentage = (String)session.getAttribute("totalPercentage"); any ideas about how to work with numbers in ...
i use TomCat Server and write some codes in JSP language.When i change codes and refresh this page, but the result is NOT changed! The old result is showed. Maybe, it caused of caching?If anyone knows how to solve this problem, tell me the way!Thanks in advance!
Tell me now! Urgent!!!
1153 byte By
pmalman at 2007-9-26 4:22:12
I am trying to pass parameters from one.jsp to two.jsp using form and jsp:include. /( Weblogic 5.1)/In two.jsp I am using request.getParameterValues() and String array to store all parameters was sent from one.jsp. In case, when one.jsp has a form with multiple input entries with the same name, ...
I developed a servlet that queries a database and displays the results in an HTML table. I would like to add a feature to the servlet that creates a .txt file containing the results of the query and save/write this file to the server. When I tried this, I got the following ...
The same with readContent(" http://www.urcompany.com/readPage.html")
Hi Guys ,Where can I get to download Jsp Tutorial with Examples..I have got the JspSpec from sun.But is there any other site from which i can Download Tutorials ..Please let me know...Thanks in advance...
dear java guru'sI want to send e-mail by jsp / servlet at a particular time and say on 15th sep 2001 at 12:00 so how can i do this?thanks in advancepayal sharma
i downloaded the JSDK package and now that I've written my first servlet I don't know how to compile it and how to run it. Do I need to download a special browser to run it? I'd appreciate a quick step by step thing here.
1706 byte By
manohar2 at 2007-9-26 4:23:41
Friends I am having 2 month experience in web programming (JSP,JAVA etc ).Now I have this simple application to add,modify and delete record from a Oracle table.The first page Main.HTML page looks like below--Hospital_databaseADDMODIFYDELETE-Now I am calling Add.jsp,Modify.jsp,Delete.jsp ...
Hi,I hope someone can help.I am an Oracle developer/ assis,. dba looking at the possiblilties of Servlet and JSP's asfront end apps for my databases.I'm trying to call an event when a session invalidates but i am having great difficulty whithgetting HttpSessionBindingListenerto be called.Here ...
471 byte By
CMooney at 2007-9-26 4:23:54
I need to write a bean/jsp combo, running on the client (but it's the java I'm interested in) that can determine when a user has viewed a web page for, let's say, 2 minutes. It can then read the HTML/text associated with that page and then process it (writing some of it to database). The ...
224 byte By
adamrau at 2007-9-26 4:24:33
I get the follwing error:method java.lang.float,java.lang.float not found.All i want to do is compare my two float values.THanks and sorry if this sounds stupidb but I cant figure this out.
542 byte By
mabaumga at 2007-9-26 4:25:09
I have got a JSP working as controller/dispatcher, a frameset with 3 frames (Header,Nav,Text). Now i have some links in the Text - Frame with a code for a page. I want these links send to the controller jsp which has to rebuild the frameset and inserts dynamic the location of the page got by ...
254 byte By
des_xu at 2007-9-26 4:25:22
Hi, i have a problem and i hope someone here will help me out =)I have a string, example, abcde, which i convert to its ASCII values using javascript, how do i get the ASCII values back to its original string using JSP?thanks!
339 byte By
dnoyeB at 2007-9-26 4:25:27
I know jsp makes webpages, but do I have to make the JSP by hand? are there any web page tools out there like there are for ASP that will automatically make my JSP?Or am I confused about how to use JSP? I dont want to be developing a nice looking web page in essentially the equavalent of ...
hello ...i am a beginner at JSPs and java servlets ... i have been searchin' hopelessly for the past couple of days. Could someone please guide me on how to compile source files for servlets ... namely how can i include the packages javax.servlet.* since the compiler gives me an error that ...
631 byte By
sam021a at 2007-9-26 4:25:52
the emergency is a deadline. I have a client server application which works perfectly but my problem is how to publish it for use on my website. Consider I have a web domain and Ii want to publish the client applet and server application. How do I specify that the server APPLICATION is to run ...
427 byte By
gvkk at 2007-9-26 4:26:12
i tried connecting to sun site and also tried moving it to my local machine.still getting the error.what am i missing?org.apache.jasper.compiler.CompileException: C:\tomcat\jakarta-tomcat-3.2.3\webapps\examples\jsp\trytags\name.jsp(0,0) Unable to open taglibrary mytaglib : Parse Error in the ...
When I download the hellouser.war example from the JavaServer Pages QuickStart Guide into tomcat-4.0-b5 and call it from the browser it works fine. Also, when I put a stripped down version of the jsp file (called shortbeans) into the hellouser directory it runs: <html> <body> ...
Hi, everybody I'm trying to make iterate-tag class based on Sample code in JSP 2nd edition (Wrox). But somehow wheneve I compile my program (It'll be listed bottoem) , I got error message like this. -- cannot resolve symbol : EVAL_BODY_AGAIN. - My tag class extend from TagSupport . Do I have ...
Hi everyone I have an application with lot's of forms. The users are entering single and double quotes causing database errors. I would like to treat the single and double quote problem.My questions are 1. How do you guys treat the single and double quote problem ?2. are there any other ...
834 byte By
musicboi at 2007-9-26 4:26:45
Hi,I need to connect to an external URL to retrieve some information from other websites. Let's say http://www.yahoo.com. So my codes will look like this..String targetURL = " http://www.yahoo.com";URL u = new URL(targetURL);HttpURLConnection newconn=(HttpURLConnection) ...
2079 byte By
myneni_r at 2007-9-26 4:27:25
i am having problem while upoading file. can anybody help me out? i am putting my code what i have done. in this i can upload only the text file, apart from that all other files are getting corrupted while uploading. the size of files are same but i could not open the uploaded file. it says ...
125 byte By
windz at 2007-9-26 4:27:30
I hope to read all content from a URL with JSP,but deleting all HTML TAG.any ideas?thank u
477 byte By
gpadmaja at 2007-9-26 4:27:54
Hi ,If I make a jsp file a.jsp like <%="Hello"%>and I run it it prints 'Hello' ok. now I change my file to <%"Hello World"%>and run ,it prints 'Hello World' How does server know that the jsp file has been changed.(becoz what I know that if a jsp file called second time it runs ...
Dear All,I am new to the Java language; please help!What I'd like to do is to prompt the user, within a loop, to click OK to continue the loop or CANCEL to exit the loop. I've tried to use JavaScript in conjunction w/ Form submittion to handle the parameter passing ('true'/'false') of the ...