Re: DB Connection prob
I'm the same sort of newbie but a self-taught amateur rather than a student, so take my response with appropriate pinches of salt. I think it depends on how many simultaneous users/sessions you expect. You might get away with it by making sure that you only create and close Connection objects with session scope, but this is the hard way. The easy way is to use connection pooling; the pool manager creates enough Connection objects for the application and reuses them as required. Each Connection object uses resources on the database side of the jdbc bridge so you don't want to be creating too many of them; before I started using pooling I found I was getting errors from the db server because my code was calling DriverManager.getConnection(...) so often that I broke the server limits on the number of simultaneous connections. Obviously you don't want different sessions accessing the same open connection and manipulating the ResultSet - recipe for disaster. So use connection pooling and your application should scale better. Apache Commons provide connection pooling packages. -- Edward Barrow Copyright Consultant Copyright and Licensing blog: http://www.copyweb.co.uk/ ***Important: see http://www.copyweb.co.uk/space/email for important information about the legal status of this email Graeme McLaren wrote: Hi there Richard, thank you for your reply. I'll give the final keyword a go. With respect to: If this is so, your application is not going to be thread-safe b/c the connection is static and can be used by different threads. If this is for a web application, you should use a connection pool and a datasource I have been doing a java course and this is my first web app outwith the course material (thread safe connections have never been mentioned in the course). I don't know anything about connection pools/datasources where can I find a good tutorial or good newbie info on this? What problems will be be caused by using the non thread safe connection as it is at the moment? I'm thinking performance problems. Thank you again for your reply. Graeme :) From: Richard Yee <[EMAIL PROTECTED]> Reply-To: A mailing list about Java Server Pages specification and reference To: JSP-INTEREST@JAVA.SUN.COM Subject: Re: DB Connection prob Date: Mon, 19 Mar 2007 21:44:14 -0700 MIME-Version: 1.0 Received: from swjscmail2.java.sun.com ([192.18.99.108]) by bay0-mc3-f9.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 19 Mar 2007 21:44:13 -0700 Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 197BF219EE; Mon, 19 Mar 2007 22:40:58 -0600 (MDT) Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8e) with spool id 14080077 for JSP-INTEREST@JAVA.SUN.COM; Mon, 19 Mar 2007 22:38:12 -0600 Received: from mail.cruzio.com (mail.cruzio.com [63.249.95.37]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 645C6554F for ; Mon, 19 Mar 2007 22:38:09 -0600 (MDT) Received: from [192.168.0.103] (dsl-63-249-97-217.cruzio.com [63.249.97.217]) by mail.cruzio.com with ESMTP id l2K4i4um015259 for ; Mon, 19 Mar 2007 21:44:04 -0700 (PDT) X-Message-Info: txF49lGdW42b/sTindn8aktBOU0PkxWOZO3VQQBd2PraXRfcuczAxtZNUN2UNjMx X-Original-To: JSP-INTEREST@JAVA.SUN.COM Delivered-To: JSP-INTEREST@JAVA.SUN.COM User-Agent: Thunderbird 1.4 (Windows/20050908) References: <[EMAIL PROTECTED]> X-Spam-Status: No, score=0.0 required=1.0 tests=AWL autolearn=disabled version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on mail.cruzio.com Precedence: list Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 20 Mar 2007 04:44:14.0634 (UTC) FILETIME=[694320A0:01C76AAA] Graeme, Since you mention that you are using a deployment descriptor, I am assuming this is for a web application. If this is so, your application is not going to be thread-safe b/c the connection is static and can be used by different threads. If this is for a web application, you should use a connection pool and a datasource. In your current problem, your variables should not be final. -Richard Graeme McLaren wrote: Hi all, I have a prob connecting to my Oracle DB. I have a class called "DBConnection" and have various setter methods which set values found in the deployment descriptor, for example: public static void setDriver (String val) { driver = val; System.out.println("driver 2= "+driver); // I get the value displayed here so all is good at this point } I then have a getConnection method within this class: public static Connection getConnection(){ try{ Class.forName( driver ); // load the JDBC "driver" class connection = DriverManager.getConnection( dbURL, username, password ); // get connection /* more code here */ } // end of getConnection When I try to call getConnection() I get a nul
Re: deploy war file to linux apache ..Please help
Are you running Tomcat on Linux or just apache httpd? because the latter isn't a servlet container, you need to run Tomcat or some other servlet container. That's the first thing. (actually, I think you are running tomcat, that stacktrace is a bit of a clue) Second, you say you put the war in /var/www/html, but it's looking for them in /home/virtual//html, so no wonder it can't find them. Normally you should put the file in $CATALINA_HOME/webapps/... ; on my Linux system, $CATALINA_HOME is /opt/tomcat5 but ymmv. You can try expanding the war manually, then restarting tomcat. lee hwaying wrote: when running war file under windows Tomcat, it runs fine. But when copy over the war file to linux apache server under /var/www/html/ directory, i get the following message 2006-02-02 03:30:40 HostConfig[jidien.com] Exception while expanding web application archive gallery.war java.io.FileNotFoundException: /home/virtual/site247/fst/var/www/html/gallery/META-INF/MANIFEST.MF (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:179) at java.io.FileOutputStream.(FileOutputStream.java:131) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:224) can someone shed some light Please help the lost me Thanks _ Find love online with MSN Personals. http://match.msn.com.my/match/mt.cfm?pg=channel === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Why HTTP validate can't work
I use JDK1.5 and Tomcat5.5.12, I have three files like follows: ---index.jsp- <% out.println("Authentication Mechanism "+ request.getAuthType() +" " ); %> --web.xml-- http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> Entire Application /* BASIC ProJSP Authentication Example -tomcat-users.xml-- When run index.jsp,it should pop a validate window,but when I run it,it don't pop a validate window and only shows a message: Authentication Mechanism null Why? How to do it? Thanks in advance! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
org.xml.sax.SAXParseException:Content is not allowed in prolog.
I have follow code,but it raise error in IE page: java.lang.NullPointerException org.apache.taglibs.standard.tag.common.xml.TransformSupport.doEndTag(TransformSupport.java:195) and raise error in Tomcat5.59: org.xml.sax.SAXParseException:Content is not allowed in prolog. rolodex.xml Anna Keeney BSC, Inc. [EMAIL PROTECTED] 716-873-9644 716-834-8772 example.jsp Performing XSLT Transformations <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %> <%@ taglib uri='http://java.sun.com/jsp/jstl/xml' prefix='x' %> Why raise above error? How to solve it? Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
JSTL charset question
I want to use charset="GB2312" in JSTL,and input information with GB2312 code in index.jsp page and then I post it to show_parameters.jsp page,I find the charset is not show properly. It shows some '?'. Why? My code is follows: *index.jsp** Request Decoding by Hand <%@ taglib uri='http://java.sun.com/jstl/fmt' prefix='fmt'%> <%@ taglib uri='http://java.sun.com/jstl/core' prefix='c' %> <%@ page contentType='text/html; charset=GB2312' %> Response Charset: show_parameters.jsp*** Request Decoding by Hand <%@ taglib uri='http://java.sun.com/jstl/fmt' prefix='fmt'%> <%@ taglib uri='http://java.sun.com/jstl/core' prefix='c' %> <%@ page contentType='text/html; charset=GB2312' %> <% String charset = (String)pageContext.getAttribute("requestCharset",PageContext.SESSION_SCOPE); request.setCharacterEncoding(charset); %> Request Charset: Name: Request Charset: app_zh.properties*** login.page.title=\u8bf7\u767b\u5f55 login.form.title=\u8bf7\u767b\u5f55 login.textfield.name=\u7528\u6237\u540d login.textfield.nameValue=\u7528\u6237\u540d\u767b\u5f55 login.textfield.pwd=\u5bc6\u7801 login.button.submit=\u767b\u5f55 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to realize local fresh in JSP
I have a table in JSP and there are some column value in this table,how to realize local fresh for this table,such as one column value has changed,and I want to show its new value of this table in this JSP,I only want to fresh the changed data, how to realize local fresh in JSP? Is there open source Java code for it? Thanks. Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
JSTL question
I have downloaded Standard-1.1:JSTL 1.1(2.0), I put jstl.jar and standard.jar into directory of test/WEB-INF/lib,and put c.tld into directory of test/WEB-INF/tlds,web.xml is follows: http://java.sun.com/dtd/web-app_2_3.dtd";> examples JSPtagWAR jsptl.examples.startup.JSPTLExamplesInit http://java.sun.com/jsp/jstl/core /WEB-INF/tlds/c.tld I write a jsp file,named forEachColor.jsp: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> How does one remember colors of the rainbow? NameRGB Value then I start Tomcat5.0,I visite this page: http://localhost:8080/test/forEachColor.jsp But I got errors,why raised errors? How to modify it? Thanks! org.apache.jasper.JasperException: /forEachColor.jsp(12,16) No tag "expr" defined in tag library imported with prefix "c" at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:363) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:233) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1329) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1568) at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1769) at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1083) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1381) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1568) at org.apache.jasper.compiler.Parser.parse(Parser.java:166) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:269) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:155) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:142) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:245) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:448) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:434) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:571) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:288) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:294) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2625) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:196) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:612) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java
Reminder: Online chat, Dec. 7, on JSP 2.1 and JSF 1.2
This is a reminder about tomorrow's online chat on JSP 2.1 and JSF 1.2. The next release of JavaServer Pages technology, JSP 2.1, and the next release of JavaServer Faces technology, JSF 1.2, are designed to improve the alignment of these two technologies in the area of expression language, and to enhance their ease of use. Got a question about these new technology releases? Get answers in this online chat with Mark Roth, the co-specification lead for JSP 2.1, and Roger Kitain, the co-specification lead for JSF 1.2. The chat is scheduled for Tuesday, December 7, at 11 A.M.-to-noon Pacific time (2-3 P.M. Eastern time/19:00-20:00 UTC). To join the chat, go to http://java.sun.com/developer/community/chat/index.html on December 7, and click on the "Join" link for the chat. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Ann: Online chat, Dec. 7, on JSP 2.1 and JSF 1.2
The next release of JavaServer Pages technology, JSP 2.1, and the next release of JavaServer Faces technology, JSF 1.2, are designed to improve the alignment of these two technologies in the area of expression language, and to enhance their ease of use. Got a question about these new technology releases? Get answers in this online chat with Mark Roth, the co-specification lead for JSP 2.1, and Roger Kitain, the co-specification lead for JSF 1.2. The chat is scheduled for Tuesday, December 7, at 11 A.M.-to-noon Pacific time (2-3 P.M. Eastern time/19:00-20:00 UTC). To join the chat, go to http://java.sun.com/developer/community/chat/index.html on December 7, and click on the "Join" link for the chat. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Connection Pool
Hello every, I want to use Connection Pool which can connect into Oracle Database in JSP,I use one,but that connection pool often raise Http 500 errors,I am very puzzled with connection pool.Would you give me a advice where I can get a free Connection Pool which has good performance? Thanks in advance! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Why my jsp page is submit twice?
I have two JSP page, there are one text and one button in index.jsp,when write some information in text area and press Enter Key,this page will be submit to other JSP page named cal.jsp,and in cal.jsp will print a message "receive".when I run this index.jsp,and write some information in textarea and then press Enter Key,I found this page is submit to cal.jsp,but I found that cal.jsp print two receive,like follows: receive receive It should print "receive" once,but in fact it prints "receive" twice,why occur this condition? I only submit once. My code is follows: index.jsp ... <!-- function onCheck(){ if(strIsNull(document.thisform.code.value)==true){ alert("can't null"); return; } else{ document.thisform.action="cal.jsp"; document.thisform.submit(); } } function mykeydown() { var whichkey=event.keyCode; if (whichkey==13 || whichkey==10){ document.thisform.action="cal.jsp"; document.thisform.submit(); } } --> ... cal.jsp ... <% System.out.println("receive"); %> Any idea will be appreciated! Best regards, Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Session question
Hello every, I puzzled a question,I open a Database and read so many records from it and put them into Vector, then I put this Vector into Session.This will cost a lot of memory of Computer.I guess Session should keep in Server Part and not in Client Part.Right? If Session keep in Server Part,when user close IE,if this Session is out of date right now? If not,there is a method which can make Session is out of date and this Session is release by Server Part immediately? Any idea will be appreciated! Best Regards, Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to exit from FrameSet and redirect to other page?
I have frame which contains three JSP page,like following: -- |a.jsp | | -- c.jsp | |b.jsp | | -- /**/ /* c.jsp */ /**/ ... if(condition==true){ %> <% } else{ . } There is a condition in the c.jsp,when this condition is true,I want to realize following function,exit from FrameSet and redirect to other page from c.jsp,like follows: -- || | other.jsp | || -- But above code realize following function,this is not what I wanted! How to realize my function? -- |a.jsp | | -- other.jsp | |b.jsp | | -- Thanks in advance! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to get hidden value in JSP page?
There is a hidden value,named flag in a JSP page,like following: <% String abc; //My question is whether there is a method to get hidden value of flag and assign to variable abc? //print the value of variable abc System.out.println("hidden flag="+abc); if(abc.compareTo("0")==0) //do something else //do otherthing %> Thanks in advance! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to know if session is timeout in JSP
I make a Hashtable and put it into application,Hashtable is used to store online number,when user visited this page,I add him into this Hashtable,like follows: Hashtable list = (Hashtable)application.getAttribute("list"); if(list==null) list=new Hashtable(); list.put(user.getName(),user.getName()); application.setAttribute("list",list); Then I can get online number through this Hashtable,like follows: int number; Hashtable list = (Hashtable) application.getAttribute("list"); Enumeration info= list.elements(); while(info.hasMoreElements()) number++; //online number When user's session is timeout or user closed IE,I remove user from this Hashtable. My question is how to know user's status in Server? Any idea will be appreciated! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to download automatically?
I want to realize file automatically function.File located c:\1.txt,when user explore this page,IE reminder user if download file "1.txt".I write following code.But when I explore this page,IE didn't remind me if download file and it didn't domnload file at all.How to correct following code to realize automatically download? What errors is in my code? public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); String file_name=new String("c:\\1.txt"); response.setHeader("Content-Disposition","attachment;filename="+file_name); PrintWriter out = response.getWriter(); out.println(data); } Thanks in advances! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to redirect JSP page?
I want to redirect one JSP to another JSP,like follows: /* one JSP */ boolean flag; System.out.println("some information"); //Then I call JavaBean and return true or false,if return false,then redirect Fail.jsp page flag=bean.somemethod(); if(flag==false){ %> <% } When I run it,it raise following error: java.io.IOException: Error: Attempt to clear a buffer that's already been flushed I know before redirect another JSP,there shouldn't be any output,but I really need some output,like System.out.println() to display debug information. In this situation,how to redirect another JSP page? Any idea will be appreciated! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
a puzzled question about JSP:setProperty
I met with a puzzled question,I have two jsp files and one JavaBean file,I input SerialNumber and IDCard in index.jsp and submit them into member.jsp file,then I set SerialNumber and IDCard in JavaBean User.java through member.jsp. My part of three files are follows: index.jsp ... member.jsp ... <%@ page contentType="text/html" %> User.java public class User { String SerialNumber; String IDCard; public void setSerialNumber(String SerialNumber){ this.SerialNumber=SerialNumber; } public void setIDCard(String IDCard){ this.IDCard=IDCard; } ... } when I run it,it raise follows error: org.apache.jasper.JasperException: Cannot find any information on property 'SerialNumber' in a bean of type 'Simis.User' I guess the first letter of "SerialNumber" should be lowercased,so I modified follows: It runs ok,what made my puzzled is why property="IDCard" need not lowercase? Then I modified the first letter of "IDCard" into "iDCard",like follows: But it raise errors: org.apache.jasper.JasperException: Cannot find any information on property 'iDCard' in a bean of type 'Simis.User' Why? Any idea will be appreciated! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
JSP Tag question
I use JDK1.4.1,I want to use JSP Tag in my JSP,so I use import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; But when I compile it,it raise errors: JavaScriptExampleTag.java:3: package javax.servlet.jsp does not exist import javax.servlet.jsp.*; ^ JavaScriptExampleTag.java:4: package javax.servlet.jsp.tagext does not exist import javax.servlet.jsp.tagext.*; Clearly,Java didn't find javax.servlet.jsp.* and import javax.servlet.jsp.tagext.*; I want to know if I need another software to support it? If do,where can I get them? Thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
JSP default path which import java class
I have questions about import java class in JSP,like follow structure test | |__WEB-INF | |__classes In classes directory,I put a java class named hello.class,and I put a JSP file in test directory,named index.jsp ,and In index.jsp called hello class,but I don't use "import",I think JSP can find it. /*hello.java*/ public class hello{ String a; public hello(String a){ this.a=a; } public String getValue( return a; } } But when I run index.jsp,it raised error: cannot resolve symbol : class hello Then I copy hello class into test directory,it still raise above errors. My questions are: 1.I want to know what default path which JSP use class 2.I don't want to use "package" in hello.java, If I use import in JSP,how to write this import statement? Thanks. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Online Chat, Aug. 12, on the Portlet Specification (JSR 168)
A portlet is a Java technology-based component that generates fragments that can be aggregated with other fragments to create a complete portal page. A portlet can use JSP pages. The Portlet Specification, JSR 168, which you can find at http://jcp.org/en/jsr/detail?id=168 establishes a standard API for creating portlets. It's designed to ensure interoperability between portlets and Java-based portal servers or other Web applications that implement the specification. Learn more about the Portlet Specification, and get questions answered in this chat with Portlet Specification co-lead Alejandro Abdelnur, and Sun ONE Portal Server product manager Adam Abramski. The chat is scheduled for Tuesday, August 12, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT). To join the chat on August 12, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session". - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Online Chat, July 15, On Java Web Services Developer Pack 1.2
On Wed, 9 Jul 2003 14:54:02 -0700, Edward Ort <[EMAIL PROTECTED]> wrote: >Find out what's new and significant in the recently-released >Java WSDP, version 1.2, and get questions answered in this chat >with Senior Engineer, Eduardo Pelegri-Llopart, and Technical Lead, >Rajiv Mordani. This chat, which was originally scheduled for >June 5, will be held on Thursday, July 15, at 11 A.M.-to-noon >Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT). > >To join the chat on July 15, go to >http://developer.java.sun.com/developer/community/chat/index.html >and click on "Join the current session". >- >Ed Ort Sun Microsystems, Inc. >Software Developer 18 Network Circle > Marketing & ManagementM/S MPK18-113 >Phone: (650) 786-9706 Menlo Park, CA. 94025 >Fax: (650) 786-0494 [EMAIL PROTECTED] >- >Note that the chat is on Tuesday, July 15 (not Thursday). > == >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > >Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Online Chat, July 15, On Java Web Services Developer Pack 1.2
Find out what's new and significant in the recently-released Java WSDP, version 1.2, and get questions answered in this chat with Senior Engineer, Eduardo Pelegri-Llopart, and Technical Lead, Rajiv Mordani. This chat, which was originally scheduled for June 5, will be held on Thursday, July 15, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT). To join the chat on July 15, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session". - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Rescheduled: Online Chat on Java Web Services Developer Pack v 1.2
Because of technical problems, we couldn't hold today's chat on the Java Web Services Developer Pack, version 1.2. The chat has been rescheduled to Tuesday, July 15, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT). The guests again will be Senior Engineer, Eduardo Pelegri-Llopart, and Technical Lead, Rajiv Mordani. To join the chat on July 15, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session". I apologize for any inconvenience. - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Reminder: Online Chat, June 5, on Java Web Services Developer Pack v 1.2
This is a reminder about Thursday's online chat on the next version of the Java Web Services Developer Pack, version 1.2. The guests are Senior Engineer, Eduardo Pelegri-Llopart, and Technical Lead, Rajiv Mordani. The chat is scheduled for Thursday, June 5, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT). To join the chat on June 5, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session". - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Online Chat, June 5, on Java Web Services Developer Pack v 1.2
The Java Web Services Developer Pack (Java WSDP) is an integrated toolkit that allows Java developers to build, test and deploy XML applications, Web services, and Web applications. Among the tools that Java WSDP provides is the JavaServer Pages Standard Tag Library (JSTL). Find out what's coming in the next version of Java WSDP, version 1.2, and get questions answered in this chat with Senior Engineer, Eduardo Peleri-Llopart, and Technical Lead, Rajiv Mordani. The chat is sheduled for Thursday, June 5, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT). To join the chat on June 5, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session". - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to transfer information between JSP and Javascript?
I have a question about transfer information between JSP and Javascript. I have a Vector variable,it has several values,such as "Peter","John","Kate". I show it in the table and show one each time.I provide a link,when click this link,show next value.For example: first time show "Peter",when I click this link,it shows "John" and so on.But I encounter a question.I don't know how to transfer value back to JSP. I write code to realize it,but when I click link,I found the value don't changed! Why? My code is follows: /*test.jsp*/ <%@ page import="java.util.Vector" %> <%! int index=0; %> <% Vector v=new Vector(); String username; String name="Peter"; v.add(name); name="John"; v.add(name); name="Kate"; v.add(name); username=(String)v.get(index); %> <!-- function PageNext() { index++; document.thisform.submit(); } --> <% username=(String)v.get(index); %> Name <%=username%> Next Page How to realize it? Any idea will be appreciated! Best Regards, Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
ANN: Reminder -- Online Chat, March 11, on Servlet & JSP Technologies
This is a reminder about tomorrow's (March 11) online chat titled "New Developments in Servlet and JSP Technologies." The guests are noted computer scientist Marty Hall, author of the books "Core Servlets & JavaServer Pages", and "More Servlets & JavaServer Pages"; and Sun Technical Staff Member and JSP 2.0 Specification Co-Lead, Mark Roth. This is a good opportunity to get answers to servlet and JSP-related questions. Marty and Mark will answer your questions on Tuesday, March 11, at 11 A.M.-to-noon Pacific time (7:00 P.M.-to-8 P.M. GMT). To join the chat, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the Current Session". - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] Online Chat: New Developments in Servlet and JSP Technologies
Got a question about Java Servlet Technology or JSP Technology? Want to find out what's new in these areas? Then join this online chat with noted computer scientist Marty Hall, author of the books "Core Servlets & JavaServer Pages", and "More Servlets & JavaServer Pages", and Sun Technical Staff Member and JSP 2.0 Specification Co-Lead, Mark Roth. They'll answer your questions on Tuesday, March 11, at 11 A.M.-to-noon Pacific time (7:00 P.M.-to-8 P.M. GMT). To join the chat, go to: http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the Current Session". - Ed Ort Sun Microsystems, Inc. Software Developer 18 Network Circle Marketing & ManagementM/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
errors In run my jsp
I have a question ,this question puzzled me for a long time. I put a Javascript in my JSP file.But this Javascript raise errors.My structure is a bit complicated. I have a jsp file named total.jsp,it includes three JSP file. one JSP file "body.jsp" contains JavaScript.My purpose is to run total.jsp first,and from total.jsp,I run body.jsp,so I can run my JavaScript in it.But when I run it,it raise errors: line:10 error:document.newUserForm is not object Why raise this error? Please help me.My files are follows: total.jsp --- | title.jsp | | body.jsp | | foot.jsp | --- /*total.jsp*/ total <%@ include file="title.jsp" %> <%@ include file="body.jsp" %> <%@ include file="foot.jsp" %> /*title.jsp*/ This is title jsp /*foot.jsp*/ This is foot jsp /*foot.jsp*/ <%@ page contentType="text/html" %> function trans() { document.newUserForm.submit(); } Thanks in advance === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
How to get jsp attribute?
I have a question about JSP. I have a JSP like follows: /* content.jsp locates http://localhost:8080/Si/content.jsp */ ... ... ... When I click ok button,this JSP come into Servlet "myservlet",myservlet is follows: /* mycontent is locates different directory with content.jsp */ ... public void doPost(...) { ... getServletConfig().getServletContext().getRequestDispatcher("/content.jsp").forward(request, response); } In myservlet,I deal some thing and come into JSP "content.jsp" again,and I found raise some errors:some picture in "content.jsp" are lost! My question is how to store attribute "" in Servlet "myservlet" and when myservlet comes into JSP "content.jsp" again, how to restore attribute ""? Thanks in advance! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
code 0 error
I have a JSP, I create a Submit button,when click this button,it will transport a variable to a Servlet. But when I click this button,IE6 raise a error,like follows: line:2 char:13 error: missing ';' code:0 URL: http://192.168.39.143:8080/NEWEPG/servlet/program_send?choice=0 Why raise error? I am puzzled with it.Please help! My JSP code is follows: <%@page contentType="text/html;charset=GB2312"%> <%@page language="java"%> <%@page import="java.io.*" %> Guide function returntomenu() { window.location.href="http://192.168.39.143:8080/NEWEPG/EPG.html";; } http://192.168.39.143:8080/NEWEPG/images/EPG.jpg"; text="FF"> http://192.168.39.143:8080/NEWEPG/servlet/program_send?choice=0"; method="POST"> Send system <% String value[]=new String[2]; String str; try { BufferedReader in=new BufferedReader(new FileReader("F:\\Apache Tomcat 4.0\\webapps\\NEWEPG\\version.data")); str=in.readLine(); in.close(); value=str.split(":"); System.out.println(str); } catch(IOException e) { System.out.println("read file error"); } %> Please version(0-31) NIT version: BAT-SDT-EIT version: === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Java code can't run in JSP
I have a question about JSP,I put some Java code into JSP,it like follows: <%@page language="java"%> <%@page import="java.io.*" %> test <% String value[]=new String[2]; String str; value[0]="8"; try { InputStream is = this.getClass().getResourceAsStream("version.data"); BufferedReader input = new BufferedReader(new InputStreamReader(is)); str=input.readLine(); } catch(IOException e) { System.out.println("read file error"); } %> when I run it,it raise errors: Description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request exception: java.lang.NullPointerException at java.io.Reader.(Reader.java:61) at java.io.InputStreamReader.(InputStreamReader.java:55) at org.apache.jsp.start_0005fsend$jsp._jspService(start_0005fsend$jsp.java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) Then I extract my Java code,and put it into Java file,like follows: import java.io.*; public class test8 { public static void main(String args[]) { test8 ss=new test8(); ss.pp(); } public void pp() { String value[]=new String[2]; String str; value[0]="8"; try { InputStream is = this.getClass().getResourceAsStream("version.data"); BufferedReader input = new BufferedReader(new InputStreamReader(is)); str=input.readLine(); System.out.println(str); } catch(IOException e) { System.out.println("read file error"); } } } It run ok.Why my code can't run in JSP and can run in Java? How to correct to make my Java code run in JSP? Thanks in advance! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Reminder: Online chat on JavaServer Faces Technology, Oct. 8
This is a reminder that there will be an online chat on JavaServer Faces Technology on Tuesday, October 8, at 11 A.M-to-noon PDT (6 P.M-7 P.M. GMT). the guests are spec lead, Craig McClanahan, and former spec lead, Amy Fowler. If you have a question about JSF, this is a good opportunity to get answers from experts in this area. To join the chat, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session." - Ed Ort Sun Microsystems, Inc. Java Developer Connection 18 Network Circle Editorial Staff M/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Online chat, Oct. 8, on JavaServer Faces Technology
Got a question about JavaServer Faces, a technology that simplifies building UI components for Web applications? Get answers in this online chat with two experts in this area: Craig McClanahan and Amy Fowler. They will answer your questions on Tuesday, October 8, at 11:00 A.M. PDT/6:00 P.M. GMT. To join the chat, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session." - Ed Ort Sun Microsystems, Inc. Java Developer Connection 18 Network Circle Editorial Staff M/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
How to protect file from download in JSP?
I have a JSP file and I deploy it with Apache Tomcat.For example,test.jsp is follows: <%@page contentType="text/html> <%@page language="java" %> test http://192.168.39.143:8080/test/system.js"</A>;> µç×Ó½ÚÄ¿Ö¸ÄÏϵͳ When user visit this test.jsp,he may view this JSP source code by use IE6-View-Source File function and found this source code,then input http://192.168.39.143:8080/test/system.js in IE6 address,he can download my system.js file.But I want to protect my system.js content,how to do it? Thanks in advance! Edward King èº{.nÇ+·¦j)m¢X¬¶Ç«¾6¯j˧r°Ø[¡Ü¬è}òR<SLZ+v(²Ù[h+-±êï«Ú²éÜ¢l"¶èw+´ ÔÄDD I4¨êÞëÚÑ@BÊ'%#ÿIêïëlq©Ûyú.ÖÛiÿö«r¯zÈÚ½«.Ê&þ;){^ë-Ù¥ÛiÿøÚ½«.Ê&þèvç-³øì§÷Úªfm§ÿðì¥êÚÚ(® óþ;)þ;)}ª£²m¶ÿÃ#êîr¿}ª¿w^Æ;)Ûiÿü0Â;){"uêÜ¢
Why I can't transfer String Array variable into Javascript function in JSP?
I have a JSP file,it include a Javascript,it follows: <!-- function display(message) { alert(message); } --> <% String[] msg=new String[2]; msg[0]="Hello"; msg[1]="world"; %> Then I transfer msg into Javascript,like follows: Click Here I found it can't work at! Why? I have thought of it for a long time,but I still don't know to do it! How to correct this JSP file? Thanks in advance! Best regards, Edward King === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
a puzzled JSP question!!!
I encountered a puzzled JSP question.I have a HTML file,I have a link in this HTML,for example: http://192.168.39.143:8080/EPG/input.jsp"; style="color:#00FA9A" >Input System I use Apache Tomcat4.0 to deploy input.jsp. When I click above href, a puzzled phenomena raised! My input.jsp shows only a part.When I click fresh button of IE6,my input.jsp shows fully! Why? My input.jsp is follows: <%@page contentType="text/html;charset=GB2312"%> System http://192.168.39.143:8080/EPG/images/EPG.jpg"; text="FF" ONLOAD=show5()> http://192.168.39.143:8080/EPG/servlet/programme_input"; method="POST"> Input System http://192.168.39.143:8080/EPG/images/bird.gif"; height="50" width="100" alt="Electronic Programme Guide"> http://192.168.39.143:8080/EPG/timer.js";> http://192.168.39.143:8080/EPG/subtype.js";> channels: SKY TV1 SKY TV2 SKY TV3 SKY TV4 SKY TV5 SKY TV6 names: ½ÚÄ¿ÀàÐÍ: news sport important general dates: begintime: stoptime: When the file "input.jsp" shows not fully in my computer's screen,I click right button of mouse,I got it's source code at that time,I found JSP not fully,it follows: <%@page contentType="text/html;charset=GB2312"%> System http://192.168.39.143:8080/EPG/images/EPG.jpg"; text="FF" ONLOAD=show5()> http://192.168.39.143:8080/EPG/servlet/programme_input"; method="POST"> Input System http://192.168.39.143:8080/EPG/images/bird.gif"; height="50" width="100" alt="Electronic Programme Guide"> http://192.168.39.143:8080/EPG/timer.js";> http://192.168.39.143:8080/EPG/subtype.js";> channels: SKY TV1 SKY TV2 SKY TV3 SKY TV4 SKY TV5 SKY TV6 names: ½ÚÄ¿ÀàÐÍ: news sport important general dates: begintime:
Re: application scope
Setting attributes with application scope means that every user of that application will have access to those attributes. If they are user-specific attributes (i.e. login name) then you probably do not want to use application scope. However, if you want a single user to have access to those attributes on every page that the user visits then you may want to use session scope. Ed Foley Hiren Dossani wrote: >hi, >how to set the scope to application for retrieving the request attributes ? >at present, i set the request attributes on one page and then try to get the >request attributes on another page, it returns me null. > > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
How to set value in JSP and send it to Servlet?
I have serveral buttons.When click one of them,I want to set different value according the button name and send it to Servlet,for example when click the first button,I want to set value "001" and "Open",when click the second button,I want to set value "002" and "Private",and so on. Then transfer it to Servlet.I want to know how to realize it? My Jsp file like follows: User Menu <% String message[]; String syskubun[]; message=(String[])request.getAttribute("jsp"); syskubun=(String[])request.getAttribute("SysKubun"); String SysID[]=new String[message.length]; String Kubun[]=new String[message.length]; for(int j=0;j value="<%=message[j]%>" style="width:200px" onclick="javascript:goToServlet(j)"> <% } function goToServlet(int i) { //Here I want to set value,such as when i=0,I want to set the value of SysID[0] and Kubun[0] //When i=1,I want to set value of SysID[1] and Kubun[1],how to realize it? document.myform.submit(); } Thanks very much!!! Regard, Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
How to redirect JSP to Servlet by clicking button?
I want to call Servlet from JSP,In JSP,I have three button,named "button1","button2","button3",for example: value="<%=button1%>" style="width:200px"> value="<%=button2%>" style="width:200px"> value="<%=button3%>" style="width:200px"> When I click button1 with mouse,I want to redirect to a servlet,it locates: /servlet/login1;when I click button2 with mouse,I want to redirect to servlet:/servlets/login2;when I click button3,I want to redirect to servlet:/webapp/welcome. How to realize this function? Thanks in advance! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
How to put my buttons in the middle of screen?
I have a JSP,it get String[] from Servlet.If String[] length between 1 and 4,then put them in the middle of screen by one column.If String[] length between 4 and 8,then put them in the middle of screen by two columns.My JSP is follows: User Menu <% String message[]; message=(String[])request.getAttribute("jsp"); for(int j=0;j value="<%=show%>" style="width: 200px"> <% } %> I don't know how to realize this function.Please help! Thanks in advance!!! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Why I got error by calling JSP?
I call jsp from a servlet.My servlet locates at F:\myeino\eino\WEB-INF\classes\eino\GetUserIdentity.class My servlet's war locates at F:\myeino\loginwebapp.war My jsp locates at F:\myeino\eino\error.jsp >From servlet,I call jsp at follow statements: String str="hello"; request.setAttribute("jsp",str); /*follow statement is 183 line,when I execute follow statement,I got error*/ getServletConfig().getServletContext().getRequestDispatcher("loginwebapp/error.jsp").forward(request,response); My jsp is follows: <%@ page contentType="text/html; charset=GBK" %> error JBuilder Generated JSP <% String message; message=(String)request.getAttribute("jsp"); out.write(""+message+""); %> When I call jsp from servlet,I got errors: java.lang.NullPointerException at eino.GetUserIdentity.doPost(GetUserIdentity.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) I thought this error for several days,but I still found where is error.Please help! Thanks in advance!!! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Why my button have different size in JSP?
I transfer a String[] type data into a JSP from a Servlet,String[] is put into HttpSession,I got String[] in JSP: String message[]; message=(String[])request.getAttribute("jsp"); In message[],every message has different data and size,for example: message[0]="animal login"; message[1]="planting open";//message[1] has size=13; message[2]="insect login"; //message[0] and message[2] has same size=12; I transfer message[0],message[1],message[2] into same size,but when I visit JSP,it show a puzzled display,every button has different size,it shows follows: animal login* planting open** insect login*** I have puzzled it very much,message[0] and message[1] has same size,why it show different size? My JSP is follows: <%@page import="java.io.*"%> User Menu <% String message[]; int length; int location; message=(String[])request.getAttribute("jsp"); for(int j=0;j value="<%=show%>" > <% } %> I don't know where is error? I have another question,when click the first button,I want to redirect it into a URL,for example http://192.168.2.21:8080/welcome.html. How to realize it? Thanks in advance! Edward === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Online chat, Feb. 26, New Developments in Servlet & JSP Technology
Want to find out what's new in Java Servlet and JSP technologies? Got a question about these technologies? Get insights and answers in this chat with Marty Hall, author of Core Servlets & JavaServer Pages (http://www.coreservlets.com) and More Servlets & JavaServer Pages (http://www.moreservlets.com) from Sun Microsystems Press. The chat is scheduled for Tuesday, February 26, 11:00 A.M. PST/7:00 P.M. GMT To join the chat, go to http://developer.java.sun.com/developer/community/chat/index.html - Ed Ort Sun Microsystems, Inc. Java Developer Connection 18 Network Circle Editorial Staff M/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Online chat, Feb. 21, on Web Services
Got a question about Web services? Want to learn more about the Java Web Services Developer Pack? Then join this chat with Java WSDP architect Eduardo Pelegri-Llopart and implementation lead Craig McClanahan. They'll answer your questions on Thursday, February 21 at 11:00 A.M. PST/7:00 P.M. GMT. To join the chat, go to http://java.sun.com/jdc/community/chat/index.html and click on "Join the current session." - Ed Ort Sun Microsystems, Inc. Java Developer Connection 18 Network Circle Editorial Staff M/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Online chat, Sept. 11, JSP Technology and JSP Tag Libraries
Got a question about JSP technology or JSP tag libraries? Ask two experts: Sun engineers Eduardo Pelegri-Llopart and Pierre Delisle. They will answer your questions in an online chat on Tuesday, September 11, at 11:00 A.M. PDT/6:00 P.M. GMT. To join the chat, go to http://java.sun.com/jdc/community/chat/index.html and click on "Join the current session". - Ed Ort Sun Microsystems, Inc. Java Developer Connection 18 Network Circle Editorial Staff M/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Does tomcat support EJBs?
>I need someone expert to answer my doubt about tomcat. >Does it support enterprise java beans (entity and session beans)? Sio, Tomcat does not support EJBs. You need to have an application server such as EJBOSS, Weblogic or Websphere. Ed Foley === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Session timeout
Santosh, If you are asking how can you remove an attribute from a session, see the removeAttribute(String attrName). The memory will be released the next time the garbage collector is run or you can call System.gc() (if memory serves me correctly). I'm not sure if there is any method like valueUnbound() that will tell you when a Session times out. Ed Foley Webclaims, LLC -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Salian, Santosh (GXS, TCS) Sent: Tuesday, June 12, 2001 12:04 PM To: [EMAIL PROTECTED] Subject: Session timeout Hi , Is it possible to explicitely release the memory held by a bean and also to handle Session timeout ? I have JSP running on Jrun 2.3.3. Thanks and Regards, Santosh === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Online chat, Feb. 20, Servlets and JavaServer Pages Technology
Got a question about servlets or JSP technology? Ask it in this online chat with noted computer scientist Marty Hall, author of the book Core Servlets and JavaServer Pages(TM) (http://www.coreservlets.com/). The chat will be held on Tues., Feb. 20, at 11:00 A.M. Pacific time. To join the chat, go to http://java.sun.com/jdc/community/chat/index.html and click on Join the current session. - Ed Ort Sun Microsystems, Inc. Java Developer Connection 18 Network Circle Editorial Staff M/S MPK18-113 Phone: (650) 786-9706 Menlo Park, CA. 94025 Fax: (650) 786-0494 [EMAIL PROTECTED] - === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
WebLogic cooperation with IDE's
Greetings All I am interested in hearing from developers using BEA WebLogic. We have bought this product but not standardised on a development environment. We are primarily a Borland shop, and thus tend toward JBuilder, especially given that it supposedly has good integration with this product. Comments appreciated - Thanks, Edward Garson Channel4 Television Corporation [EMAIL PROTECTED] (020) 7306-5373 Any views or opinions are solely those of the author and do not necessarily represent those of Channel Four Television Corporation unless specifically stated. This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JBuilder JSP Configuration
Hello All I can't get JBuilder to work properly on one of my machines. When I try to run the Sample JSP app, I see that Tomcat successfully starts, but that none of the HTTP messages are being picked up. So, the JSP code in the page is never being called. I then tried connecting to the internet and re-launching the app; much to my amusement, it works like this! I don't have to do this at work (is this because it's a networked machine?) and of course I shouldn't have to do this at home. How do I set up the environment such that I don't need to connect to my ISP in order to 'do' JSP? I am running JBuilder 4 on Win 95. Thanks Edward Garson [EMAIL PROTECTED] Any views or opinions are solely those of the author and do not necessarily represent those of Channel Four Television Corporation unless specifically stated. This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Special Tomcat Setup Requirements
Hello I have a special need in setting up Tomcat. I have JBuilder 4 Professional installed, which comes with JDK 1.3 and Tomcat which reside in subdirectories as follows: Tomcat: C:\JBuilder4\Tomcat JDK1.3: C:\JBuilder4\jdk1.3 I want to enable the launching of Tomcat stand-alone from JBuilder to replace PWS. I have followed the Tomcat Minimalistic User's Guide and done the following: - Added the following to my autoexec.bat: SET TOMCAT_HOME="C:\JBuilder4\tomcat"; SET JAVA_HOME="C:\JBuilder4\jdk1.3"; The last step of the installation instructions state, "...then add the Java interpreter to your PATH envrionment variable..." I am totally brand new to java; what is the Java interpreter, and where does it reside? Finally, the Tomcat setup stipulates that JDK installation is required to use it. Will I have any troubles considering I have not actually installed JDK 1.3, or does the JBuilder install JDK 1.3 for me? Any help would be greatly appreciated, Fond Regards Edward Garson Channel 4 Television Corporation [EMAIL PROTECTED] Any views or opinions are solely those of the author and do not necessarily represent those of Channel Four Television Corporation unless specifically stated. This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Best JSP Tool
JBuilder4 has wonderful support for all aspects of JSP development, and comes with Tomcat straight out of the box. Edward Garson Channel 4 Television Corporation [EMAIL PROTECTED] > -Original Message- > From: Khurram Sardar [SMTP:[EMAIL PROTECTED]] > Sent: Friday, November 10, 2000 5:57 AM > To: [EMAIL PROTECTED] > Subject: Re: Best JSP Tool > > IBM WebSphere Studio provides support to develop JSP pages. But ain't > really > good at it. It has a lot of wizards but not really good GUI (An essential > need > of a developer). > > > > > Sherry Hu <[EMAIL PROTECTED]> on 11/09/2000 10:08:54 PM > > Please respond to A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > cc:(bcc: Khurram Sardar/PK/ABNAMRO/NL) > Subject: Re: Best JSP Tool > > > > Hi, > > Has anybody used IBM WebSphere to create JSP? > According to the product introduction, I think it > might be something like Symantec Visual Cafe, but not > sure. Can someone help me out here? Thanks. > > Sherry > --- Alan KF LAU <[EMAIL PROTECTED]> wrote: > > Very informative(Score: 5) and very helpful. Thanks > > a lot. > > > > > > > > It's worth checking out the free version of IBM > > VisualAge. You can run > > > Apache Tomcat within the IDE and debug servlets > > and JSPs. You can even > > > modify running code. > > > > > > See > > > > > > http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument&p=1&BC > T= > > > 3&Footer=1. > > > > > > I wouldn't call it an IDE for JSPs though, as > > there are no features for HTML > > > designing. I could do with a visual HTML editor > > that knows JSP. Preferably > > > free. Any ideas? > > > > > > Chris Walker > > > Brainbench MVP for ASP > > > http://www.brainbench.com > > > > > > > > > > > > > -Original Message- > > > > From: Mio Nino Marquez > > [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, November 06, 2000 2:12 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: Best JSP Tool > > > > > > > > > > > > Khurram, > > > > > > > > We went to the product launch of JBuilder 4 > > recently and was really > > > > impressed with it. > > > > The JBuilder 4 Enterprise edition allows you to > > do Servlet / JSP > > > > debugging... this includes stepping through > > codes, modify > > > > variable values > > > > etc. > > > > It's expensive though. But you can have > > the Pro albeit > > > > without JSP / > > > > Servlet debugging capabilities. > > > > > > > > For other stuffs, you may want to check this > > out: > > > > > > > > JSP for Code Jockeys > > > > > > > http://www.zdnet.com/products/stories/reviews/0,4161,2639151,00.html > > > > > > > > Mio Nino P. Marquez > > > > Senior Analyst Programmer > > > > Apsilon Technologies Pte Ltd > > > > Email: [EMAIL PROTECTED] > > > > DID : (65) 6613219 > > > > > > > > - Original Message - > > > > From: "Khurram Sardar" > > <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Monday, November 06, 2000 3:00 PM > > > > Subject: Best JSP Tool > > > > > > > > > > > > > Hello Everyone, > > > > > Does any one know that which one is the > > best JSP tool > > > > other than > > > > notepad. > > > > > AS per my knowledge Tools like JBuilder are > > really good at it. > > > > > Please share your knowledge of JSP tools > > with me also > > > > if anyone know > > > > about > > > > > some web site giving benchmarks on comparisons > > of JSP tools. > > > > > I think it will be helful to all of us > > and solve many of tool > > > > dependent > > > > > problems. > > > > > Waiting for your interest > > > > > Khurram > > > > > Junior System Analyst Programmer > > > > > > > > > > > > __ > > > > ___ > > > &
Tomcat as Personal Web Server Replacement
Greetings JSP Community I am interested in using Tomcat in the same capacity (read: replace) as Microsoft's Personal Web Server, such that I may replace ASP with JSP. Is it possible to set up a simple Tomcat configuration on a Win95 machine to respond to intranet http requests, or will I have to download, install and configure Apache to enable this? Does anyone have relevant experience or know of an appropriate resource? Thankyou for your interest I am using JBuilder Professional 4 on Win95 Edward Garson Channel4 Television Corporation +44 (020) 8874-3299 Any views or opinions are solely those of the author and do not necessarily represent those of Channel Four Television Corporation unless specifically stated. This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Question regarding JSP and HTML forms
Dear Ryan, As per the specifications, JSP is compiled on the server. Javascript is typically run on the client's web browser. So, the answer to your question is no. JSP builds the web pages and is not living code on the client's machine. You can, however, get the parameters passed in the form once they reach the server. -Ed "Ryan Richards" <[EMAIL PROTECTED]> on 09/06/2000 02:31:42 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: (bcc: EDWARD M. BORISO/EMPL/VA/Bell-Atl) Subject: Question regarding JSP and HTML forms Question: I am trying to use JSP's for a project I am working on. Can I use JSP to obtain information from HTML form elements as I would do in JavaScript? hence eliminating the need for JavaScript altogether? Any links to JSP-HTML Form info would be appreciated. I have had trouble finding specific info on this subject. Ryan ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Online chat on Core Servlets and JSP
There will be a moderated, online chat on core servlets and JSP technology on Tuesday, August 8, at 11:00 A.M. PDT. The guest is noted computer scientist Marty Hall, author of the book Core Servlets and JavaServer Pages(tm). To join the chat, go to http://developer.java.sun.com/developer/community/chat/index.html. On that page you will also find a tool to convert Pacific time to your local time. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP and SERVLET COMMUNICATION
Hi All, I'm just working with JSPs calling servlets, who in turn call another JSP. JSP->SERVLET->JSP I'm also working with servlets calling one another. SERVLET->SERVLET I'm using JSWDK-1.0.1. For jsp->servlet->jsp, I'm having problems in that I am able to get my jsp page to be called, but when I call my servlet the browser says, "The page cannot be displayed". If I hit refresh my servlet then works. For servlet->servlet, I'm getting the error (on JSDK2.0) SimpleServlet.java:54:Method getRequestDispatcher(java.lang.String)not found in interface javax.servlet.ServletContext. getServletContext().getRequestDispatcher("YouTheManEd.jsp").forward(request, response); Here is my code... public void doGet ( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { PrintWriter out; String title = "Ed's Power Sample Servlet Output"; // set content type and other response header fields first response.setContentType("text/html"); // then write the data of the response out = response.getWriter(); //NEW STUFF { getServletContext().getRequestDispatcher("YouTheManEd.jsp").forward(request,resp onse); } catch(Exception ex) { out.println(""); out.println(title); out.println(""); out.println("" + title + ""); out.println("This is output from SimpleServlet."); out.println(""); out.close(); } //END KIND OF NEW STUFF } IT appears like I need to update my version of ServletContext class, but I don't know how. Thanks for your time. Ed === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
hidden fields
Hi Everyone...I was wondering if anyone can tell me how to pass hidden fields from one jsp to another jsp. here are my examples... here is my standard input... here is an example of what I'm trying to do... --- on my jsp that is being called...I get the "password" value like this... <%=password%> now can someone show me how to check the "password_Required" variable... thanks. ed === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Design choices: JSP & Javascript
JSP is compiled into html on the server, so resetting selection boxes based upon data input should be done in Javascript. Simple data validation is a good example (i.e. you need a numerical entry). As far as your second issue, it really depends on what "actions" are being done. JSP can only do as much as HTML on the client side. The power of JSP is the processing on the server. As a recommendation, I would use JSP model 2. -Ed "Tom Miller" <[EMAIL PROTECTED]> on 06/06/2000 12:59:39 PM Please respond to "A mailing list about Java Server Pages specification and reference" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: (bcc: EDWARD M. BORISO/EMPL/VA/Bell-Atl) Subject: Design choices: JSP & Javascript I have been asked to bring a bunch of PERL web functionality into a JSP environment. Many of the specs are requesting Javascript capabilities, like resetting "select" options on the fly, to match other "selection"s. I have read posts and book sections about the possibility of mixing Javascript and JSP, and have experimented a little. But I am asking myself, why not just do it all in JSP? and, is there anything available in Javascript that couldn't also be done in JSP, Beans, taglibs, etc.? Secondly, our chief designer would like to be able to control some actions to be "client side", preserving memory and processing resources on our server. If I opt for doing everything in JSP, does that preclude using client resources? Any thoughts or references will be appreciated. Tom Miller === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Help needed in javascript
Use top.location.replace('/LinkThreeToSecondPage.jsp'); That will replace the current page's entry in the history list with "LinkThreeToSecondPage.jsp" "srinivasa rao yeramati" <[EMAIL PROTECTED]> on 05/01/2000 03:37:47 PM Please respond to "A mailing list about Java Server Pages specification and reference" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: (bcc: EDWARD M. BORISO/EMPL/VA/Bell-Atl) Subject: Help needed in javascript Hi I need to have the following functionality in jsp pages from page one i have three links . when i click on link one or two and go to the next page i should be able to come back to page one using browser back button. If i click link three and go to the next page i should not come back to the page one. right now i am using history object for this but it not solving the purpose as it is unable to differtiate the links. is there any method to clear the history in javascript. thanks to any one who can help me. srini Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP vs. ASP
Hello list! This is my first posting and I'm a newbie to JSP. Actually, I know very little about it. We're using NT servers and running Active Server Pages (ASP) web applications with SQL 7.0 as our back-end database server, however, we're not thrilled with the performance. I'm wondering if anyone could shed a little light on whether JSP would be a much better choice than ASP.Thanks! Edward Pearson Web Developer www.ninthhouse.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html