Re: Servlets question, Urgent!!!!
Sneha Sharma@CONTEXT 07/25/2000 01:13 PM java.net.URL url = null; try { url = new java.net.URL("http://server/cgi-bin/my.pl"); } catch(java.net.MalformedURLException e) { System.out.println(e.toString()); }//try try { java.net.URLConnection conn = (java.net.URLConnection)url.openConnection(); conn.setDoOutput(true); conn.setUseCaches(false); conn.setRequestProperty("content-type","application/x-www-form-urlencoded") ; java.io.DataOutputStream dos = new DataOutputStream(conn.getOutputStream()); conn.connect(); String queryString = "name=Sneha&address=123"; dos.writeBytes(queryString); dos.flush(); dos.close(); System.out.println("Sent the mail"); //Take the output of the script file java.io.InputStream ins = null; ins = conn.getInputStream(); String strLine = ""; StringBuffer strbufFileContents = new StringBuffer(0); if(ins != null) { java.io.BufferedReader bufFile = new java.io.BufferedReader(new java.io.InputStreamReader(ins)); while ((strLine = bufFile.readLine()) != null) { strbufFileContents.append(strLine); }//while bufFile.close(); out.println(strbufFileContents.toString()); }// if(ins) } catch(Exception e1) { System.out.println(e1.toString()); }//try Aparna Neelgar <[EMAIL PROTECTED]> on 07/25/2000 03:31:56 PM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: (bcc: Sneha Sharma/Context) Subject: Servlets question, Urgent Hi all, Is there a way to take the query string parameters to a servlet from command line or from a file? Like instead of using a browser, cna the command line be used to send a query to a servlet which after processing displays a message in html, jsp or just as a out.println(). If so, please let me know. Can it be done using the generic servlet? Thanks in advance. -Aparna 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
Re: Help on JSP
jswdk only works with jdk1.2.2. change your jdk. Suriya Narayanan wrote: > hi suresh... > > i will tell u the class path setting... > > consider ur jdk and jswdk at c:\ > > set path=.;c:\jdk1.3\bin;%path% > > set classpath=.; c:\jdk1.3\lib; c:\jswdk-1.0.1\lib; > c:\jdk1.3\tool.jar; > > suresh set the path and go to the jswdk-1.0.1 > and run the startserver bat file... > > now it will work.. > if any query mail at [EMAIL PROTECTED] > > __ > Do You Yahoo!? > Get Yahoo! Mail Free email you can access from anywhere! > http://mail.yahoo.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
Re: can any one inform me????
Hi , U can keep track of ur session by making use of session context , session id and ur authentication details , From ur problem statement what i understood is that u r trying to invoke the compose box servlet directly , One way u can control the session is by passing some value ( this is the simplest way ) may be session id in request object , in compose box try to read the value of parameter if it is null Or in invalid format send error Or go to login page . Other mech. is using resource bundle, and by persisting data on server side Hope this may help u . Regds, Prakash M A S G Sreenivasulu Naidu wrote: > Hi to all, > >It is related to Servlet ok. > > Files: LoginServlet.java,FirstServlet.java,SecondServlet.java. > > LoginServlet: It evaluates the userid and password.It both are valid then > it invokes the FirstServlet ie it is like a mailbox(now mailbox > opened).Once i pressed the compose button ie in FirstServlet it invokes the > SecondServlet ie compose box. > >Here the problem is , once i copy the enire URL ie of compose > box and paste into the new browser's , > Then once i press the enter button it directly goes to compose box of > SecondServlet ie we are losing the securityauthentication. > > Now we want to maintain security for this session ok. > I tried using Sessionid,sessioncreationtime,lastaccesedtime but i am not > maintaining the security. > How to maintain security using Servlets for entire session ok. > please inform me immediatly > > Thanks Advance. > G.Sreenivasulu Naidu > ___ > Gali Sreenivasulu Naidu, > Velocient Technologies Ltd. > F-2/B-1, Mohan Co-operative Industrial Estate, > New Delhi-110044. > Tel : +91-11-694 5226/5227/5228 > E-mail : [EMAIL PROTECTED] > www.velocient.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
Development Tool
Hi All, I just read in some previous mail that JRun has a scripting tool with debugging facility. I am operating on NT4, IIS4 with New Atlanta's ServletExec webserver. Can I use the same JRun tool with my existing setup? Is any other tool available to write jsp files having dubugging facility? Thanx :-) & Regards, Kaushal === 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: Bug in tomcat 3.1???
Marco M wrote: > > hi all, > i wrote a custom tag for generating HTML from an XML file included > in the JSP page > the structure is EXACTLY the same as the example provided by Craig > McClanahan > as long as i wrote the tag WITHOUT attributes, everything works fine > however, when i add an attribute to the tag, i always receive the error > > 'Cannot find any information on property 'xsl' in a bean of type > 'MyTagClass' > > the tag should be used like this > > > > > simple example > > > > in the corresponding java class, i add two methods: > > setXsl(String xsl) > > getXsl() > [...] Assuming the above is not a typo, the problem is that the setter method is not declared public. It should be like this instead: public void setXsl(String file) { xslFileName = file; } Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.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
This is very ***important*** for me ..please help.
Hi All I am enclosing a complete code for database accessing. It would help beginners to know how to access the database from JSP. But I don't want the JSP to access the database. I want Beans to Access the database and send ResultSet accross to JSP. It is not working whenever I am trying to use the Beans to access it. Any other suggestion with details will be highly appreciated. Thanks & Regards Pradeep Could anyone suggest me what is wrong in my Bean which is expected to return a result set in the JSP file. package dbAccess; import java.util.*; import java.sql.*; import java.lang.*; import java.io.*; public class jspDbAccess { Vector names; Vector data; String firmcode; String workid; String job; String costcode; ResultSet resultSet=null; // public jspDbAccess() { ; } // public void setFirmcode(String firm) { if (firm != null ) { firmcode=firm; } } // public void setWorkid(String id) { if (id != null ) { workid=id; } } // public void setJob(String Jobname) { if (Jobname != null ) { job=Jobname; } } // public void setCostcode(String code) { if (code != null ) { costcode=code; } } // public void setSql(String sqlStr) { Connection connect=null; Statement statement=null; String driverName="com.ibm.as400.access.AS400JDBCDriver"; String url="jdbc:as400://saturn" ; String user=""; String passwd=""; Connection connection=null; // Data to connect to database try { //loading the driver Class.forName(driverName); connection = DriverManager.getConnection(url, user, passwd); } // Error if fail to load the driver catch (Exception exp) { connection=null; System.out.println("Error occured at loading the Driver: " +exp); } try { statement=connection.createStatement(); resultSet=statement.executeQuery(sqlStr); } catch (Exception exp) { System.out.println("Error occured at loading the Driver: " +exp); } } public ResultSet getResultset() { return resultSet; } public void reset() { } } My JSP is as follows: <%@ page import="java.sql.*,java.io.*, java.lang.*, javax.servlet. *,javax.servlet.http.*" %> <% if ((request.getParameter( "Workid" ) != null) && (request.getParameter( "Job" ) != null) && (request.getParameter( "Costcode" ) != null) && (request.getParameter( "Sql" ) != null)) { %> <% String firm = request.getParameter( "Workid" ); String jobname = request.getParameter( "Job" ); String cstcode = request.getParameter( "Costcode" ); String sqlStr = request.getParameter( "Sql" ); String costcodeName=""; String jobDescript=""; String query1="SELECT OIORDN, OIITEM, OIDESC, OIQORD, OIUNIT, OIGUPR2, OITVAL from jp521dtai.jpordoi1 WHERE OIFMCD = '" + firm + "' AND OIJOB = '" + jobname + "' AND OICODE = '" + cstcode + "'" ; ResultSet rs=dbConnect.getResultset(); ( the error I am getting here is the it is not a class method !!!) Please help... try { int size=rs.getFetchSize(); %> <%=size%> <%} catch (Exception exp) { out.println("what is the error"); } %> <%=sqlStr %> <% try { %> Job: <%=jobname%> <%=jobDescript%> Cost Code: <%=cstcode%> <%=costcodeName%> ORDER NO ITEM DESCRIPTION QUANTITY UNIT OF MEASURE RATE AMOUNT <% while(rs.next()) { %> <%=rs.getObject(1) %> <%=rs.getObject(2) %> <%=rs.getObject(3) %> <%=rs.getObject(4) %> <%=rs.getObject(5) %> <%=rs.getObject(6) %> <%=rs.getObject(7) %> <% } %> <% } catch (Exception exp) { out.print("Error at data Processing. Please Try Again."); } %> <% } else { %> <% String id; String firm; String job; String jobDescript; String costcode; String costcodeDescript; String dataLibrary; String query0="SELECT WIWINO, WIMNAM, WIKM1, WIKM2, WIKM2 from r51ACTL. @WKIDWIP" ; %> -
Re: JRUN - any opinions?
Keep JRun, it's OK. there are some very good alternatives too. One important issue with JRun is IMO that you should try to avoid the JRun-specific features. But I would seriously consider an alternative for notepad. I know, saying that you use notepad is very cool and geeky, but a more advanced editor is really helpful. I wouldn't use a big one (JBuilder, cafe, VAJ) but one that stays a bit closer to your notepad like JPadPro, TextPad, SlickEdit, Emacs... Geert Van Damme > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Neal Cabage > Sent: maandag 24 juli 2000 23:51 > To: [EMAIL PROTECTED] > Subject: Re: JRUN - any opinions? > > > Does anyone have any opinions on the best development tools for JSP? > > I am using JRUN with IIS ... and Notepad for developing my scripts... > > Would you recommend other tools? > > Thanks. > Neal > > == > = > 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: This is very ***important*** for me ..please help.
u r declaring ur connection object inside a function which will not be accessible from any other function. So declare these out side the function along with ur other variables hope this will solve ur problem. Pradeep Roy <[EMAIL PROTECTED]> on 07/25/2000 02:05:02 PM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc:(bcc: Kher Tamanna-SWD-ITIL-UB/Itilmail) Subject: This is very ***important*** for me ..please help. Hi All I am enclosing a complete code for database accessing. It would help beginners to know how to access the database from JSP. But I don't want the JSP to access the database. I want Beans to Access the database and send ResultSet accross to JSP. It is not working whenever I am trying to use the Beans to access it. Any other suggestion with details will be highly appreciated. Thanks & Regards Pradeep Could anyone suggest me what is wrong in my Bean which is expected to return a result set in the JSP file. package dbAccess; import java.util.*; import java.sql.*; import java.lang.*; import java.io.*; public class jspDbAccess { Vector names; Vector data; String firmcode; String workid; String job; String costcode; ResultSet resultSet=null; // public jspDbAccess() { ; } // public void setFirmcode(String firm) { if (firm != null ) { firmcode=firm; } } // public void setWorkid(String id) { if (id != null ) { workid=id; } } // public void setJob(String Jobname) { if (Jobname != null ) { job=Jobname; } } // public void setCostcode(String code) { if (code != null ) { costcode=code; } } // public void setSql(String sqlStr) { Connection connect=null; Statement statement=null; String driverName="com.ibm.as400.access.AS400JDBCDriver"; String url="jdbc:as400://saturn" ; String user=""; String passwd=""; Connection connection=null; // Data to connect to database try { //loading the driver Class.forName(driverName); connection = DriverManager.getConnection(url, user, passwd); } // Error if fail to load the driver catch (Exception exp) { connection=null; System.out.println("Error occured at loading the Driver: " +exp); } try { statement=connection.createStatement(); resultSet=statement.executeQuery(sqlStr); } catch (Exception exp) { System.out.println("Error occured at loading the Driver: " +exp); } } public ResultSet getResultset() { return resultSet; } public void reset() { } } My JSP is as follows: <%@ page import="java.sql.*,java.io.*, java.lang.*, javax.servlet. *,javax.servlet.http.*" %> <% if ((request.getParameter( "Workid" ) != null) && (request.getParameter( "Job" ) != null) && (request.getParameter( "Costcode" ) != null) && (request.getParameter( "Sql" ) != null)) { %> <% String firm = request.getParameter( "Workid" ); String jobname = request.getParameter( "Job" ); String cstcode = request.getParameter( "Costcode" ); String sqlStr = request.getParameter( "Sql" ); String costcodeName=""; String jobDescript=""; String query1="SELECT OIORDN, OIITEM, OIDESC, OIQORD, OIUNIT, OIGUPR2, OITVAL from jp521dtai.jpordoi1 WHERE OIFMCD = '" + firm + "' AND OIJOB = '" + jobname + "' AND OICODE = '" + cstcode + "'" ; ResultSet rs=dbConnect.getResultset(); ( the error I am getting here is the it is not a class method !!!) Please help... try { int size=rs.getFetchSize(); %> <%=size%> <%} catch (Exception exp) { out.println("what is the error"); } %> <%=sqlStr %> <% try { %> Job: <%=jobname%> <%=jobDescript%> Cost Code: <%=cstcode%> <%=costcodeName%> ORDER NO ITEM DESCRIPTION QUANTITY UNIT OF MEASURE RATE AMOUNT <% while(rs.next()) { %> <%=rs.getObject(1) %> <%=rs.getObject(2) %> <%=rs.getObject(3) %> <%=rs.getObject(4) %> <%=rs.getObject(5) %>
Weblogic and Cloudscape
> From: Jens Melzer > Sent: Tuesday, July 25, 2000 9:41 AM > To: > > In my project I want to use Weblogic Server 5.1 and your CLOUDSCAPE. > In the moment I test the database connection with following commands: > > E:\weblogic\classes> java utils.t3dbping t3://localhost:7001 "" "" "" > COM.cloudscape.core.JDBCDriver jdbc:cloudscape:demo > > and then Weblogic show me a error: > > Connecting to Weblogic with the Weblogic JDBC Driver > Exception in tread "main" > java.lang.NoClassDefFoundError:com/sun/java/util/collections/ArrayList > at weblogic.kernel.Kernel.declareProperties > at weblogic.kernel.Kernel.ensureInitialized > at weblogic.common.T3Client. > at weblogic.common.T3Client. > at weblogic.common.T3Client. > at weblogic.jdbcbase.t3.Driver.connect > at java.sql.DriverManager.getConnection > at java.sql.DriverManager.getConnection > at utils.t3dbping.main > > What is the reason ? > > Thank you for the help! > > > Consultant > > GFT Systems GmbH > Ehrenbergstraße 11 > D-98693 Ilmenau > Tel: +49 36 77-64 29-0 > Fax: +49 36 77-64 29-11 > [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: JSP Internationalization
Sorry, I stated my question incorrectly. My desire is not to have to create new JSPs for each charset, so I'd like to use UTF-8. However, can I expect that most modern browsers will be able to display UTF-8 for their locale? Obviously I don't expect a Chinese browser to display Hebrew, but I do want the Chinese browser to UTF-8 like it displays BIG5. As well, I was wondering what encoding browsers send form data in, and what happends to it when I try to use it within my JSP/Servlet code. In other words, do I first need to convert the data sent from the browser into Unicode, or does the servlet container do that for me? Thanks, Scott -Original Message- From: Frank Esch [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 10:42 PM To: [EMAIL PROTECTED] Subject: AW: JSP Internationalization Here's is the answer: <%@ page contentType="text/html; charset=UTF-8" %> hope this helps Frank > -Ursprüngliche Nachricht- > Von: A mailing list about Java Server Pages specification and > reference > [mailto:[EMAIL PROTECTED]]Im Auftrag von Scott Evans > Gesendet: Mittwoch, 19. Juli 2000 10:14 > An: [EMAIL PROTECTED] > Betreff: JSP Internationalization > > > Does anyone know of any problems/pitfalls associated with > using UTF-8 as the > content type for JSPs? For example: > > <%@ page contentType="text/html; charset=UTF-8" %> > > Thanks, > Scott > > == > = > 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 === 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: jsp urlencode
U r using many quotes in side a href attribute only a starting and ending quote have to be used that gives you the problem. >From: subramanian Athimoolam <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: jsp urlencode >Date: Wed, 19 Jul 2000 01:40:29 PDT > >hi > now i am change my script like what you are suggested > > var ch=document.form1.Nmessage.value; > var ca=document.form1.Ntopic.value; > >location.href="pre.jsp?value=<%=java.net.URLEncoder.encode(request.getParameter("value"))%>&catid=<%=request.getParameter("catid")%>&parid=<%=request.getParameter("parid")%>&Value1="<%=+java.net.URLEncoder.encode(ch)+%>"&value1="<%=+java.net.URLEncoder.encode(ca)+%> >"; > > > > >but now some different error coming ... > > >C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_df1\_Newpost1.java:82: >Missing term. > > >out.print(+java.net.URLEncoder.encode(ch)+); > >out.print(+java.net.URLEncoder.encode(ca)+); > > >reply me > >subu > >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 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
Re: Bug in tomcat 3.1???
Hi hans, and everybody, sorry if i did not mention that.. (sorry also for my bad english..what is a type??) the methods are written correctly in my java filie public void setXsl(String xsl) public String getXsl() hope that u can help me... thanx in advance & regards marco > -Original Message- > From: EXT Hans Bergsten [mailto:[EMAIL PROTECTED]] > Sent: 25. July 2000 10:36 > To: [EMAIL PROTECTED] > Subject: Re: Bug in tomcat 3.1??? > > > Marco M wrote: > > > > hi all, > > i wrote a custom tag for generating HTML from an > XML file included > > in the JSP page > > the structure is EXACTLY the same as the example provided by Craig > > McClanahan > > as long as i wrote the tag WITHOUT attributes, everything works fine > > however, when i add an attribute to the tag, i always > receive the error > > > > 'Cannot find any information on property 'xsl' in a bean of type > > 'MyTagClass' > > > > the tag should be used like this > > > > > > > > > > simple example > > > > > > > > in the corresponding java class, i add two methods: > > > > setXsl(String xsl) > > > > getXsl() > > [...] > > Assuming the above is not a typo, the problem is that the > setter method > is not declared public. It should be like this instead: > > public void setXsl(String file) { > xslFileName = file; > } > > Hans > -- > Hans Bergsten [EMAIL PROTECTED] > Gefion Software http://www.gefionsoftware.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
Re: How to get date and time ?
- Original Message - From: Yasir Feroze Minhas <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 21, 2000 5:24 PM Subject: Re: How to get date and time ? > Thanks all who helped me. > I used the Date() of javascript like this > > > > var dt = new Date() > document.write(dt) > --> > > > - Original Message - > From: Nagaprakash C S <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 19, 2000 2:56 PM > Subject: Re: How to get date and time ? > > > > Try using the java.util.Calendar functions > > it has lot of unctions for all ur needs > > > > hope it helps > > Prakash > > > > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Satyajit Roshan > > Sent: Wednesday, July 19, 2000 5:08 PM > > To: [EMAIL PROTECTED] > > Subject: Re: How to get date and time ? > > > > > > Hi > > Use Java Script Date objects. > > Satyajit. > > - Original Message - > > From: Yasir Feroze Minhas <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 21, 2000 12:37 PM > > Subject: How to get date and time ? > > > > > > > Hi all, > > > > > > I am writing a JSP application in which I need to get client's date and > > > time. My client can be in the USA, in Japan, In Africa, anywhere in the > > > world. So please tell me what is the best suited method to get the date > > and > > > time according to my client's time zone. > > > > > > Thanks in advance > > > Yasir > > > > > > > > > === > > > 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 > > > > > === > > 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 === 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: This is very ***important*** for me ..please help.
hi try this code... i will work... other wise don't do fully 1st try to connect with DB and execute the query like that... if not getting mail me at [EMAIL PROTECTED] >package dbAccess; > >import java.util.*; >import java.sql.*; >import java.lang.*; >import java.io.*; > >public class jspDbAccess { > ResultSet resultSet=null; >public ResultSet setSql(String sqlStr) > { > Statement statement=null; > Connection connection=null; > String driverName="com.ibm.as400.access.AS400JDBCDriver"; > String url="jdbc:as400://saturn" ; > String user=""; > String passwd=""; > > > >// Data to connect to database > > try > { > //loading the driver > Class.forName(driverName); > connection = DriverManager.getConnection(url, user, passwd); System.out.println("connected"); > } > // Error if fail to load the driver > catch (Exception exp) > { > connection=null; > System.out.println("Error occured at loading the Driver: " >+exp); > } > > >try > { > statement=connection.createStatement(); > resultSet=statement.executeQuery(sqlStr); > } > catch (Exception exp) > { > System.out.println("Error occured at loading the Driver: " >+exp); > } > return resultSet; > } > > > > > } > > >My JSP is as follows: > > > ><%@ page import="java.sql.*,java.io.*, java.lang.*, javax.servlet. >*,javax.servlet.http.*" %> > > > > > > > > bgcolor="#00" > leftmargin=0 > topmargin=0 > marginwidth=0 > marginheight=0> > > > > > > > > alt="Logo"> > > > > > > >="Jobpac Logo"> > ><% if ((request.getParameter( "Workid" ) != null) && > (request.getParameter( "Job" ) != null) && > (request.getParameter( "Costcode" ) != null) && > (request.getParameter( "Sql" ) != null)) { %> > ><% > String firm = request.getParameter( "Workid" ); > String jobname = request.getParameter( "Job" ); > String cstcode = request.getParameter( "Costcode" ); > String sqlStr = request.getParameter( "Sql" ); > > String costcodeName=""; > String jobDescript=""; > >String query1="SELECT OIORDN, OIITEM, OIDESC, OIQORD, OIUNIT, OIGUPR2, >OITVAL from jp521dtai.jpordoi1 WHERE OIFMCD = '" + firm + "' AND OIJOB = '" >+ jobname + "' AND OICODE = '" + cstcode + "'" ; > >ResultSet rs=dbConnect.setSql(query1); > > > > try > { >%> > > > > > > > Job: > ><%=jobname%> > > ><%=jobDescript%> > > > Cost Code: > ><%=cstcode%> > > ><%=costcodeName%> > > > > > > > > > > > ORDER >NO > ="2">ITEM > ="2">DESCRIPTION > ="2">QUANTITY > UNIT OF >MEASURE > ="2">RATE > ="2">AMOUNT > > > > <% > while(rs.next()) { > %> > > ><%=rs.getObject(1) %> > ><%=rs.getObject(2) %> > ><%=rs.getObject(3) %> > SIZE="2"> ><%=rs.getObject(4) %> > ><%=rs.getObject(5) %> > SIZE="2"> ><%=rs.getObject(6) %> > SIZE="2"> ><%=rs.getObject(7) %> > > <% } %> > > > ><% > } > catch (Exception exp) > { > out.print("Error at data Processing. Please Try Again."); > } >%> > > > > > ><% } else { %> > ><% > String id; > String firm; > String job; > String jobDescript; > String costcode; > String costcodeDescript; > String dataLibrary; > >String query0="SELECT WIWINO, WIMNAM, WIKM1, WIKM2, WIKM2 from r51ACTL. >@WKIDWIP" ; > >%> > >- >- here I have hard code the database connection & resultset accessing >HERE which is giving the Result Set Correctly >- >- > <% > try > { rs=dbConnect.setSql(query0); >%> > > > > > > > > Workid > > > <% > while(rs.next()) { > %> > > <%=rs.getObject(1) %> > <% } > } > catch (Exception exp) > { > out.print("Error at data Processing. Please Try Again."); > } > %> > > > > > > > Firm > > > > > Job > > > > Cost Code > > > > > > > > > > > > > > > > > > >Please enter the values & press 'Start Query'...press 'Clear' for new >entry. > > > > ><% } %> > > > > > >=== >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/f
Re: This is very ***important*** for me ..please help.
Hi Pradeep Roy, U r making the database connection in ur setSql() function and that function is not called any where. Either u make the database connection in the constructor of the bean and use that connection later in the function. Or call the setSql function in the jsp page like <% dbConnect.setSQL(query); %> before ur call to get the resultSet. Vivek Ojha --- Pradeep Roy <[EMAIL PROTECTED]> wrote: > Hi All > > I am enclosing a complete code for database > accessing. It would help > beginners to know how to access the database from > JSP. > But I don't want the JSP to access the database. I > want Beans to Access the > database and send ResultSet accross to JSP. It is > not working whenever I am > trying to use the Beans to access it. > > Any other suggestion with details will be highly > appreciated. > > Thanks & Regards > Pradeep > > Could anyone suggest me what is wrong in my Bean > which is expected to > return a result set in the JSP file. > > package dbAccess; > > import java.util.*; > import java.sql.*; > import java.lang.*; > import java.io.*; > > public class jspDbAccess { > > Vector names; > Vector data; > String firmcode; > String workid; > String job; > String costcode; > ResultSet resultSet=null; > > > // > public jspDbAccess() > { > ; > } > > > // > public void setFirmcode(String firm) > { > if (firm != null ) > { > firmcode=firm; > } > } > > // > public void setWorkid(String id) > { > if (id != null ) > { > workid=id; > } > } > > // > public void setJob(String Jobname) > { > if (Jobname != null ) > { > job=Jobname; > } > } > > // > public void setCostcode(String code) > { > if (code != null ) > { > costcode=code; > } > } > > > // > public void setSql(String sqlStr) > { > Connection connect=null; > Statement statement=null; > > > String > driverName="com.ibm.as400.access.AS400JDBCDriver"; > String url="jdbc:as400://saturn" ; > String user=""; > String passwd=""; > >Connection connection=null; > > // Data to connect to database > > try > { > //loading the driver > Class.forName(driverName); > connection = > DriverManager.getConnection(url, user, passwd); > > } > // Error if fail to load the driver > catch (Exception exp) > { > connection=null; > System.out.println("Error occured at > loading the Driver: " > +exp); > } > > >try > { > statement=connection.createStatement(); > > resultSet=statement.executeQuery(sqlStr); > } > catch (Exception exp) > { > System.out.println("Error occured at > loading the Driver: " > +exp); > } > > } > > > public ResultSet getResultset() > { > return resultSet; > } > > > public void reset() > { > > } > } > > > My JSP is as follows: > > > > <%@ page import="java.sql.*,java.io.*, java.lang.*, > javax.servlet. > *,javax.servlet.http.*" %> > > class="dbAccess.jspDbAccess" scope="session"> > > > > > > bgcolor="#00" > leftmargin=0 > topmargin=0 > marginwidth=0 > marginheight=0> > > > > cellpadding="0"> > > > > width=149 height=75 border=0 > alt="Logo"> > > > > > > > height=16 border=0 alt > ="Jobpac Logo"> > > <% if ((request.getParameter( "Workid" ) != > null) && > (request.getParameter( "Job" ) != null) && > (request.getParameter( "Costcode" ) != > null) && > (request.getParameter( "Sql" ) != null)) { > %> > > <% > String firm = request.getParameter( "Workid" > ); > === message truncated === __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.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
Error in catching Param Variables
Dear All, This is the top part of my jsp. It is giving 500 Internal server error. If I remove the last two sentences (variable catchers), the script executes fine. Any idea what might be wrong? Thanx & Regards, Kaushal. - <% response.setContentType("text/vnd.wap.wml"); %> http://www.wapforum.org/DTD/wml_1.1.xml"> <%@ page import="java.sql.*,java.io.*, java.lang.*, javax.servlet.*,javax.servlet.http.*" %> <% string staffid=request.getParameter("staffid"); string password = request.getParameter("password"); %> === 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: This is very ***important*** for me ..please help.
Just a suplementary note, not a solution to your problem: You forgot to close the connection; take care that this is a serious problem for a web site using jdbc as after a time all the objects will be alocated by the DBMS and you will get an error. Always close the connection after a comit or rollback... (and other jdbc objects) or better use a connection pool. Ionel Condor. Pradeep Roy wrote: > Hi All > > I am enclosing a complete code for database accessing. It would help > beginners to know how to access the database from JSP. > But I don't want the JSP to access the database. I want Beans to Access the > database and send ResultSet accross to JSP. It is not working whenever I am > trying to use the Beans to access it. > > Any other suggestion with details will be highly appreciated. > > Thanks & Regards > Pradeep > > Could anyone suggest me what is wrong in my Bean which is expected to > return a result set in the JSP file. > > package dbAccess; > > import java.util.*; > import java.sql.*; > import java.lang.*; > import java.io.*; > > public class jspDbAccess { > > Vector names; > Vector data; > String firmcode; > String workid; > String job; > String costcode; > ResultSet resultSet=null; > > // > public jspDbAccess() > { > ; > } > > // > public void setFirmcode(String firm) > { > if (firm != null ) > { > firmcode=firm; > } > } > > // > public void setWorkid(String id) > { > if (id != null ) > { > workid=id; > } > } > > // > public void setJob(String Jobname) > { > if (Jobname != null ) > { > job=Jobname; > } > } > > // > public void setCostcode(String code) > { > if (code != null ) > { > costcode=code; > } > } > > // > public void setSql(String sqlStr) > { > Connection connect=null; > Statement statement=null; > > String driverName="com.ibm.as400.access.AS400JDBCDriver"; > String url="jdbc:as400://saturn" ; > String user=""; > String passwd=""; > >Connection connection=null; > > // Data to connect to database > > try > { > //loading the driver > Class.forName(driverName); > connection = DriverManager.getConnection(url, user, passwd); > > } > // Error if fail to load the driver > catch (Exception exp) > { > connection=null; > System.out.println("Error occured at loading the Driver: " > +exp); > } > >try > { > statement=connection.createStatement(); > resultSet=statement.executeQuery(sqlStr); > } > catch (Exception exp) > { > System.out.println("Error occured at loading the Driver: " > +exp); > } > > } > > public ResultSet getResultset() > { > return resultSet; > } > > public void reset() > { > > } > } > > My JSP is as follows: > > <%@ page import="java.sql.*,java.io.*, java.lang.*, javax.servlet. > *,javax.servlet.http.*" %> > > > > > > > > bgcolor="#00" > leftmargin=0 > topmargin=0 > marginwidth=0 > marginheight=0> > > > > > > > > alt="Logo"> > > > > > > > ="Jobpac Logo"> > > <% if ((request.getParameter( "Workid" ) != null) && > (request.getParameter( "Job" ) != null) && > (request.getParameter( "Costcode" ) != null) && > (request.getParameter( "Sql" ) != null)) { %> > > <% > String firm = request.getParameter( "Workid" ); > String jobname = request.getParameter( "Job" ); > String cstcode = request.getParameter( "Costcode" ); > String sqlStr = request.getParameter( "Sql" ); > > String costcodeName=""; > String jobDescript=""; > > String query1="SELECT OIORDN, OIITEM, OIDESC, OIQORD, OIUNIT, OIGUPR2, > OITVAL from jp521dtai.jpordoi1 WHERE OIFMCD = '" + firm + "' AND OIJOB = '" > + jobname + "' AND OICODE = '" + cstcode + "'" ; > > ResultSet rs=dbConnect.getResultset(); > > ( the error I am getting here is the it is not a class method !!!) Please > help... > > try > { > int size=rs.getFetchSize(); > %> > > <%=size%> > > <%} > catch (Exception exp) > { > out.println("what is the error"); > } > > %> > > <%=sqlStr %> > > > > <% > try > { > %> > > > > > > > Job: > > <%=jobname%> > > > <%=jobDescript%> > > > Cost Code: > > <%=cstcode%> >
Re: Error in catching Param Variables
at a guess it is a compiler error cos string should be String... rgds, Paul > -Original Message- > From: wap@asl [mailto:[EMAIL PROTECTED]] > Sent: 25 July 2000 10:05 > To: [EMAIL PROTECTED] > Subject: Error in catching Param Variables > > > Dear All, > > This is the top part of my jsp. It is giving 500 Internal > server error. If > I remove the last two sentences (variable catchers), the > script executes > fine. Any idea what might be wrong? > > Thanx & Regards, > > Kaushal. > > - > > <% response.setContentType("text/vnd.wap.wml"); %> > > "http://www.wapforum.org/DTD/wml_1.1.xml"> > > <%@ page import="java.sql.*,java.io.*, java.lang.*, > javax.servlet.*,javax.servlet.http.*" %> > > > <% > string staffid=request.getParameter("staffid"); > string password = request.getParameter("password"); > %> > > == > = > 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
Need advice for a technology choice...
I'm new in the field of servlet/JSP and a friend told me that servlet could be usefull for the website I want to create. Well, I'll try to explain it as simple as I can : GOAL: I want that a client applet (on the browser side) send data to a server. Then the server can send back data to the client according to the client input data. Of course, the server must be able to receive data from multiple client. Moreover, server must also be able to send data (multicast) to a group of connected client. I don't want to use port other than those used by browser (so Port 80). APPROACHES: 1) The first approach that came to my mind was to establish a socket on port 80 between client applet and server application. Will this approach be OK for what I want? 2) The second approach a friend suggest me was to have an applet on client side that use servlet to create connection to the server. Is it possible? Is it fast? What are the advantage & disadvantage of both approach? NOTE: If someone has some links on a doc or src doing this kind of job, I'll be very happy. Best regards, Alan. -- Alan Savary R&D Engineer SimTeam Virtual Presence Muse Technologies, Inc Tel: +33 (0)1 45 45 15 55 Fax +33 (0)1 45 45 16 17 Web: http://www.simteam.com & http://www.vrweb.com & http://www.musetech.com email: [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
'Attribute page has no value' Error
my first line in jsp file is <%@ page language="java" %> and the compiler throws error 'Attribute page has no value.' (I use Websphere Application Server 3.0) all other JSP standard features are without problem Thanks for any help === 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: Need help in deciding report generation tool !! Maybe use BUS INESS OBJECTS 5.1/WEBINTELLIGENCE 2.6
Sorry, I don't want to make this sound like a total plug (I'm a techie, not a sales guy) but you may want to consider looking into WebIntelligence 2.6 which is the Thin client server for BusinessObjects. (You can see from my mail address I actually work for this company...) WebIntelligence 2.6 allows the handling of both full and thin client documents. BusinessObjects and WebIntelligence can handle multiple datasources and have a single integrated security hierarchy. It allows to build reports through a graphical user interface and all of this is customisable! With the WebIntelligence 2.6 release the entire Object Model (which can be used for the display, the refresh, saving, generating and scheduling (for off-peak refresh) of reports) is exposed as JavaBeans, which are used in the same manner as your own JavaBeans. It also allows you to run the JavaBeans from the webserver, while connecting (through CORBA) to the WebIntelligence Server. This means that it is also eminently scalable as the clustering of both is possible, and the JavaBeans and your JSP code is easily portable. It is currently released for Windows and Solaris, and I believe AIX and HP-Unix versions are in the make... For further information see the company website: http://www.businessobjects.com and if you want I can put you in contact with someone. Cheers Jay (Oh, and I am not in the habit of posting such plugs to public mailing lists, but in this case could not help raising some awareness of this product suite) -Original Message- From: Geeta Kottapalli [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 8:30 PM To: [EMAIL PROTECTED] Subject: Need help in deciding report generation tool !! Need help in deciding the tool for report generation. I can use either of 'Oracle Reports' or 'Crystal Reports' and I have no clue on how to use Crystal Reports as web pages and I am not sure if I can use Oracle Reports with JWS I did not use any tools in my previous web application and used only HTML for report generation. I am using JWS2.0 on Windows NT. The report now I am trying to generate is complicated and can be 50 - 60 pages and I have to use page-breaks which is not possible in HTML(though I can use page-break in CSS,NN is not supporting). I am really looking for help from someone who used Crystal Reports or Oracle Reports with Java. Thanks in advance, Geeta __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.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
Re: Need help in deciding report generation tool !!
BRIO is a bit in trouble now... -Original Message- From: Sivakumar Sankarasubramanian [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 9:22 PM To: [EMAIL PROTECTED] Subject: Re: Need help in deciding report generation tool !! check out www.brio.com specifically - brio reports Siva -Original Message- From: Geeta Kottapalli [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 12:30 PM To: [EMAIL PROTECTED] Subject: Need help in deciding report generation tool !! Need help in deciding the tool for report generation. I can use either of 'Oracle Reports' or 'Crystal Reports' and I have no clue on how to use Crystal Reports as web pages and I am not sure if I can use Oracle Reports with JWS I did not use any tools in my previous web application and used only HTML for report generation. I am using JWS2.0 on Windows NT. The report now I am trying to generate is complicated and can be 50 - 60 pages and I have to use page-breaks which is not possible in HTML(though I can use page-break in CSS,NN is not supporting). I am really looking for help from someone who used Crystal Reports or Oracle Reports with Java. Thanks in advance, Geeta __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.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 === 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: Popup Windows
it's probably an IE 5.0 spec... but onblur="window.focus();" can cause problems (it gives focus to the open window and essentially locks users out of the entire desktop, not just the parent page (i.e. the application that launched the "modal" window). in IE and in Netscape there is no such thing as a truly "modal" window... (showModalDialog should only be used as a dialog)... jp --- "M. Simms" <[EMAIL PROTECTED]> wrote: > Is that an IE Vers 5 feature or what ? > It's not in the Javascript 1.2 specs. > > To simulate a modal dialog with a window.open, just > "Trap" the "onblur" > event and add this > code for the handler > onblur="window.focus();" > > > -Original Message- > > From: A mailing list about Java Server Pages > specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Jeff Petty > > Sent: Thursday, July 20, 2000 6:34 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Popup Windows > > > > > > if you are looking for an IE specific solution... > > > > use: > > > > showModalDialog as opposed to window.open > > > > JP > > > > --- Javier Cazares <[EMAIL PROTECTED]> > wrote: > > > .You can use something like this... > > > > > > > > > <% if (something != null) { %> > > > > > > > > > document.write("javascript:window.open('/file.jsp','file','toolbar > > =no,locati > > > > > > on=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=230,lef > > t=180,widt > > > h=800,height=470');"); > > > > > > <% } else { } %> > > > > > > .hope it helps, > > > > > > .javier. > > > > > >Javier Cazares > > > GE Power Systems Intranet Web Team > > > 1 River Road, Bldg. 40-213 > > > Schenectady, NY 12345 > > > P: (518) 385-1521 > > > Email: mailto:[EMAIL PROTECTED] > > > > > > > -Original Message- > > > > From: Rupali Bains Goswami > > > > Sent: Tuesday, July 18, 2000 2:16 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Popup Windows > > > > > > > > In my jsp files, the user can update or delete > > > some information. If they > > > > select delete I need to popup a confirmation > > > window just to be sure that > > > > they want to delete the information and if > they > > > say yes i go to another > > > > jsp > > > > page, delete the row from the database and > refresh > > > the list > > > > Can someone tell me how i can do this > confirmation > > > dialog?? > > > > > > > > Thanks > > > > > > > > > > > > > > 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 > > > > > > __ > > Do You Yahoo!? > > Get Yahoo! Mail Free email you can access from > anywhere! > > http://mail.yahoo.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 __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Serv
Re: Dynamically Generated PDF
Thank you guys. This is the best mainling list I ever subscribed to. Aaron, This is the method that I am using, I retrieved the data from the database in an XML format then using XSL I format this data with the formatting instruction ( ) provided by XSL and finally I use FOP v0.13 (avalailble from www.apache.org) to generate a PDF from the combination of XML and XSL. Subject: Re: Dynamically Generated PDF Date: Mon, 24 Jul 2000 10:48:48 -0700 From: Aaron Prohaska <[EMAIL PROTECTED]> Charbel, can you tell me what you are using the dynamically create pdf files? I have looked at a couple of different methods for doing this, but don't know which would be best used. thanks, Aaron <<:::..:::...::: Aaron Prohaska :::..:::...:::>> VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of SoftLiban KEYROUZ Charbel Sent: Monday, July 24, 2000 8:25 AM To: [EMAIL PROTECTED] Subject: [JSP-INTEREST] Dynamically Generated PDF Hi all, I have one major problem with Acrobat Reader Plug-In, this is how it goes, whenever I try to load a PDF file that is created dynamically using JSP Internet Explorer displays for me the PDF code instead, despite the fact that the content Type of the dynamically generated PDF is set to "application/pdf". On the other hand if I try to load a normal PDF file everything works-out fine and the PDF is displayed using the Acrobat Reader Plug-In inside the browser. In addition the same PDF generating ASP loads normally (as if it was a normal not dynamically generated PDF) when I use Netscape, but my Internet application is designed to work only with Internet Explorer. Please Please can somebody help I have tried everything with no result and displaying dynamically generated PDF is essential to my Internet Application. Thank you in advance Charbel Keyrouz === 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: refresh
Hi All, thanks for your help, but it still doesnt work. So I try to tell you my problem again. I have a jsp-page with: <%@ page session="true" import = "html.*" %> <%= Bean1.getA() %>. Her A in Bean1 has the value 1. After that A in Bean1 changes to 2. So I am implementing a Refresh-Button with: function refresh(){ window.location.reload(); } When I press this button <%= Bean1.getA() %> should show a 2, but it always stays 1. So i hope anybody can tell me how to do this. Thanks Herb === 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
How to remove empty lines from JSP?
Hi all, whenever I put it <%@ page ...%.> I get an empty line in the generated HTML. Does anybody know how to avoid or remove these empty lines? Thank you in advance Charbel Keyrouz === 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: Need help in deciding report generation tool !!
Please see JReport Tools for Java from www.jinfonet.com. Thanks Arun -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jay Thoden Van Velzen Sent: Tuesday, July 25, 2000 4:38 PM To: [EMAIL PROTECTED] Subject: Re: Need help in deciding report generation tool !! BRIO is a bit in trouble now... -Original Message- From: Sivakumar Sankarasubramanian [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 9:22 PM To: [EMAIL PROTECTED] Subject: Re: Need help in deciding report generation tool !! check out www.brio.com specifically - brio reports Siva -Original Message- From: Geeta Kottapalli [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 12:30 PM To: [EMAIL PROTECTED] Subject: Need help in deciding report generation tool !! Need help in deciding the tool for report generation. I can use either of 'Oracle Reports' or 'Crystal Reports' and I have no clue on how to use Crystal Reports as web pages and I am not sure if I can use Oracle Reports with JWS I did not use any tools in my previous web application and used only HTML for report generation. I am using JWS2.0 on Windows NT. The report now I am trying to generate is complicated and can be 50 - 60 pages and I have to use page-breaks which is not possible in HTML(though I can use page-break in CSS,NN is not supporting). I am really looking for help from someone who used Crystal Reports or Oracle Reports with Java. Thanks in advance, Geeta __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.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 === 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: How to remove empty lines from JSP?
Not so nice, but you can try putting the closing tag on the next line. <%@ page... %>And here comes the rest of the page Geert Van Damme > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of SoftLiban KEYROUZ Charbel > Sent: dinsdag 25 juli 2000 14:01 > To: [EMAIL PROTECTED] > Subject: How to remove empty lines from JSP? > > > Hi all, > whenever I put it <%@ page ...%.> I get an empty line in the generated > HTML. > Does anybody know how to avoid or remove these empty lines? > > Thank you in advance > Charbel Keyrouz > > == > = > 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: Problem stiill exists.....This is very ***important*** for me ..please help.
Hi All I have tried to rewrite the Beans as suggested by Vivek. That is connection is established in the constructor. Please see my Bean and the corresponding JSP. Still it is giving problem. Problem is in the bold letter within the JSP page as below. In the JSP page...( for full jsp page see below) dbConnect.setResultset(query1); ResultSet rs=dbConnect.getResultset(); ( when I am writting the above two the error is as follows : *** Error: "dbConnect" is either a misplaced package name or a non-existent entity.) OR dbAccess.jspDbAccess.setResultset(query1); ResultSet rs=dbAccess.jspDbAccess.getResultset(); Please see the code and suggest. Plzz. Thanks & Regards Pradeep Beans: package dbAccess; import java.util.*; import java.sql.*; import java.lang.*; import java.io.*; public class jspDbAccess { String firmcode; String workid; String job; String costcode; Statement statement=null; Connection connection=null; ResultSet resultSet=null; //Constructor public jspDbAccess() { String driverName="com.ibm.as400.access.AS400JDBCDriver"; String url="jdbc:as400://" ; String user=""; String passwd="x"; try { //loading the driver Class.forName(driverName); connection = DriverManager.getConnection(url, user, passwd); statement=connection.createStatement(); System.out.println("connected"); } // Error if fail to load the driver catch (Exception exp) { connection=null; System.out.println("Error occured at loading the Driver: " +exp); } } // public void setResultset(String sqlStr) { try { resultSet=statement.executeQuery(sqlStr); } catch (Exception exp) { System.out.println("Error occured at loading the Driver: " +exp); } } // public ResultSet getResultset() { return resultSet; } // public void setFirmcode(String firm) { if (firm != null ) { firmcode=firm; } } // public void setWorkid(String id) { if (id != null ) { workid=id; } } // public void setJob(String Jobname) { if (Jobname != null ) { job=Jobname; } } // public void setCostcode(String code) { if (code != null ) { costcode=code; } } // public void reset() { } } And the JSP is as follows: <%@ page import="java.sql.*,java.io.*, java.lang.*, javax.servlet. *,javax.servlet.http.*" %> Puchase Order Enquiry <% if ((request.getParameter( "Workid" ) != null) && (request.getParameter( "Job" ) != null) && (request.getParameter( "Costcode" ) != null) && (request.getParameter( "Resultset" ) != null)) { %> <% String firm = request.getParameter( "Workid" ); String jobname = request.getParameter( "Job" ); String cstcode = request.getParameter( "Costcode" ); String costcodeName=""; String jobDescript=""; String query1="SELECT OIORDN, OIITEM, OIDESC, OIQORD, OIUNIT, OIGUPR2, OITVAL from jp521dtai.jpordoi1 WHERE OIFMCD = '" + firm + "' AND OIJOB = '" + jobname + "' AND OICODE = '" + cstcode + "'" ; String query2="SELECT DESCRIPT from jp521dtai.jobs WHERE OIFMCD = '" + firm + "' AND OIJOB = '" + jobname + "'" ; %> <% dbConnect.setResultset(query1); ResultSet rs=dbConnect.getResultset(); ( when I am writting the above two the error is as follows : *** Error: "dbConnect" is either a misplaced package name or a non-existent entity.) OR dbAccess.jspDbAccess.setResultset(query1); ResultSet rs=dbAccess.jspDbAccess.getResultset(); ( when I am writting the above the error is as follows : *** Error: The method "setResultset" does not denote a class method try { int size=rs.getFetchSize(); } catch (Exception exp) { out.println("what is the error"); } %> === 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
JTabbedPane.
Hello, I was wondering if anyone has tried to use servlets or JSP with a JTabbedPane swing class applet? Thank you, Richard Elswick Ford Systems Integration Center Ford Motor Company - www.ford.com www.fsic.ford.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
SQL Query
Thank you Jeff & Anand. Yes, you were right. I had case problem. That is solved. Another small problem. I am declaring following two variables and giving the following sql query. String id = request.getParameter("staffid"); String pass = request.getParameter("password"); . . ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid = 'id'"); Now, I want only that record to show up where staffid matches one given by the user. But in the SQL, variable id is not taken. If I put pure text ex. ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid = 'ks01'"); where ks01 is a staffid in the database, everything works fine. But if the user is giving ks01 from the earlier page, it is not taking. Am I calling the variable wrongly? Thanx :-) & Regards, Kaushal. === 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: JTabbedPane.
What do you mean Servlets are server side. If you would use swing then you're creating windows and stuff on the server side. Not very usefull, I guess. Swing is typically used in front end applets and applications. Of course You can create an applet that has a JTabbedPane on it and that communicates with a server to get and store it's data. Is it that what you're looking for? Geert Van Damme > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Elswick, Richard (R.L.) > Sent: dinsdag 25 juli 2000 14:34 > To: [EMAIL PROTECTED] > Subject: JTabbedPane. > > > Hello, > > I was wondering if anyone has tried to use servlets or JSP with a > JTabbedPane swing class applet? > > Thank you, > > Richard Elswick > Ford Systems Integration Center > Ford Motor Company - www.ford.com > www.fsic.ford.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
Re: 'Attribute page has no value' Error
<%@ page language="java" %> lanquage is default attribute don't want to give... instead of that give import statement if u are using someother package classes... 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
Re: FW: Bug in tomcat 3.1???/APOLOGIES TO EVERYBODY
HI ALL, First, thanx Serge and Mike for 'listen' to my complaing second, PLEASE FORGIVE ME ALL!! i bothered the list for 5 hours! the problem was my CLASSPATH i have two copies of my java class, i continued to update only one copy while tomcat was reading the other one sorry again, but thanx a lot anyway for your help best regards marco > -Original Message- > From: EXT Serge Knystautas [mailto:[EMAIL PROTECTED]] > Sent: 25. July 2000 15:57 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: FW: Bug in tomcat 3.1??? > > > Your code worked for me (Tomcat 3.1, etc...)... one thing I noticed it > that you didn't mention your web.xml and your jsp attempts to > reference > the TLD directly. Perhaps it's grabbing a different TLD than you > expect. Here's the block out of my web.xml file... > > > > http://www.nokia.com/marcotags > > >/WEB-INF/marcotaglib.tld > > > > And then in the JSP it looks like... > <%@ taglib uri="http://www.nokia.com/marcotags" prefix="marco" %> > > I don't know... like I said, otherwise it worked for me. I > didn't have > any XSL/XML files handy, but I got an except as it tried to > read the xsl > file specified, so it obviously was getting that far with the > attribute. I don't have any tags packaged up to the point > where I could > send them out (if I could do that, I'd probably submit them to the > package :) > > Serge Knystautas > Loki Technologies > http://www.lokitech.com/ > > [EMAIL PROTECTED] wrote: > > > > Hi Serge, > > thanx for your reply > > my methods are defined public.and i did exactly as u > did for the capital > > letter ...the file that i sent on the list > > was just modified to try if it was a 'case' problem > > i did not use the 'cause it was giving me an > > error...'bodycontent not allowed here'.. > > when i write > > > > > > > > > > > > > > anyway, i will try as u suggest and let u (and the list) know > > thanx in advance & regards > > marco > > > > > -Original Message- > > > From: EXT Serge Knystautas [mailto:[EMAIL PROTECTED]] > > > Sent: 25. July 2000 15:10 > > > To: [EMAIL PROTECTED] > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: FW: Bug in tomcat 3.1??? > > > > > > > > > That's correct that the error indicates you're not > finding the get/set > > > pairs, but you code is right (don't do getxsl, do > getXsl). Attributes > > > are supposed to be all lowercase and then capitalize the > first letter > > > when you append it to get/set (like standard java coding > conventions). > > > > > > Since you didn't give the complete method signature, I > would guess you > > > didn't make those methods public. The exact method > signatures should > > > be... > > > > > > public void setXsl(String value) > > > > > > public String getXsl() > > > > > > I've got a ton of custom tags written here and haven't had > > > any problems > > > like this except when I make a typo or something. One > thing else that > > > might be causing a problem is that you're not specifying the > > > bodycontent > > > type (should be ... > JSP... more > > > than likely). This might be invalidating the tag definition. > > > > > > Serge Knystautas > > > Loki Technologies > > > http://www.lokitech.com/ > > > > > > Michael Taylor wrote: > > > > > > > > Marco, > > > > > > > > Your methods don't match the case of the original tags. I > > > think you need > > > > getxsl() and setxsl() methods if you wish to use lower > > > case. This mapping > > > > isn't the greatest, I'm afraid. I can't use all lower-case > > > attribute names, or > > > > attribute names with dashes as words seperators as I would like. > > > > > > > > Anyway, hope that helps. The error you have definately > > > indicates it's not > > > > finding your get/set pair. > > > > > > > > Cheers, > > > > > > > > Mike > > > > > > > > On Tue, 25 Jul 2000, [EMAIL PROTECTED] wrote: > > > > > > > > > > > > 'Cannot find any information on property 'xsl' in a bean of > > > > > > type 'MyTagClass' > > > > > > > > > > > > in the corresponding java class, i add two methods: > > > > > > > > > > > > setXsl(String xsl) > > > > > > > > > > > > getXsl() > > > > > > > === 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: 'Attribute page has no value' Error
<%@ page %> crashes too <%@ include file="file" %> crashes too I allready 'solved' it. Directives <%@ are not avaiable in JSP specification .91 and I must use this version because of stupidity of IBM Websphere Application Server; however, thanks for your help. Now I am trying to import beans through To: <[EMAIL PROTECTED]> Sent: Tuesday, July 25, 2000 8:52 PM Subject: Re: 'Attribute page has no value' Error > <%@ page language="java" %> > lanquage is default attribute don't want to give... > instead of that give import statement if u are using someother package > classes... > > > > 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
Re: Problem stiill exists.....This is very ***important*** for me ..please help.
Hi Pradeep Roy, I have tested ur code in my machine using Apache + resin. It is working fine. The jspDbAccess.java file I haven't changed (only the driver classes, user, passwd) The jsp file I changed which I am pasting below <%@ page import="java.sql.*,java.io.*, java.lang.*" %> <% out.println("The connection to database is made"); String strQuery = "Select * from tdealermaster"; dbConnect.setResultset(strQuery); ResultSet rs = dbConnect.getResultset(); out.println("Got the ResultSet"); int i = 0; out.println("Going to display the data"); while(rs.next() && i<10) { out.println(""+i+" "+rs.getString(1)+" "+rs.getString(2)); i++; } out.println("Data is Displayed End"); %> This code is working perfectly in my machine using MSSQL 7.0 Compare and try to find the error. Vivek Ojha --- Pradeep Roy <[EMAIL PROTECTED]> wrote: > Hi All > > I have tried to rewrite the Beans as suggested by > Vivek. That is connection > is established in the constructor. > > Please see my Bean and the corresponding JSP. Still > it is giving problem. > Problem is in the bold letter within the JSP page as > below. > In the JSP page...( for full jsp page see below) > > dbConnect.setResultset(query1); > ResultSet rs=dbConnect.getResultset(); > > ( when I am writting the above two the error is as > follows : > *** Error: "dbConnect" is either a misplaced package > name or a non-existent > entity.) > > OR > > dbAccess.jspDbAccess.setResultset(query1); > ResultSet rs=dbAccess.jspDbAccess.getResultset(); > > Please see the code and suggest. Plzz. > > Thanks & Regards > Pradeep > > Beans: > > package dbAccess; > > import java.util.*; > import java.sql.*; > import java.lang.*; > import java.io.*; > > public class jspDbAccess { > > String firmcode; > String workid; > String job; > String costcode; > Statement statement=null; > Connection connection=null; > ResultSet resultSet=null; > > //Constructor > > public jspDbAccess() > { > String > driverName="com.ibm.as400.access.AS400JDBCDriver"; > String url="jdbc:as400://" ; > String user=""; > String passwd="x"; > > try > { > //loading the driver > Class.forName(driverName); > connection = > DriverManager.getConnection(url, user, passwd); > statement=connection.createStatement(); > System.out.println("connected"); > } > // Error if fail to load the driver > catch (Exception exp) > { > connection=null; > System.out.println("Error occured at > loading the Driver: " > +exp); > } > > } > > > // > public void setResultset(String sqlStr) > { > > try > { > > resultSet=statement.executeQuery(sqlStr); > } > catch (Exception exp) > { > System.out.println("Error occured at > loading the Driver: " > +exp); > } > > } > > // > public ResultSet getResultset() > { > return resultSet; > } > > > // > public void setFirmcode(String firm) > { > if (firm != null ) > { > firmcode=firm; > } > } > > // > public void setWorkid(String id) > { > if (id != null ) > { > workid=id; > } > } > > // > public void setJob(String Jobname) > { > if (Jobname != null ) > { > job=Jobname; > } > } > > // > public void setCostcode(String code) > { > if (code != null ) > { > costcode=code; > } > } > > // > public void reset() > { > > } > } > > And the JSP is as follows: > > > <%@ page import="java.sql.*,java.io.*, java.lang.*, > javax.servlet. > *,javax.servlet.http.*" %> > > class="dbAccess.jspDbAccess" scope="session"> > > > > > Puchase Order Enquiry > bgcolor="#00" > leftmargin=0 > topmargin=0 > marginwidth=0 > marginheight=0> > > > > cellpadding="0"> > > > > width=149 height=75 > border=0 > alt="Jobpac Logo"> > > > > > > > height=16 border=0 alt > ="Jobpac Logo"> > > <% if ((request.getParameter( "Workid" ) != > null) && > (request.getParameter( "Job" ) != null) && > (request.getParameter( "Costcode" ) != > null) && > (request.getParameter( "Resultset" ) != > null)) { %> > > <% > String firm = request.getParameter( "Workid" > ); > === message truncated === __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.ya
Re: JTabbedPane.
Sorry about that, let me clarify. What I am doing is using a JTabbedPane as an applet for my front end user interface. I have been tasked with taking several CGI script pages and implementing them in the JTAbbedPane interface. From what I have been able to decipher so far, I would need to use servlets instead of the CGI to return information to the current JTabbedPane that I am viewing. I am debating on rewriting the CGI scripts as servlets or JSP files. I am not sure right now on the approach I should take. The current CGI scripts are some text files and user input. The scripts will call some sockets to some other Perl CGI scripts as well. In the future, there may be a database interface implemented as well. I have thought about suggesting a complete overhall of the CGI scripts to servlets and JSP. I am not sure if this is easier or not. The question I had about the JTabbedPane is that, when I call a servlet or CGI script, will the returned HTML/XML data be displayed in the currently selected JTabbedPane? Thank you, Richard Elswick (313) 594-4665 Ford Systems Integration Center Ford Motor Company - www.ford.com www.fsic.ford.com -Original Message- From: Geert Van Damme [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2000 9:24 AM To: [EMAIL PROTECTED] Subject: Re: JTabbedPane. What do you mean Servlets are server side. If you would use swing then you're creating windows and stuff on the server side. Not very usefull, I guess. Swing is typically used in front end applets and applications. Of course You can create an applet that has a JTabbedPane on it and that communicates with a server to get and store it's data. Is it that what you're looking for? Geert Van Damme > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Elswick, Richard (R.L.) > Sent: dinsdag 25 juli 2000 14:34 > To: [EMAIL PROTECTED] > Subject: JTabbedPane. > > > Hello, > > I was wondering if anyone has tried to use servlets or JSP with a > JTabbedPane swing class applet? > > Thank you, > > Richard Elswick > Ford Systems Integration Center > Ford Motor Company - www.ford.com > www.fsic.ford.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 === 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: SQL Query
stmt.executeQuery ("SELECT * FROM staff WHERE staffid ="+id); :-(. "wap@asl" wrote: > Thank you Jeff & Anand. > > Yes, you were right. I had case problem. That is solved. Another small > problem. > > I am declaring following two variables and giving the following sql query. > > String id = request.getParameter("staffid"); > String pass = request.getParameter("password"); > . > . > ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid = > 'id'"); > > Now, I want only that record to show up where staffid matches one given by > the user. But in the SQL, variable id is not taken. If I put pure text ex. > ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid = > 'ks01'"); > where ks01 is a staffid in the database, everything works fine. But if the > user is giving ks01 from the earlier page, it is not taking. Am I calling > the variable wrongly? > > Thanx :-) & Regards, > > Kaushal. > > === > 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: SQL Query
Hi, You have to break the query string & concatinate the id variable as follows ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid ='"+id+"'"); Regards, Stephen. "wap@asl" wrote: > > Thank you Jeff & Anand. > > Yes, you were right. I had case problem. That is solved. Another small > problem. > > I am declaring following two variables and giving the following sql query. > > String id = request.getParameter("staffid"); > String pass = request.getParameter("password"); > . > . > ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid = > 'id'"); > > Now, I want only that record to show up where staffid matches one given by > the user. But in the SQL, variable id is not taken. If I put pure text ex. > ResultSet rs = stmt.executeQuery ("SELECT * FROM staff WHERE staffid = > 'ks01'"); > where ks01 is a staffid in the database, everything works fine. But if the > user is giving ks01 from the earlier page, it is not taking. Am I calling > the variable wrongly? > > Thanx :-) & Regards, > > Kaushal. > > === > 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 -- ._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. Stephen RedmondLogica (Mobile Networks) Tel: +353-1-8193673 5 Custom House Plaza, Fax: +353-1-8193401 Harbourmaster Place, mailto:[EMAIL PROTECTED] Dublin 1, http://www.logica.com/telecoms Ireland. ._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. === 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
MailID of EJB-INTEREST
Hi all, I wanted to subscribe to EJB-interest, so any one can give me the mailID, thanks, ceenu, === 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: JTabbedPane.
You may want to check http://www.swinglets.com/ With regards, Atchutarao Killamsetty, http://karao.tripod.com/myjava.html -Original Message- From: Elswick, Richard (R.L.) <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, July 25, 2000 11:08 PM Subject: Re: JTabbedPane. >Sorry about that, let me clarify. > >What I am doing is using a JTabbedPane as an applet for my front end user >interface. I have been tasked with taking several CGI script pages and >implementing them in the JTAbbedPane interface. From what I have been able >to decipher so far, I would need to use servlets instead of the CGI to >return information to the current JTabbedPane that I am viewing. I am >debating on rewriting the CGI scripts as servlets or JSP files. I am not >sure right now on the approach I should take. > >The current CGI scripts are some text files and user input. The scripts >will call some sockets to some other Perl CGI scripts as well. In the >future, there may be a database interface implemented as well. I have >thought about suggesting a complete overhall of the CGI scripts to servlets >and JSP. I am not sure if this is easier or not. > >The question I had about the JTabbedPane is that, when I call a servlet or >CGI script, will the returned HTML/XML data be displayed in the currently >selected JTabbedPane? > >Thank you, > >Richard Elswick >(313) 594-4665 >Ford Systems Integration Center >Ford Motor Company - www.ford.com >www.fsic.ford.com > > >-Original Message- >From: Geert Van Damme [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, July 25, 2000 9:24 AM >To: [EMAIL PROTECTED] >Subject: Re: JTabbedPane. > > >What do you mean >Servlets are server side. If you would use swing then you're creating >windows and stuff on the server side. Not very usefull, I guess. >Swing is typically used in front end applets and applications. >Of course You can create an applet that has a JTabbedPane on it and that >communicates with a server to get and store it's data. Is it that what >you're looking for? > >Geert Van Damme > > >> -Original Message- >> From: A mailing list about Java Server Pages specification and reference >> [mailto:[EMAIL PROTECTED]]On Behalf Of Elswick, Richard (R.L.) >> Sent: dinsdag 25 juli 2000 14:34 >> To: [EMAIL PROTECTED] >> Subject: JTabbedPane. >> >> >> Hello, >> >> I was wondering if anyone has tried to use servlets or JSP with a >> JTabbedPane swing class applet? >> >> Thank you, >> >> Richard Elswick >> Ford Systems Integration Center >> Ford Motor Company - www.ford.com >> www.fsic.ford.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 > >=== >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: MailID of EJB-INTEREST
[EMAIL PROTECTED] and subscription commands are similar to JSP === 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: session cleanup
Here is the Code in 3 files. SessionMonitor.java - the monitor object itself SessionMonitorListener.java the listener interface YourServlet.java - example servlet to show how you would use a SessionMonitor in your Servlet. SessionMonitor.java /// /** * Title:Project Full of Code Examples * Description: * Copyright:Copyright (c) Elishyah Israel * Company: jSierra Enterprises * @author Elishyah Israel * @version 1.0 */ package examples; import javax.servlet.http.*; import javax.servlet.*; import java.util.*; public class SessionMonitor implements Runnable { long _lTimeOut = 300, _lInterval = (long)10; Vector _vSession = new Vector(); Vector _vListener = new Vector(); void addSession(HttpSession ss) { synchronized(_vSession) { if (!_vSession.contains(ss)) _vSession.addElement(ss); } } public SessionMonitor(long lTimeOut) { _lTimeOut = lTimeOut; } public void run() { while(true) { try { Thread.sleep(_lInterval); } catch(InterruptedException e) {} HttpSession ss = null; Enumeration enum = _vSession.elements(); while(enum.hasMoreElements()) { ss = (HttpSession) enum.nextElement(); boolean bExpired = (new Date()).getTime() > (ss.getLastAccessedTime()+ _lTimeOut); if(bExpired) { fireSessionExpiredEvent(ss); ss.invalidate(); _vSession.removeElement(ss); } }//endWhile }//endWhile true }//endMethod run void fireSessionExpiredEvent(HttpSession ss) { Enumeration enum = _vListener.elements(); while(enum.hasMoreElements()) { ((SessionMonitorListener)enum.nextElement()).sessionExpired(ss); } } void addSessionMonitorListener(SessionMonitorListener l) { _vListener.addElement(l); } void removeSessionMonitorListner(SessionMonitorListener l) { _vListener.removeElement(l); } } SessionMonitorListener.java /// /** * Title:Project Full of Code Examples * Description: * Copyright:Copyright (c) Elishyah Israel * Company: jSierra Enterprises * @author Elishyah Israel * @version 1.0 */ package examples; import javax.servlet.http.*; import javax.servlet.*; import java.util.*; public interface SessionMonitorListener { public void sessionExpired(HttpSession ss); } YourServlet.java /// package examples; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class YourServlet extends HttpServlet { SessionMonitor _mon = new SessionMonitor(300);// //Initialize global variables public void init(ServletConfig config) throws ServletException { super.init(config); _mon.addSessionMonitorListener(new SessionMonitorListener() { public void sessionExpired(HttpSession ss) { // YOUR CODE HERE TO DO ANY // "SESSION EXPIRED" PROCESSING // SUCH AS KILLING THREADS, RELEASING CONNECITONS, ETC. } }); Thread thread = new Thread(_mon); } //Process the HTTP Get request public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = new PrintWriter (response.getOutputStream()); HttpSession ss = request.getSession(true); _mon.addSession(ss); response.setContentType("text/html"); out.println(""); out.println("YourServlet"); out.println(""); out.println("The servlet has received a GET. This is the reply."); out.println(""); out.close(); } } 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
Re: MailID of EJB-INTEREST
hi Send an email to [EMAIL PROTECTED] and include "signup EJB-INTEREST" in your message body. regards Y - Original Message - From: K. Sreenivasulu <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 25, 2000 7:00 PM Subject: MailID of EJB-INTEREST > Hi all, > I wanted to subscribe to EJB-interest, so any one can give me the mailID, > thanks, > ceenu, > > === > 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
send me EJB-INTEREST MAILId
Hi all, I wanted to subscribe to EJB-interest, so any one can give me the mailID, thanks, ceenu === 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
Problem with JSP bean
Hello ! I use tags: It works very well with JRUN 2.3.3 Now I want to use this tag with JSWDK, but it doesn't work. So I have to use tags: and it works very well. So my question is: Is it due to JSP version? does the tag work with JSP 1.0? or does it work only with jsp 0.92? Thanks! === 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: MailID of EJB-INTEREST
Thanx Yasir, > -Original Message- > From: Yasir Feroze Minhas [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, July 27, 2000 8:16 PM > To: [EMAIL PROTECTED] > Subject: Re: MailID of EJB-INTEREST > > hi > Send an email to [EMAIL PROTECTED] and include "signup EJB-INTEREST" > in > your message body. > > regards > Y > - Original Message - > From: K. Sreenivasulu <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, July 25, 2000 7:00 PM > Subject: MailID of EJB-INTEREST > > > > Hi all, > > I wanted to subscribe to EJB-interest, so any one can give me the > mailID, > > thanks, > > ceenu, > > > > > == > = > > 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 === 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
[ANN] JOT Servlets version 0.90
JOT Object Technologies announces preview release 0.90 of JOT Servlets. http://www.jotobjects.com JOT Servlets is a framework for servlet development featuring a lightweight API, easy to use template language, software tools, and demonstration servlets. -- Paul Copeland, JOT Object Technologies === 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: MailID of EJB-INTEREST
Here you go . [EMAIL PROTECTED] http://archives.java.sun.com/archives/j2ee-interest.html With regards, Atchutarao Killamsetty, http://karao.tripod.com/myjava.html -Original Message- From: K. Sreenivasulu <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, July 25, 2000 11:15 PM Subject: MailID of EJB-INTEREST >Hi all, >I wanted to subscribe to EJB-interest, so any one can give me the mailID, >thanks, >ceenu, > >=== >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: MailID of EJB-INTEREST
[EMAIL PROTECTED] -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of K. Sreenivasulu Sent: Tuesday, July 25, 2000 7:31 PM To: [EMAIL PROTECTED] Subject: MailID of EJB-INTEREST Hi all, I wanted to subscribe to EJB-interest, so any one can give me the mailID, thanks, ceenu, === 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: JTabbedPane.
thanks for the tip and nice personal homepage, and yes I bookmarked it. hehe Richard -Original Message- From: Atchutarao Killamsetty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2000 10:25 AM To: [EMAIL PROTECTED] Subject: Re: JTabbedPane. You may want to check http://www.swinglets.com/ With regards, Atchutarao Killamsetty, http://karao.tripod.com/myjava.html -Original Message- From: Elswick, Richard (R.L.) <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, July 25, 2000 11:08 PM Subject: Re: JTabbedPane. >Sorry about that, let me clarify. > >What I am doing is using a JTabbedPane as an applet for my front end user >interface. I have been tasked with taking several CGI script pages and >implementing them in the JTAbbedPane interface. From what I have been able >to decipher so far, I would need to use servlets instead of the CGI to >return information to the current JTabbedPane that I am viewing. I am >debating on rewriting the CGI scripts as servlets or JSP files. I am not >sure right now on the approach I should take. > >The current CGI scripts are some text files and user input. The scripts >will call some sockets to some other Perl CGI scripts as well. In the >future, there may be a database interface implemented as well. I have >thought about suggesting a complete overhall of the CGI scripts to servlets >and JSP. I am not sure if this is easier or not. > >The question I had about the JTabbedPane is that, when I call a servlet or >CGI script, will the returned HTML/XML data be displayed in the currently >selected JTabbedPane? > >Thank you, > >Richard Elswick >(313) 594-4665 >Ford Systems Integration Center >Ford Motor Company - www.ford.com >www.fsic.ford.com > > >-Original Message- >From: Geert Van Damme [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, July 25, 2000 9:24 AM >To: [EMAIL PROTECTED] >Subject: Re: JTabbedPane. > > >What do you mean >Servlets are server side. If you would use swing then you're creating >windows and stuff on the server side. Not very usefull, I guess. >Swing is typically used in front end applets and applications. >Of course You can create an applet that has a JTabbedPane on it and that >communicates with a server to get and store it's data. Is it that what >you're looking for? > >Geert Van Damme > > >> -Original Message- >> From: A mailing list about Java Server Pages specification and reference >> [mailto:[EMAIL PROTECTED]]On Behalf Of Elswick, Richard (R.L.) >> Sent: dinsdag 25 juli 2000 14:34 >> To: [EMAIL PROTECTED] >> Subject: JTabbedPane. >> >> >> Hello, >> >> I was wondering if anyone has tried to use servlets or JSP with a >> JTabbedPane swing class applet? >> >> Thank you, >> >> Richard Elswick >> Ford Systems Integration Center >> Ford Motor Company - www.ford.com >> www.fsic.ford.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 > >=== >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 === 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: JTabbedPane.
Iam not sure if u wanna know that for specificly for JTabbed Pane, but otherwise thru applet servlet communication u can get the data as URL url = new URL(getCodeBase(), "/servlet/Servlet1"); HttpMessage msg = new HttpMessage(url); InputStream in = msg.sendGetMessage(); DataInputStream data = new DataInputStream( new BufferedInputStream(in)); nextMessage = data.readLine(); But remember to do one thin in the servlet set ur content type as text instead of html,, response.setContentType("text/plain"); Regards, Mandeep >From: Atchutarao Killamsetty <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: JTabbedPane. >Date: Tue, 25 Jul 2000 23:24:31 +0900 > >You may want to check http://www.swinglets.com/ > >With regards, >Atchutarao Killamsetty, >http://karao.tripod.com/myjava.html > >-Original Message- >From: Elswick, Richard (R.L.) <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> >Date: Tuesday, July 25, 2000 11:08 PM >Subject: Re: JTabbedPane. > > > >Sorry about that, let me clarify. > > > >What I am doing is using a JTabbedPane as an applet for my front end user > >interface. I have been tasked with taking several CGI script pages and > >implementing them in the JTAbbedPane interface. From what I have been >able > >to decipher so far, I would need to use servlets instead of the CGI to > >return information to the current JTabbedPane that I am viewing. I am > >debating on rewriting the CGI scripts as servlets or JSP files. I am not > >sure right now on the approach I should take. > > > >The current CGI scripts are some text files and user input. The scripts > >will call some sockets to some other Perl CGI scripts as well. In the > >future, there may be a database interface implemented as well. I have > >thought about suggesting a complete overhall of the CGI scripts to >servlets > >and JSP. I am not sure if this is easier or not. > > > >The question I had about the JTabbedPane is that, when I call a servlet >or > >CGI script, will the returned HTML/XML data be displayed in the currently > >selected JTabbedPane? > > > >Thank you, > > > >Richard Elswick > >(313) 594-4665 > >Ford Systems Integration Center > >Ford Motor Company - www.ford.com > >www.fsic.ford.com > > > > > >-Original Message- > >From: Geert Van Damme [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, July 25, 2000 9:24 AM > >To: [EMAIL PROTECTED] > >Subject: Re: JTabbedPane. > > > > > >What do you mean > >Servlets are server side. If you would use swing then you're creating > >windows and stuff on the server side. Not very usefull, I guess. > >Swing is typically used in front end applets and applications. > >Of course You can create an applet that has a JTabbedPane on it and that > >communicates with a server to get and store it's data. Is it that what > >you're looking for? > > > >Geert Van Damme > > > > > >> -Original Message- > >> From: A mailing list about Java Server Pages specification and >reference > >> [mailto:[EMAIL PROTECTED]]On Behalf Of Elswick, Richard (R.L.) > >> Sent: dinsdag 25 juli 2000 14:34 > >> To: [EMAIL PROTECTED] > >> Subject: JTabbedPane. > >> > >> > >> Hello, > >> > >> I was wondering if anyone has tried to use servlets or JSP with a > >> JTabbedPane swing class applet? > >> > >> Thank you, > >> > >> Richard Elswick > >> Ford Systems Integration Center > >> Ford Motor Company - www.ford.com > >> www.fsic.ford.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 > > > >=== > >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 > > > >==
Compilation
Hello All, I am unable to debug my java beans because while compiling the program, if more errors are there, the error messages roll up and I am able to see only the last messages. I am using JDK 1.3 candidate version under Windows 95. In erlier versions I could say javac filename > repo.log so that I could check repo.log for errors. This does not work with JDK 1.3. Can anyone help me please? BRN. === 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: Compilation
go to the frame header right click gointo properties and then increase buffer size u will be able to scroll across ur errors. mandeep >From: B R Nair <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Compilation >Date: Tue, 25 Jul 2000 10:58:00 +0530 > >Hello All, > >I am unable to debug my java beans because while compiling the program, if >more errors are there, the error messages roll up and I am able to see only >the last messages. I am using JDK 1.3 candidate version under Windows 95. >In >erlier versions I could say >javac filename > repo.log >so that I could check repo.log for errors. This does not work with JDK 1.3. > >Can anyone help me please? >BRN. > >=== >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 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
Servlets question, Urgent!!!!
Hi all, Is there a way to take the query string parameters to a servlet from command line or from a file? Like instead of using a browser, cna the command line be used to send a query to a servlet which after processing displays a message in html, jsp or just as a out.println(). If so, please let me know. Can it be done using the generic servlet? Thanks in advance. -Aparna 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
Re: Servlets question, Urgent!!!!
Yes, In a java client program, use URLConnection to connect to servlet passing the URL with parameters. You can get the parameters from a file, command line or hardcode it like the example below URL url = null; URLConnection urlc = null; PrintWriter pw = null; url = new URL("http://localhost:7001/servletName?name=value&name2=value2"); urlc = url.openConnection(); urlc.setDoOutput(true); urlc.setDoInput(true); urlc.setUseCaches(false); pw = new PrintWriter(new OutputStreamWriter(urlc.getOutputStream()), true); pw.println("Here it comes"); BufferedReader inStream = new BufferedReader(new InputStreamReader(urlc.getInputStream())); System.out.println(inStream.readLine()); }catch(Exception e) { System.out.println(e.toString()); } regards, Aaron - Original Message - From: Aparna Neelgar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 25, 2000 3:31 PM Subject: Servlets question, Urgent > Hi all, > Is there a way to take the query string parameters to a servlet from command > line or from a file? Like instead of using a browser, cna the command line > be used to send a query to a servlet which after processing displays a > message in html, jsp or just as a out.println(). If so, please let me know. > Can it be done using the generic servlet? > Thanks in advance. > -Aparna > > 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
encrypt/decrypt
Hi all, What is the best way to encrypt/decrypt a password and a username on the = client using JSP? Thanks, __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.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
Re: Servlets question, Urgent!!!!
Aparna, You can use the ResourceBundle for retrieving your query string parameters. This is basically like a config file where you can store name/value pairs if you will. Rema -Original Message- From: Aparna Neelgar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2000 3:32 PM To: [EMAIL PROTECTED] Subject: Servlets question, Urgent Hi all, Is there a way to take the query string parameters to a servlet from command line or from a file? Like instead of using a browser, cna the command line be used to send a query to a servlet which after processing displays a message in html, jsp or just as a out.println(). If so, please let me know. Can it be done using the generic servlet? Thanks in advance. -Aparna 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
Re: Need help in deciding report generation tool !!
EnterpriseSoft Report Writer v 4.0 for Java is the best! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Arun Sent: Tuesday, July 25, 2000 8:02 AM To: [EMAIL PROTECTED] Subject: Re: Need help in deciding report generation tool !! Please see JReport Tools for Java from www.jinfonet.com. Thanks Arun -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jay Thoden Van Velzen Sent: Tuesday, July 25, 2000 4:38 PM To: [EMAIL PROTECTED] Subject: Re: Need help in deciding report generation tool !! BRIO is a bit in trouble now... -Original Message- From: Sivakumar Sankarasubramanian [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 9:22 PM To: [EMAIL PROTECTED] Subject: Re: Need help in deciding report generation tool !! check out www.brio.com specifically - brio reports Siva -Original Message- From: Geeta Kottapalli [mailto:[EMAIL PROTECTED]] Sent: Monday, July 24, 2000 12:30 PM To: [EMAIL PROTECTED] Subject: Need help in deciding report generation tool !! Need help in deciding the tool for report generation. I can use either of 'Oracle Reports' or 'Crystal Reports' and I have no clue on how to use Crystal Reports as web pages and I am not sure if I can use Oracle Reports with JWS I did not use any tools in my previous web application and used only HTML for report generation. I am using JWS2.0 on Windows NT. The report now I am trying to generate is complicated and can be 50 - 60 pages and I have to use page-breaks which is not possible in HTML(though I can use page-break in CSS,NN is not supporting). I am really looking for help from someone who used Crystal Reports or Oracle Reports with Java. Thanks in advance, Geeta __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.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 === 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 === 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: Compiling your beans...
OK, I am running JRun 3.0 on Redhat 6.2. I have JRun installed under the default directory of /opt/JRun and I have jdk1.2.2 installed under /usr/local/jdk1.2.2 I just added in my version of the CLASSPATH and my servlet is working again. Here is what I used for a CLASSPATH. CLASSPATH=.:/usr/local/jdk1.2.2/lib/tools.jar:/opt/JRun/lib/jrun.jar:/opt/JR un/lib/jsp.jar I have no idea of my CLASSPATH is correct or not, since I can only guess what my required libraries are. Since it works again maybe the above was a good guess. I will try running in Netscape and see what happens as you suggest. 10 minutes later: OK, now its giving me that error again after recompiling. It looks like something is wrong with how the servlet knows about the bean I am using. Below is the error that I get in both IE 5.0 and Netscape 4.72. shopping.Item I assume is the line import shopping.Item; from the servlet. 500 Internal Server Error /rhii/servlet/ShopServlet: shopping.Item java.lang.ClassCastException: shopping.Item at jrun__Shopcart__ShopCart2ejsp16._jspService(jrun__Shopcart__ShopCart2ejsp16. java:50) at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34 ) at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a:88) at ShopServlet.doPost(ShopServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34 ) at allaire.jrun.servlet.Invoker.service(Invoker.java:84) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a:88) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354) at allaire.jrun.ThreadPool.run(ThreadPool.java:267) at allaire.jrun.WorkerThread.run(WorkerThread.java:74) Aaron <<:::..:::...::: Aaron Prohaska :::..:::...:::>> VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ -Original Message- From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2000 12:40 PM To: Aaron Prohaska Subject: Re: Compiling your beans... Ah, I see the problem, the lines get cut off :-) I am attaching a text file with the two classpath lines in it... The line that starts with 'jar' should actually be a part of the line above it. This classpath only works for Linux or Unix and only works with Resin 1.1 that has been installed in /usr/local/resin1.1. What servlet engine are you using? What platform (Windows, Linux) are you running it on? When you say that you are getting an error, what kind of error? If it's a 500 Servlet Exception or just a 500 then there is an error in your code. If you are using Internet Explorer, it very hard to find out where the error is. If you use Netscape as your browser, you'll get lots more information about the error (which will help you find it). As well, you might want to turn off JIT. JIT compiles your code. If your code isn't compiled it'll run a little slower, but you'll get the line number of the error in your error 500 message!!! If you want to turn off JIT, simple add: set JAVA_COMPILER=NONE to your autoexec.bat file if you are running your servlet engine under Windows If you are running Linux, add: JAVA_COMPILER=NONE export JAVA_COMPILER to the .bashrc file in your home directory. Hope this helps, Donald - Original Message - From: "Aaron Prohaska" <[EMAIL PROTECTED]> To: "'Donald Vandenbeld'" <[EMAIL PROTECTED]>; "Zoot-List (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, July 25, 2000 12:52 PM Subject: RE: Compiling your beans... > > Donald, in the CLASSPATH does the : delimite seperate paths and what does > jar:/path mean? Also on the first line at the end you have > :/usr/local/resin1.1/lib/resin, what is the resin at the end, a file or > directory? I am having a problem now where I had gone and changed some code > which created a new error, so I changed the code back to when it was > working, but it still does not work anymore. I don't know if my CLASSPATH >
javabeans
Quick question(s) regarding JavaBeans concept ... I just got a book on hte matter but I feel like they skipping over 1 or 2 important details: 1. I compile my class file first right? So I use my testBean.java file, and compile it into a a testBean.class file - correct? 2. Do I need to place my class file into a JAR in order to access it as a bean? 3. Do I need to package my class in order to access it as a bean? I can't find the answer to these questions anywhere in my book. Can someone answer them? I am quite familiar with working with ActiveX, so components are nothing new to me (ironicially the book spends most of it's time harping on methods, events, props, etc) ... I just need to undertand the paradigm of implementing a JavaBean a little bit better. Thanks. Neal === 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
Refresh form
I have a jsp file which displays a hyperlinked list of values. Selecting one of these will display the details. If I want to add a new value i pass in the parameter as "NEW" to this jsp file. The problem i am having is that when i select an existing value i see the details, but if now i select the link to add a new value, the same page is displayed but instead of the fields being blank it is populated with the previous details.Reloading it a couple of times displays the balnk fields. How can i refresh the page so i get the blank fields? 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
User authentication
What is the best way to do user authentication. At present I get the username and password and validate these against the values in the database. Once validated i put the object in session so i can check on each page if the value is available from session else display the login page. Can anyone give me pros and cons of this ? also if there is any other way of getting this done. Thanks 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
Re: User authentication
I am using weblogic5.1 -Original Message- From: Rupali Bains Goswami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2000 5:54 PM To: [EMAIL PROTECTED] Subject: User authentication What is the best way to do user authentication. At present I get the username and password and validate these against the values in the database. Once validated i put the object in session so i can check on each page if the value is available from session else display the login page. Can anyone give me pros and cons of this ? also if there is any other way of getting this done. Thanks 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
Session management and window differentiation
All, I'm trying to manage information into a session and I'm facing a little problem. Let assume that I have a JSP page that displays a tree and keep the TreeModel in session. Let's assume now that from my browser I'm requesting the jsp page and manipulate the tree by expanding and collapsing different node. My TreeModel in session will be impacted. The problem is if I'm opening an other window (File>New Window in MSIE), then I will have the same page display and so the same tree with the same node expanded and collapsed than the original window. Expanding & Collapsing any node in one window will do the same in the other one. Is there any possibility to detect that we are not in the same window than the one used for creating the tree originally from the JSP? Thanks, Frédérik Delacourt --- "A mind once stretched by a new idea never regains its original dimension." --Oliver Wendell Holmes === 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
Session timeout
How can I timeout a session using JSPs ?? i.e if the User is initially logs into my web site and then is idle for 15 minutes I want to timeout his sesion .After the timeout, if the User clicks on anything on the existing page I want to redirect him to the Login page of the application. Also if he goes back in the browser (Using the Back button) I do not want to allow him to do that. I am quite new to JSP and hence any help will be highly appreciated. Thanks in advance. _ Get Your Free Email At, http://www.rediffmail.com Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions === 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: How to get date and time ?
using oracle 8i how can i retrive date, time separetly. subu 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
Re: javabeans
well,java bean is a component technology... ||r to our ActiveX... In ActiveX... we have to convert in to OCX ... here...package under bean directory regards suriya *Q try for everything Q* Suriya narayanan V Software Engineer Contech Software Ltd E-3/1,2,3, GIDC Electronics Estate, Sector - 25, Gandhinagar - 382 044, INDIA Tel.: +91(2712) 44989/43324/43328 (R) : 91 - 79 - 6746164 fax:+91 (2712) 24468 Email :[EMAIL PROTECTED],[EMAIL PROTECTED] URL : http://www.contechgroup.com HomePage : http://www.suriyan.org -Original Message- From: Neal Cabage [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, July 26, 2000 12:13 AM To: [EMAIL PROTECTED] Subject:javabeans Quick question(s) regarding JavaBeans concept ... I just got a book on hte matter but I feel like they skipping over 1 or 2 important details: 1. I compile my class file first right? So I use my testBean.java file, and compile it into a a testBean.class file - correct? 2. Do I need to place my class file into a JAR in order to access it as a bean? 3. Do I need to package my class in order to access it as a bean? I can't find the answer to these questions anywhere in my book. Can someone answer them? I am quite familiar with working with ActiveX, so components are nothing new to me (ironicially the book spends most of it's time harping on methods, events, props, etc) ... I just need to undertand the paradigm of implementing a JavaBean a little bit better. Thanks. Neal === 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: Session timeout
well... really it a good question... do onething... Use javascript... in javascript... we have setTimeOut function... it will take two parameter... one is function name,other is time.. set the time... if it is exist... clear the session value... and chk if it is clear go to the first page... regards suriya *Q try for everything Q* Suriya narayanan V Software Engineer Contech Software Ltd E-3/1,2,3, GIDC Electronics Estate, Sector - 25, Gandhinagar - 382 044, INDIA Tel.: +91(2712) 44989/43324/43328 (R) : 91 - 79 - 6746164 fax:+91 (2712) 24468 Email :[EMAIL PROTECTED],[EMAIL PROTECTED] URL : http://www.contechgroup.com HomePage : http://www.suriyan.org -Original Message- From: Raghavendra i Rao [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, July 26, 2000 8:49 AM To: [EMAIL PROTECTED] Subject:Session timeout How can I timeout a session using JSPs ?? i.e if the User is initially logs into my web site and then is idle for 15 minutes I want to timeout his sesion .After the timeout, if the User clicks on anything on the existing page I want to redirect him to the Login page of the application. Also if he goes back in the browser (Using the Back button) I do not want to allow him to do that. I am quite new to JSP and hence any help will be highly appreciated. Thanks in advance. _ Get Your Free Email At, http://www.rediffmail.com Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions === 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: How to get date and time ?
Hi, Using to_char function. for example: SELECT to_char(SYSDATE, '') "year" FROM DUAL; SELECT to_char(SYSDATE, 'hh') "hour" FROM DUAL; ... Change the second parameter to the function, then you can get the portion you want. xgh - Original Message - From: "subramanian Athimoolam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 26, 2000 11:47 AM Subject: Re: How to get date and time ? > using oracle 8i how can i retrive date, time separetly. > > > > subu > > > > > 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
Re: Session timeout
Hi there, One sloution is javascript as explained by Suriya Narayan. The other is to include a front component in every JSP page you are developing and when your user log in , put a value say userid or sessionExist in the session object and try to retrieve that value in your front component. If you get that value it means everything is fine and session still exists. If you are unable to get that value it means the session has expired and then take your user to log in page. Here is a simple sample front component FrontComponet.jsp --- <% if (null == session.getValue("userId")) response.sendRedirect("/login-user.jsp"); } %> - Original Message - From: Raghavendra i Rao <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 26, 2000 8:18 AM Subject: Session timeout > How can I timeout a session using JSPs ?? i.e if the User is initially logs into my web site and then is idle for 15 minutes I want to timeout his sesion .After the timeout, if the User clicks on anything on the existing page I want to redirect him to the Login page of the application. Also if he goes back in the browser (Using the Back button) I do not want to allow him to do that. I am quite new to JSP and hence any help will be highly appreciated. > Thanks in advance. > > > _ > Get Your Free Email At, http://www.rediffmail.com > > Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions > > === > 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