question about best way to separate front-end code from back-end code
I am working with a software company that develops in Java. Some of the functionality involves interaction with users via the web. Some clients that use the software product would only like the back-end code and would like to implement the look and feel of their website on their own. In this case, we would like to provide a middle-tier set of classes to hand off code to other developers at clients. I'd like to figure out the best way to implement this middle-tier between back-end database processing and front-end GUI code. The question is whether Axis is the proper development tool. More specifically, does Axis provide a way to easily handle displaying, modifying and deleting data returned from a query to a database where the query returns more than one row; i.e., a result set? We would develop a middle-tier that would be responsible for getting the data from the database and then returning it but then a developer at a client would be responsible for displaying the data. Because of this hand off we are looking for a smooth and easy interface. Does Axis provide this type of easy hand-off? If not, is there another way we should develop this middle-tier? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Fw: DNS Change Request (UU3456694)
Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com - Original Message - From: WorldCom Customer Liaison [EMAIL PROTECTED] To: Dave Ford [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 6:08 PM Subject: DNS Change Request (UU3456694) Please do not take the (UUxx) information out of the subject header when replying to this problem. We use this number to track specific customer issues. Thank you. Hello Dave, The DNS changes you requested have been completed. I have included a copy of the Domain Zone file(s) for your review. Please allow 1-2 hours for this change to load on WorldCom name servers and 4-6 hours for full propagation on the Internet. If you have any further questions, please call 1-800-900-0241, then select option 2 three times (2, 2, 2), and an engineer will return your call, or reply to this email. Regards, == Jim Teuscher DNS/Email/NewsFeed/UUCP WorldCom Technical Support Email: [EMAIL PROTECTED] Phone: 800-900-0241 Option 2,2,2 FAX: 703-886-0137 == To serve you better, we now offer you direct, ready access to your trouble tickets, account management, install status, and helpful tips through the WorldCom Customer Center: https://customercenter.worldcom.com/ == Copy of Domain Zone Records * For the Domain: jennasys.com @ IN SOA auth02.ns.uu.net. hostmaster.UU.NET. ( 990732 ; Serial Number 21600 ; Refresh every 6 hours 3600; Retry every hour 1728000 ; Expire every 20 days 21600 ) ; Minimum 6 hours IN NS auth02.ns.uu.net. IN NS auth60.ns.uu.net. ; IN MX 10 mail.jennasys.com. IN MX 100 mail.uu.net. ; IN A 63.74.110.162 www IN A 63.74.110.162 ; mailIN A 63.74.110.172 ; ** Original Message From [EMAIL PROTECTED] Sat Mar 8 19:40:48 2003 From: Dave Ford [EMAIL PROTECTED] Subject: Re: DNS Change Request (UU3456694) To: WorldCom Customer Liaison [EMAIL PROTECTED] My company name is Smart Soft. You provide our DSL services (Account# U22185). A yesterday, I made the following request: Could you please change the MX record for jennasys.com to point to 63.4.110.172 (it now points to .163) If someone sends an email to [EMAIL PROTECTED], I need it to go to 63.74.110.172. I gave the wrong IP Address. The second part should be 74, not 4. So, the correct IP is: 63.74.110.172 Sorry for the inconvenience. Thanks. Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Advanced JavaServer Pages Source
Anyone? I too have wondered about this supposed download... - Original Message - From: Nick Van Weerdenburg To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 9:49 AM Subject: Advanced JavaServer Pages Source I have Advanced Java ServerPages by David Geary, and the source code download at http://www.phptr.com/advjsp is missing. Can someone point me to an alternate download, or email the code? I've sent two emails to phptr over the last week, with no response. Thanks, Nick === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
passing array to bean from JSP - platform issues
I've a problem I can't seem to find anything about... I have a few JSPs with forms containing an array of input: form name=inputform bKeywords/bfont face=Arial, Helvetica, sans-serif size=2bbr/b/font 1) input type=text size=70 maxlength=1024 name=keywordsbr 2) input type=text size=70 maxlength=1024 name=keywordsbr 3) input type=text size=70 maxlength=1024 name=keywordsbr 4) input type=text size=70 maxlength=1024 name=keywordsbr 5) input type=text size=70 maxlength=1024 name=keywordsbr 6) input type=text size=70 maxlength=1024 name=keywordsbr 7) input type=text size=70 maxlength=1024 name=keywordsbr 8) input type=text size=70 maxlength=1024 name=keywordsbr /form I submit this form to a 2nd JSP for processing... jsp:useBean id='aBean' scope='session' class=my.pkg.ABean'/ jsp:setProperty name=aBean property=* / The bean has a setter method which passes the parameter array into a List... public void setKeywords(String [] keyWords) { keywords.clear(); for (int i=0; ikeyWords.length; i++) { if (keyWords[i].length() 0) { keywords.add(keyWords[i]); } } } Everything works fine when I compile using the IBM JDK and Tomcat 3.2/4.0 on Intel But that combination does not work on Solaris/Mac OS platforms, or on the Intel platform when using JDK 1.3.1. The input values are simply lost. Everything else in the application seems to work just fine. Just this problem with String [] parameters. Does anyone know something about this issue? thanks, dave ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: HTTP Post Maximum Length
Take a look at RFC 2616 (one of the biggest) http://www.ietf.org/rfc/rfc2616.txt Happy reading. -- Cordialement, davemailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail Question
It's because of scripting security problems, discovered about 2 years ago: I don't remember the details, but cross-frames javascripts could lead the user to think his sessions expires and give his login et password again. So hotmail decided to reject such mails to protect unpatched browsers (aka I.E.), as much webmail providers did. Anyway, you should forget javascript and coded items (applet, flash) in mail, this is not very respectfull of standards neither mail client compliant. Tuesday, March 19, 2002, 6:21:44 PM, tu écrivais: MM Hi MM I am currently using JavaMail with my jsp pages MM I was wondering if someone ever had a problem trying to send object tags in their email html format. MM I currently tested this on hotmail and they reject anything with the object tag MM Does anyone know of what offer providers of email reject the object tag -- Best regards, Davemailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: where can i find a free ide
An excellent one is NetBean, open-source, working on Windows, Linux, MacOsX, Solaris. A bit heavy (huge memory consumption) but stable, efficient. http://www.netbeans.org/ Thursday, March 07, 2002, 8:38:17 AM, tu écrivais: simon where can i find a free java ide.. something like kawa. simon === simon To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. simon For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. simon Some relevant FAQs on JSP/Servlets can be found at: simon http://archives.java.sun.com/jsp-interest.html simon http://java.sun.com/products/jsp/faq.html simon http://www.esperanto.org.nz/jsp/jspfaq.jsp simon http://www.jguru.com/faq/index.jsp simon http://www.jspinsider.com -- Cordialement, davemailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Access MS SQL Server
Easy : Transfer the datas to a postgresql SGBDR, erase NT + SQL Server and save enought cash to buy 1 good server next year. GD I have the Tomcat 4.0 running over a red hat linux 7.2. I want to access MS GD SQL Server 2000 with a good performance. Anyone know how I can do it? GD _ GD O MSN Photos é o jeito mais fácil de compartilhar e imprimir as suas fotos: GD http://photos.msn.com.br/support/worldwide.aspx GD === GD To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. GD For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. GD Some relevant FAQs on JSP/Servlets can be found at: GD http://archives.java.sun.com/jsp-interest.html GD http://java.sun.com/products/jsp/faq.html GD http://www.esperanto.org.nz/jsp/jspfaq.jsp GD http://www.jguru.com/faq/index.jsp GD http://www.jspinsider.com -- Cordialement, davemailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Loading pdf files - urjent
I am not sure about your question's meaning, but the more standart way is to use FOP : http://xml.apache.org/fop SA Hi all, SA does anyone know of a way to upload pdf files from jsp? SA Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Setting focus in JSP
Henry, I don't know why this code didn't worked. I tryed it in differents way, and they all worked in IE 6 and mozilla 0.9.8 Not in Netscape 4.78 anyway, without any error. Watch my code : form action=# name=frmEmployee input type=text name=txtName value=tata a href=# onMouseOver=FirstFocus()focus/a !-- work -- /form Script LANGUAGE=JavaScript TYPE=text/javascript setTimeout(document.frmEmployee.txtName.select(),200) //work document.frmEmployee.txtName.select(); //work function FirstFocus() { document.frmEmployee.txtName.select(); } document.onLoad=FirstFocus() //work /script === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Leaving the JSP page
The event in question is onUnload (window object, body tag) Take a look on the html I joined. unfortunatly, the onchange events aren't fired when declared in script tags. If anyone can explain me why ... Thursday, February 28, 2002, 11:56:50 PM, tu écrivais: JV BTW, is there a single JavaScript event to accomplish this? It would the complement of 'onLoad', something like 'onNavigate' or 'onLeave' JV It must be possible because for example on the CitibankOnline site, once you're logged in, whenever you point your browser to somewhere else (be it through a link on the currently displayed page JV or by typing a URL directly in the browser), the citibank page detects it and pops up a dialog. Maybe it's only possible in IE. Anyone knows? JV John JV -Original Message- JV From: Jaishankar Jayaram [EMAIL PROTECTED] JV Date: Thu, 28 Feb 2002 14:12:10 -0500 JV To: [EMAIL PROTECTED] JV Subject: Re: Leaving the JSP page This is a javascript question, more appropriate for a list dealing in it, but here's something that might work: !-- scripts type=tetx/javacsript var glbBlnNothingthingChanged = true; /scripts -- Set the onchange attribute of all form fields to set the global boolean to false: input type=text onchange=glbBlnNothingthingChanged = false; and the onclick of all links o return the boolean: a href=xyz.jsp onclick=return glbBlnNothingthingChanged target=_blankClick me/a From: sanjib B [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Date: Thu, 28 Feb 2002 12:00:50 -0700 To: [EMAIL PROTECTED] Subject: Leaving the JSP page Hi All, In my JSP page I have some editable fields which the user can edit but before applying those changes to database updates, if the user clicks some other link or wants to leave the page I want to prevent the user from doing so and wnats to show a message box. If the user presses Ok and want to discard the previous edits then only I want to allow the user to leave the page. How do I do so? any idea ?? thanks sanjib === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com JV -- JV ___ JV Sign-up for your own FREE Personalized E-mail at Mail.com JV http://www.mail.com/?sr=signup JV === JV To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. JV For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. JV Some relevant FAQs on JSP/Servlets can be found at: JV http://archives.java.sun.com/jsp-interest.html JV http://java.sun.com/products/jsp/faq.html JV http://www.esperanto.org.nz/jsp/jspfaq.jsp JV http://www.jguru.com/faq/index.jsp JV http://www.jspinsider.com -- Cordialement, davemailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
User Defined Implicit Objects
Is there a way to create a user-defined implicit object, which applies to every page in a web app - without having to place extra tags at the top of every page? Namely, I would like to eliminate these tags: %@ tablig prefix=me uri=.. %me:defineObjects / Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Unable to load driver
I use mysql, and for that driver I I created another folder under web-inf called lib, and put it in there. -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Praveen PotineniSent: 08 January 2002 20:59To: [EMAIL PROTECTED]Subject: Unable to load driver Hi all, I have some problem loading the driver. I think i have put the driver files in a wrong place. When i run the code which looks like this: private String myDriver ="com.sybase.jdbc2.jdbc.SybDriver"; ... ... ... ... try{ Class.forName(myDriver).newInstance(); }catch(Exception e){ throw new InstantiationException("Unable to load myDriver:"+e.toString());} I am getting this error below: Exception java.lang.InstantiationException: Unable to load myDriver:java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver I am using tomcat 3.3 here... Can some one suggest me where i have to include the driver files to make it work... And the environment variable CLASSPATH =C:\jakarta-tomcat-3.3\lib\common\servlet.jar;C:\jakarta-tomcat-3.3\webapps\examples\WEB-INF\classes;C:\Program Files\Sybase\SQL Anywhere 7\java\jdbcdrv.zip;c:\Program Files\Sybase\jConnect\classes\jconn2.jar Thanks Praveen
HELP: chroot and native threads
Apologies if this isn't the best forum, but I've come up empty. We run Tomcat in a chroot environment but cannot use native threads. Everything works great in a non-chroot environment but irratic problems occur in chroot unless we use green threads. Anyone have a clue? pointers to someplace or someone? Anything? Dave
Re: Search Engine
Jakarta Lucene @ http://jakarta.apache.org/lucene/docs/index.html "Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform. Jakarta Lucene is an open source project available for free download from Apache Jakarta. Please use the links on the left to access Lucene. " -dave - Original Message - From: Joe Blow To: [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 7:34 AM Subject: Search Engine Hi there,Does IBM websphere provide any search engine for developers that could beused in our pages? Any ideas?-Rizwan===To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".Some relevant FAQs on JSP/Servlets can be found at:http://archives.java.sun.com/jsp-interest.htmlhttp://java.sun.com/products/jsp/faq.htmlhttp://www.esperanto.org.nz/jsp/jspfaq.jsphttp://www.jguru.com/faq/index.jsphttp://www.jspinsider.com
Re: what's wrong with this piece of code
quotes in quotes... escape the inner quotes Dave Deniman - Original Message - From: Eric Cho To: [EMAIL PROTECTED] Sent: Tuesday, November 27, 2001 1:45 PM Subject: what's wrong with this piece of code Hi all, need a handI'm getting errors of : .java:751: String not terminated at end of line. newDate = " ^.java:757: String not terminated at end of line. "; for this code %String newDate = new String();newDate = "%jsp:getProperty name="lineItem" property="date" /%"; % can you point out what i'm doing wrong please? Thanks, Eric
IllegalStateException and Tomcat 4.0
All of our forwardinghas broken when trying to run under Tomcat 4.0. Below issome example code causing us the problem - all of it works great under Tomcat 3.2! We have a small handful of JSPs which use... jsp:useBean id="sessionBean" scope="session" class="org.dlese.dpc.catalog.SessionBean"/ jsp:forward page="%= sessionBean.getCurrentPage() %" / whichnow returns a "Resource Not Found Error" andhave used jsp:useBean id="sessionBean" scope="session" class="org.dlese.dpc.catalog.SessionBean"/%String jspPage = sessionBean.getCurrentPage(); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(jspPage);dispatcher.forward(request, response);% ... which now throws IllegalStateException. Same thing happens when our serlvets forward using RequestDispatcher. I realize the exception is suppose to indicate thatsomething has been written to the response already or that the response buffer has been flushed, but we didn't change any code - nothing is being written before forwarding that I know of any help would be greatly appreciated. Dave Deniman
Java Swing and XP data
I bought my new laptop for two reasons: 1. Keyboard stopped working (main reason) 2. My recent use of IntelliJ causes too much disk swapping InelliJ is a Java IDe and consumes a shitload of RAM. My Sony laptop never did much disk swapping because it had 256MB ram. That is, until I started using IntellJ. Whenever my laptop started doing disk swapping I would go to task manager and sure enough IntelliJ was using 50 to 100 MB of memory. So, I just said to my self that Java IDE's are all just memory pigs. After all JBuilder and Sun's Forte/NetBeans are even MORE memory hogs than IntelliJ. So when I got my XP Toshiba the only program that didn't work was Morpeus. And I can't live without that. So I started using LimeWire, a really cool Java Swing based Gnutella client. I really like LimeWire. It's much more polished than morpeus. However, after using it my disk swapping came back. Fuck! I have a brand new laptop with 512MB of RAM and it's freaking disk swapping. This pisses me off. Looking into task manager, I find LimeWire is almost as much of a memory hog as IntelliJ. So in short, my 512MB of RAM has gained me nothing for (i think) two reasons: 1. Forced to use limewire instead of morpheus. 2. XP is more of a memory hog than win2000 (i think i can turn shit off but i'm not sure) I am now pissed off that i spent all this time and money and still have excessive disk swapping. Here some questions I have: Does XP use more memory than win2000? Are LimeWire and IntelliJ poorly written applications or is Swing a memory hog? Something to think about if you'll be developing swing apps. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Can I run JPSs on IIS
I've been asked to build some Wap pages to add to an existing Web Site, and run on the same server, which is Microsoft IIS. I always use JSPs for my wap pages, but can I run them on IIS ? Thanks Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Can I run JSPs on Microsoft Mobile Information Server ?
Hi, I currently use Tomcat 4 and BEA WebLogic Server. I've been told to investigate Microsoft's Mobile Information Server. Will I be able to run my JSPs and Java Servlets on it ? Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Multiple instances of one web-app
Suppose I want to have two instances of the same web-app running at 2 different URLs: 1. myServer/wa1 2. myServer/wa2 Now suppose I want to have different startup parameters for each web-app. Is there a standard way to do this? Dave Ford Smart Soft - The Java Training Company http://www.smart-soft.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: CALLING A SERVLET FROM A JSP
why not use jsp:forward page=servlet url / ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Parag Patwa Sent: 12 September 2001 10:37 To: [EMAIL PROTECTED] Subject: CALLING A SERVLET FROM A JSP Hi, I am trying to call an existing servlet from a jsp. Can this be done and if so, can someone give me some example code? thanks Parag === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
WebLogic 6.0 and Mime Types
Hi, I want my wap users to be able to enter just my domain name, and get a welcome page. On Tomcat this works fine, I just have an index.jsp which outputs the WML. But when I use the same code on WebLogic I get 'Unsupported Content Type' returned by my browser. This is in spite of using the same web.xml in the WebLogic DefaultApp/Web-Inf as in Tomcat's Root/Web-Inf, and that web.xml containing all the mime types. Does anyone know how I fix this on WebLogic, or if its fixed in Release 6.1 ? Thanks Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Swing components in JSP
This is a permission issue for the X windows server. I expect the terminal is owned by somebody and the java process by another user. You can turn off all X security by saying xhost +, but this allows anybody access to your terminal. Are you sure that the DISPLAY variables is set corretly ? D. Received-Date: Wed, 22 Aug 2001 13:56:12 +0100 (BST) X-Complaints-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Date: Wed, 22 Aug 2001 08:31:11 -0400 From: St. Louis, Thomas (CRD) [EMAIL PROTECTED] Subject: Swing components in JSP To: [EMAIL PROTECTED] I'm using the swing JTree component in one of my jsps and I get the following Exception trying to execute the servlet in Weblogic on a Solaris box. The solaris environment is looking for the DISPLAY environment variable and I'm not sure if this is a servlet issue or a Weblogic issue. Has anyone encountered this and if so do you have any suggestions on the fix. Tue Aug 21 17:23:06 EDT 2001:E ServletContext-General Servlet failed with Exception java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at Unloaded Method at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.jav a:63) at java.awt.Font.initializeFont(Font.java:262) at java.awt.Font.init(Font.java:292) at javax.swing.plaf.metal.DefaultMetalTheme.init(DefaultMetalTheme.java:59) at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(MetalLookAndFeel.java :709) at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:713) at javax.swing.UIManager.setLookAndFeel(UIManager.java:363) at javax.swing.UIManager.setLookAndFeel(UIManager.java:390) at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:850) at javax.swing.UIManager.initialize(UIManager.java:926) at javax.swing.UIManager.maybeInitialize(UIManager.java:948) at javax.swing.UIManager.getUI(UIManager.java:559) at javax.swing.JTree.updateUI(JTree.java:493) at javax.swing.JTree.init(JTree.java:459) at structurewalker.tree.StructureTree.init(StructureTree.java:117) at structurewalker.tree.StructureTree.init(StructureTree.java:108) at structurewalker.tree.StructureTree.init(StructureTree.java:97) at jsp_servlet._eEngineer._BomWalker._jspService(_BomWalker.java:355) at weblogic.servlet.jsp.JspBase.service(Compiled Code) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code) at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code) at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code) at weblogic.kernel.ExecuteThread.run(Compiled Code) Thanks, Tom g GE Corporate Research Development __ Tom St.Louis GE Corporate Research Development One Research Circle, K1-5C39C Schenectady, NY 12309 Phone: (518) 387-4900 Dial Comm: 8*833-4900 Email: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- email [EMAIL PROTECTED] -- web www.pinan.co.uk --The opinions expressed in this article are personal and do not --represent the views of Pinan Software. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Tag libraries and jsp:getProperty
Dave Potts wrote: I have attempted to supplyu the input from a bean via jsp:getProperty to a custom tag. pinlib:foo value=jsp:getProperty name=addressInfo property=address / The syntax of double quote marks is correct according to the Hans Bergsten Java server Pages book. The web server is tomcat version 3.3 milestone 4, is this a case of a bug, feature, RTFM or more likly a coding error on my part ? I have tried playing with using ' quote marks, but receive other error messages. Does anybody have a clue You are trying to use a JSP action element to set the attribute value of another custom action, and that is not allowed according to the JSP spec. You must use a JSP expression to set the attribute value instead: pinlib:foo value=%= addressInfo.getAddress() % / Most likely you're confusing this scenario with another scenario I describe in the book, namely setting the attribute value for an HTML element using the getProperty action, e.g. input name=userName value=jsp:getProperty name=user property=userName / This works because the web container treats the HTML element as template text; it's doesn't interpret the HTML elements so as far as the container is concerned, the above is the same as: Any text jsp:getProperty name=user property=userName / Any text I hope you understand the difference. I understand the difference, its a nice theory, but it does'nt work. I tried something smilair % String name=request.getParameter(address); % pinlib:foo value= % name % / With the result that the string % name % is passed through to the tag, a quick look at the generated source shows _jspx_th_pinlib_arg_0.setPageContext(pageContext); _jspx_th_pinlib_arg_0.setParent(_jspx_th_pinlib_system _0); _jspx_th_pinlib_foo_0.setValue( % name %); int _jspx_eval_pinlib_foo_0 = _jspx_th_pinlib_arg_0.doStartTag(); I have checked the setting in the tab ligrary xml file, the retexprvalue is set to true. So I am still stuck Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- email [EMAIL PROTECTED] -- web www.pinan.co.uk --The opinions expressed in this article are personal and do not --represent the views of Pinan Software. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Tag libraries and jsp:getProperty
I have attempted to supplyu the input from a bean via jsp:getProperty to a custom tag. pinlib:foo value=jsp:getProperty name=addressInfo property=address / The syntax of double quote marks is correct according to the Hans Bergsten Java server Pages book. The web server is tomcat version 3.3 milestone 4, is this a case of a bug, feature, RTFM or more likly a coding error on my part ? I have tried playing with using ' quote marks, but receive other error messages. Does anybody have a clue The error trace is Error: 500 Location: /factotum/jsp/ping.jsp Internal Servlet Error: org.apache.jasper.compiler.ParseException: /export/home2/bindist/tomcat/jakarta-tomcat-3.3-m4/webapps/factotum/jsp/foo.jsp( 32,21) Attribute addressInfo has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:520) at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:636) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:833) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java:665) at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:618) at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:437) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:915) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:820) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:778) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Inter ceptor.java:150) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:435) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:50 5) at java.lang.Thread.run(Thread.java:484) -- email [EMAIL PROTECTED] -- web www.pinan.co.uk --The opinions expressed in this article are personal and do not --represent the views of Pinan Software. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: EJB and Tomcat/Servlet and JSP
After playing around with this for a while, I found that thest thing to do is to use Javabeans to do the dtabae access. I don't know why you would need an EJB, a simple JavaBean should be enough. I use one for selects and inserts to the database, then I can call it from JSP and servlets. Dave -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nguyen, Thang P Sent: 17 August 2001 01:21 To: [EMAIL PROTECTED] Subject: Re: EJB and Tomcat/Servlet and JSP First, would like to thank Christopher for pointing me to EJB sources. Secondly, I have another question, if I want to build a web application, mainly to access the database (delete/add/modify, etc). Should it be good enough if I put these codes inside servlets, in other words, use servlets to control the business logic as well as manipulate the database? Or do I need to write my own EJB(s) to do this database manipulations? My client will talk to the servlets, then the servlets will talk to EJB(s). perhaps it is a 4 tiers architecture. If that is the case, then I would need somthing like JBoss, which has Tomcat embeded so that it can serve as a single engine for both servlets/jsp and EJB all together. Please recommend the way you would do. Thanks much in advance. -TN -Original Message- From: Christopher K. St. John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: Re: EJB and Tomcat Nguyen, Thang P wrote: I would appreciate if you drop a few lines on your experience using EJB with Tomcat (especially the EJB(s) for accessing database), or if you just simply point out that my question does not make any sense. Some J2EE implementations use Tomcat, but that's not really on-topic for jsp-interest or servlet-interest. You might try: http://archives.java.sun.com/archives/j2ee-interest.html or maybe: http://archives.java.sun.com/archives/ejb-interest.html You might also want to check out JBoss: http://www.google.com/search?q=jboss and, of course, Sun's J2EE reference implementation. They both use Tomcat. (Hmmm, on second thought, not sure about JBoss, but you ought to check it out anyway) -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: WebLogic 6.0
create a new webapp directory under applications, put the jsps in there, and create web-inf/classes below the webapp directory, and put the servlets in classes. Remember you have to configure web.xml in the web-inf folder. Dave -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sharath Paul Sent: 17 August 2001 04:27 To: [EMAIL PROTECTED] Subject: WebLogic 6.0 Hi friends, I have just started working on WebLogic Server and am not able to find out where to place my JSP/Servlet files in the weblogic directory of the domain that I use. Please help me out! Regards, Sharath === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Information about MVC
You could try Java Server Pages by Hans Bergsten, O'Reilly ISBN I-56592-746-X, I prefer books written by a single author, instead of a commite. Hans book even cover setting up a web server (tomcat) for a novice user. D. Received-Date: Mon, 13 Aug 2001 12:37:55 +0100 (BST) X-Complaints-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Date: Mon, 13 Aug 2001 16:04:26 +0530 From: Anupma Bakshi [EMAIL PROTECTED] Subject: Information about MVC To: [EMAIL PROTECTED] Hi, Can anyone tell me where to find some information about MVC. I have been reading a lot about it in this list, would like to learn more about it. Thanks Anupma -- email [EMAIL PROTECTED] -- web www.pinan.co.uk --The opinions expressed in this article are personal and do not --represent the views of Pinan Software. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Help need a reliable host soon.
Where can I get dynn client ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of King Maurice Sent: 18 July 2001 16:17 To: [EMAIL PROTECTED] Subject: Re: Help need a reliable host soon. Is this site for commercial use (meaning getting alot of hits) If your site is just for testing purposes try this implementation. If you have high broadband internet access (like dsl or cable) and the ip is dynamic(changing from time to time) Consider using dynn client It a peice of software that pings its server to updates your ip address to their system, so that you can create a webserver at home or whereever your connection is at. The Benefits are: Setting up any environment, webserver, software program, email, wireless, database, multi domains, etc. Total access to resource instead of calling a stupid helpdesk why you can't login or why things are not working Total usage space instead of having restriction to space (100 megs etc) Plus it Free to use the client Plus you save money, wasting on a unreliable host. Remember to use this client for testing purposes if you decide to use it for commercial use, consider your upload bandwidth plus calls from your isp if your hogging up the bandwidth (applies to cable users). The setup I have is testing for wireless devices Maurice~ W:: alltechneeds.com T:: 917-716-6011 - Original Message - From: cupid1 [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 18, 2001 7:49 AM Subject: Re: Help need a reliable host soon. Try Reinventinc.com. It offers many features that you are looking for. shuaib - Original Message - From: Doug Turner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 17, 2001 9:44 PM Subject: Re: Help need a reliable host soon. I use mmaweb.net, not free, but seems to be highly reliable. $49.99/month for a commerce account with your own private JVM - http://www.mmaweb.net/commerce.html At 06:04 PM 7/17/01 -0700, Hans Bergsten wrote: Dylan del Rosario wrote: All, Any one have a reliable JSP hosting reference. I need database either Oracle, mysql, etc... and 100 megs space. Must have 24 hour support and telnet shell account, and have extensibility for new class path additions for my own packages to be added. You find a list of JSP hosting companies here: http://TheJSPBook.com/resources/category.jsp?id=1005name=JSP+web+hosting Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html
Re: Installing EJB's in WebLogic 5.1
Try reading this doc from the BEA website http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_contents.html Dave -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Frank Mancini Sent: Thursday, June 21, 2001 12:10 PM To: [EMAIL PROTECTED] Subject: Installing EJB's in WebLogic 5.1 Can someone summarize the way to install an EJB and or a jar that contains the beans in Weblogic 5.1. _ Get your FREE download of MSN Explorer at http://explorer.msn.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Code example for web services
While I'm waiting for the JavaOne slides to be posted, does anyone have a simple online example of an XML web service implemented with a Java client and servlet? Thanks Dave Bolt Whenever something difficult becomes easy, two impossible things become difficult. - Jim Buyens === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Standar Template
I want to create a web app in which every page on the site has a standard header along the top and a standard menu along the left edge (a pretty standard thing). I came up with 2 ways of doing this: 1. Use a table tag and jsp:include tags on EVERY page: table tr tdjsp:include page=standardHeader.jsp//td /tr tr td colspan=2 table tr td valign=topjsp:include page=/menu.jsp //td td valign=top THIS IS WHERE THE PAGE-SPECIFIC CONTENT (i.e. the body)* /td /tr /table /td /tr /table 2. Invert the above solution to create one master template (or controller) and have the content page name passed in as a parameter. Here would be the master template-controller page: table tr tdjsp:include page=standardHeader.jsp//td /tr tr td colspan=2 table tr td valign=topjsp:include page=/menu.jsp //td td valign=top jsp:include page=%=request.getParameter(contentPage)% /* /td /tr /table /td /tr /table The key difference between these two architectures are best understood by looking at the 2 lines with the * at the end. Also, in option 2, there is only one copy of the above code. In option 1, there is one copy per content page Q1: Does anyone have any preference between options 1 and 2? Q2: Is there a better way of achieving this result? Q3: Do either have any negetive drawback I need to consider? (I will be converting an entire site) By the way, I'm currently achieving this effect VERY easily using good old client-side html frames. But due to popular demand, framse must go. Dave Ford Smart Soft - The Java Training Company http://www.smart-soft.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
jsp:getProperty, null and empty string
Is there a way to tweak jsp:getProperty so that it returns %nbsp; if the property is null or empty string? Dave Ford === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP too slow ...
Try using the jikes compiler instead - simply take out some comments in web.xml David -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of erik morton Sent: 25 April 2001 14:13 To: [EMAIL PROTECTED] Subject: Re: JSP too slow ... Was this the first request to the given JSP page? If the answer is yes, then Tomcat needs to translate your JSP code into a valid Servlet and then compile the servlet. The only time this occurs is the first request after the page has been modified - that is why it may take a while. Jon Shoberg wrote: I am doing some development work in JSP right now to get a feel for it and Java. One thing I've noticed is speed. I am running Win2000 with the latest Apache, Java 1.3, tomcat 3.2, and Jakrta(tomcat) installed as a NT Service. When I click on simple JSP pages it takes forever (2-4 second wait). In comparison the PHP setup I have is almost instanting when I make a request for a simple page. Any thoughts on how to speed things up? My box is an Athlon 750 with 512mb of ram running Win2000 so everything should be fairly instant. thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Erik I Morton Software Developer -- CommerceHub http://www.commercehub.com 518-886-0704 21 Corporate Drive Clifton Park, NY 12065 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP Tomcat Windows 98
Hi, I've recently set up a tomcat server to test my application. I can get the servlets and HTML working, but I can't get any of the JSPs working. I've set it up on Windows NT and had no problems at all. What is the difference for the Windows 98 set up for JSPs ? Is there another parameter to set in Classpath or something ? David Prout Herts, UK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Response has already been committed
Often this happens because you are attempting to forward a user to another page or an error has occured and Tomcat is attempting to send the user to your web apps error page and content has already been sent to the user. This can also happen when you try to set various headers in the response object (mime type, length, etc.) and content has already been sent to the user. Most JSP engines, including Tomcat, use a buffer that temporarily holds information to be sent back to the user, as long as the buffer has not been flushed (i.e. sent to the user's browser), you can do stuff like jsp:forward, etc. Once the buffer has been flushed at least once, any attempt to forward the user, set HTTP headers, etc. will cause the app to get this exception. The buffer is something like 4K or 8K in size. Double check the content on your page, you are probably getting an exception which is causing a forward to your error page, but the buffer has already flushed. Check the log files carefully, you might have an earlier exception that is being masked by the IllegalStateException. Many of the books on JSPs and servlets also cover this issue, so you might visit your local bookstore to scan for help on this issue. Good luck Dave -Original Message- From: Marino Vittorio [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Response has already been committed I can never figure out why I get this: java.lang.IllegalStateException: Response has already been committed at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon seFacade.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Any hint? Thanks, Vittorio === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: print program in java
doesn't work on Macs... if anyone knows how tho, let me know. Dave - Original Message - From: "sufi malak" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 09, 2001 11:09 AM Subject: Re: print program in java : Hi, here is a small script in javascript, it will do what are you looking : for. : : Step 1. : Put the following script in the head of your page. : : script : function printWindow(){ :bV = parseInt(navigator.appVersion) :if (bV = 4) window.print() : } : /script : : Step 2. : Put the following in the body of your page. : a href="javascript:printWindow()"Print This Page/a : : Good luck : Sufi : : From: "Agarwal, Shekhar (MED, TCS America)" [EMAIL PROTECTED] : Reply-To: A mailing list about Java Server Pages specification and : reference [EMAIL PROTECTED] : To: [EMAIL PROTECTED] : Subject: print program in java : Date: Thu, 8 Mar 2001 12:20:19 -0600 : : hi : i have print button in a jsp,on clicking the button i want the page to : be printed.its functionality should be same as the print button on the : browser. : i want a program module written in java that can print the current page. : can anyone help me ??? : : SHEKHAR AGARWAL (B.TECH) : Email : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : : === : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff : JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST : DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : _ : Get your FREE download of MSN Explorer at http://explorer.msn.com : : === : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JDBC Drivers comparing
thank you mr. jsp-GOD. now that we've all gotten your point, how about chilling out? jeez. some people are newbies, and I don't see anywhere on this board that says that this is for "seasoned users of JSP *only*!" Do you even remember what it's like to be new at something? Yes, off-topic questions should be directed elsewhere. But get the heck down off your high horse, and maybe you SHOULD be answering every question newbies have just to ensure they get the right answer. Then we can rename the list "Ask Joe O. ANYTHING". Would you then get the credit as a deity you so obviously believe you deserve? -Original Message- From: A mailing list about Java Server Pages specification andreference [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph Ottinger Sent: Wednesday, February 21, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: Re: JDBC Drivers comparing I agree, it's a good way to find out things - to ask people about the differences between products. So, which do *you* like better? The Honda Accord or the Toyota Camry? Oh, wait, that might be offtopic for JSP-Interest, too... but who cares, send me an answer. Everybody else expects it here... From: Laurent Bruynooghe [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JDBC Drivers comparing Date: Wed, 21 Feb 2001 17:20:44 +0100 I think it's a stupid question !!! Are you professional ? Sometimes, it's a good way to ask people about the differences bitween products. If you don't want to answer to this kind of question, just shut up !!! Laurent BRUYNOOGHE Visit our new web site : http://www.compubase-europe.com ! e-mail:[EMAIL PROTECTED] tel : 01 69 47 27 11 compuBase 8-10 rue du Bois Sauvage 91055 Evry FRANCE -Message d'origine- De: Joseph Ottinger [SMTP:[EMAIL PROTECTED]] Date: mercredi 21 fvrier 2001 16:59 :[EMAIL PROTECTED] Objet:Re: JDBC Drivers comparing WHy don't you try them out and see for yourself? From: Laurent Bruynooghe [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JDBC Drivers comparing Date: Wed, 21 Feb 2001 16:52:08 +0100 Hi, Two weeks ago, i asked you for JDBC drivers for Sql Server 6.5, you gave me good responses. Thank a lot for it. I have another question. I have 4 JDBC Drivers : JSQLConnect (netdirect), i-net UNA 2000 (i-net software) i-net SPRINTA 2000 (i-net software) i-net OPTA 2000 (i-net software) Did anyone try one of these JDBC drivers ? Which one is better ? Thanks for your responses and sorry for my english. Laurent BRUYNOOGHE Visit our new web site : http://www.compubase-europe.com ! e-mail:[EMAIL PROTECTED] tel : 01 69 47 27 11 compuBase 8-10 rue du Bois Sauvage 91055 Evry FRANCE = == To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get your FREE download of MSN Explorer at http://explorer.msn.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at:
JSP beans... blank results
I'm getting a strange result when trying to work with Beans and I'm hoping someone can point out what I'm doing wrong. I'm writing a simple test bean, one private string var and the constructor initializes that string. My jsp declares the bean, and then calls the getVariable() method that simply returns the value of the string. Fine, everything works. If I then even change *one small thing* in my code, it won't work any more. As in, I rename getVariable() to getFoo() recompile the code, save, upload the class file to my test environment. I then change my jsp to call getFoo(), upload that to the appropriate spot... and I see a blank screen in IE. Nothing, nada, not even anything in the source. It doesn't appear to be an ERROR, per se, but something is obviously wrong. Anyone have any ideas? I'm running on a JRun 2.x server, so the JSP has to be 0.91 syntax compliant. :P -dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: difference between variable declared using %! % and % %
Geert, You are listed as a contributor to the book Professional JSP, by Wrox Press. On page 32 of that book, it clearly describes %! % as enclosing a declaration block for variables and methods. The only fault I see in Surya's explanation below is not further explaining what is meant by "valid in the page scripting language," or explaining the scope of declarations in the block and the JSP relationship. Is it possible you are making reference to the concurrency problems when using the declaration scripting element in JSP vs. Servlets? Of course, the original inquiry from Kishor did not state whether he was using a Servlet. And then too, this becomes an implementation design issue as opposed to a simple functionality issue. Perhaps the book is in error. Please clarify what you mean by, "%! % is NOT meant to declare variables." Thanks, Dave Deniman - Original Message - From: "Da-Ming Duan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 4:49 PM Subject: Re: difference between variable declared using %! % and % % : Discussion is always welcome! Geert, can you please explain the difference? I : believe you can. : : DMD : : Geert Van Damme wrote: : : NO NO NO : : If you don't know what %! % exactly does. Don't use it. : And you apparently don't know it. : : %! % is NOT meant to declare variables. : : Again an example of a really bad post. If you don't know it. Please, don't : answer, or at least specify that it's only a wild guess : : Geert Van Damme : : -Original Message- : From: A mailing list about Java Server Pages specification and reference : [mailto:[EMAIL PROTECTED]]On Behalf Of Surya Prakash : Sent: maandag 19 februari 2001 9:59 : To: [EMAIL PROTECTED] : Subject: Re: difference between variable declared using %! % and % % : : : hi kishor : %! % it declares variables or methods valid in : the page scripting language : %% contains a codefragment valid in the page scripting : language : this may help u : surya : - Original Message - : From: "Kishor K" [EMAIL PROTECTED] : To: [EMAIL PROTECTED] : Sent: Monday, February 19, 2001 9:34 AM : Subject: difference between variable declared using %! % and % % : : :hi, : :can anyone tell me the difference between variable declared using %! % : and :% % : :thanx in advance :kishor : : :_ :Do You Yahoo!? :Get your free @yahoo.com address at http://mail.yahoo.com : : : == : = :To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff : JSP-INTEREST". :For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST : DIGEST". :Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : == : = : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff : JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set : JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : :http://java.sun.com/products/jsp/faq.html :http://www.esperanto.org.nz/jsp/jspfaq.html :http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP :http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : : === : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : === : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body
Re: Getting Mysql
mysql.com - Original Message - From: Antillon Reyes Rafael Martin - EXT [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 12:10 PM Subject: Getting Mysql Hello Everyone: I´d like to know where to download mysql for personal use, since it´s free and i think easy to use. Can anybody give a pointer how to install it or what should i do to make it work? I would appreciate it a lot. Rafael Antillón Reyes Grupo Vitro Tel. 3-29-17-00 Ext. 2966 [EMAIL PROTECTED] ICQ# 61057293 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: kinda off topic
If I understand your question correctly, this has nothing to do with your applet but with the HREF you are using to open the new window containing your applet. if you use javascript to open the new window, there are numerous properties you can set on that child... like not allowing resize, hiding menus buttons, etc. i's suggest www.devguru.com and look in the javascript section for what you would need, i personally use their references all the time. -Original Message- From: A mailing list about Java Server Pages specification andreference [mailto:[EMAIL PROTECTED]]On Behalf Of JYOTHI BADE Sent: Wednesday, February 14, 2001 3:27 PM To: [EMAIL PROTECTED] Subject: kinda off topic Hi, I have question related to applet and not jsp. If anyone has any idea please reply. Else please excuse me. I am sorry to bother you all. My question is as follows: I want to bring up an applet on click of a url. That is o.k, i can do it but the problem I have is , when it opens in a browser it should open completely, meaning, I should see only the applet in the browser and should not see the the browser tool bar i.e the back button, refresh button and so on... Please help. It's urgent. appreciate your help. J === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP, JRun, and Beans
hi, I'm running a simple test.jsp file on our JRun server, everything has been working fine until I try and use beans. I can compile the file fine, put the class file on the server, and make sure that the classpath includes the directory where I'm storing the class. (well, the directory where I'm storing the subdirectory, since the class is in a package) So my class file is in d:\jrun\jsm-default\classes\dave directory. Any time I try and use the bean, I get a 500 error saying Found 1 semantic error compiling "d:/Jrun/jsm-default/services/jse/servlets/jsp/javadev/ravage/test.java": 89. test.getMessage(); --- *** Error: No method named "getMessage" was found in type "jsp/javadev/ravage/test" the getMessage method EXISTS, the classpath is set properly (from what I can tell) and I see nothing glaring that I have done wrong. *Please* reply if you can help me, this is becoming more annoying than simply frustrating. Thanks in advance for any help. Below is the entire contents of my Bean -Dave package ravage; public class SimpleBean { private String message = "No message specified"; public String getMessage() { return(message); } public void setMessage(String message) { this.message = message; } } === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP, JRun, and Beans
The problem is, getMessage has no arguments. It's a simple function that returns a String type, takes no arguments and just returns the value of the private String "message". so with bean package ravage; public class SimpleBean { private String message = "No message specified"; public String getMessage() { return(message); } public void setMessage(String message) { this.message = message; } } I have the corresponding jsp code trying to get it back out jsp:useBean id="test" class="ravage.SimpleBean" / %= test.getMessage() % that's it. done. and it doesn't work. :( Any clues from that? I've stopped trying to use the setMessage() procedure in the bean since I can't even make the get work. thanks for help -Dave -Original Message- From: A mailing list about Java Server Pages specification andreference [mailto:[EMAIL PROTECTED]]On Behalf Of Daryani Santosh Sent: Tuesday, February 13, 2001 11:34 AM To: [EMAIL PROTECTED] Subject: Re: JSP, JRun, and Beans One thing you might wanna check is the argument types of the method and return value if you are accessing it. For ex if getMessage has a string argument and you calling it without the argument you will get the method not found error because the function declaration does not match the call.Check the scope of the method too. The error isn't exactly "Method does not exist" , but "method declaration does not match call" . The error message is not very descriptive . I have been through similar errors before , it may not necessarily be the same in your case, you can try it though Santosh Dave McHale [EMAIL PROTECTED] on 02/13/2001 10:59:33 AM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Santosh Daryani/IT/Aon Consulting) Subject: JSP, JRun, and Beans hi, I'm running a simple test.jsp file on our JRun server, everything has been working fine until I try and use beans. I can compile the file fine, put the class file on the server, and make sure that the classpath includes the directory where I'm storing the class. (well, the directory where I'm storing the subdirectory, since the class is in a package) So my class file is in d:\jrun\jsm-default\classes\dave directory. Any time I try and use the bean, I get a 500 error saying Found 1 semantic error compiling "d:/Jrun/jsm-default/services/jse/servlets/jsp/javadev/ravage/test.java": 89. test.getMessage(); --- *** Error: No method named "getMessage" was found in type "jsp/javadev/ravage/test" the getMessage method EXISTS, the classpath is set properly (from what I can tell) and I see nothing glaring that I have done wrong. *Please* reply if you can help me, this is becoming more annoying than simply frustrating. Thanks in advance for any help. Below is the entire contents of my Bean -Dave package ravage; public class SimpleBean { private String message = "No message specified"; public String getMessage() { return(message); } public void setMessage(String message) { this.message = message; } } === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Php vs Jsp
Perhaps not a reply to the original question, but may be of interest to some... A list of reasons why JSP is better than PHP, posted on a PHP site... http://www.phpbuilder.com/mail/php-general/2000111/1889.php Of course, life wouldn't be complete without an, ummm, objective review by ZDNet... http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html And at least one vested interest claims near static page performance for JSP... http://www.caucho.com/articles/jsp_benchmark.xtp http://www.caucho.com/articles/benchmark.xtp -cheers - Original Message - From: "Duffey, Kevin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 3:50 PM Subject: Re: Php vs Jsp : I don't know about run-time performance although I have heard that JSP ends : up being faster than PHP in direct comparisons. However..that is somebody : else stating that. However, I have heard that JSP is much faster to develop : with in terms of creating a page, then displaying it and being able to work : directly with the Java language intermixed in the page. I am a strong : advocate for Model 3 myself (a fictitious model), where by you follow MVC, : but instead of forwarding to a JSP page, you have the JSP page return XML, : then apply XSL to it. This way the JSP page handles dynamic content tag : creation, and the XSL focusses on page layout of that data. Its a little bit : slower in performance than straight JSP or PHP, but it more readily : separates the content from the display, making it more manageable when : changes need to be done. : : : -Original Message- : From: Tony Einarsson [mailto:[EMAIL PROTECTED]] : Sent: Tuesday, February 13, 2001 12:30 PM : To: [EMAIL PROTECTED] : Subject: Re: Php vs Jsp : : : Interesting that nobody mentioned the performance of PHP vs JSP. : On a JSP list, could that be because JSP doesn't measure up : as far as performance goes? : : We all have opinions but anybody have a more objective : statement about it? : : Tony : : You will probably be able to get away with much more lax : designs in PHP than : you will with JSP. I'm not saying that you WILL design more : poorly in PHP, : but that PHP doesn't really make you think about issues that : JSP more or : less guides you in. : : I don't really consider that a strength for PHP. : : : From: Irfan Mohammed [EMAIL PROTECTED] : Reply-To: A mailing list about Java Server Pages specification and :reference [EMAIL PROTECTED] : To: [EMAIL PROTECTED] : Subject: Php vs Jsp : Date: Fri, 9 Feb 2001 15:33:01 -0700 : : I had a question regarding the comparison of Jsp/ Php. : What are the : advantages of using Php for developing a complex web site in : 5 weeks as : opposed to using Jsp/servlets. : : Thanks : Irfan : : = : == : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff : JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set : JSP-INTEREST : DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : _ : Get your FREE download of MSN Explorer at http://explorer.msn.com : : == : = : To unsubscribe: mailto [EMAIL PROTECTED] with body: : "signoff JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set : JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : :http://java.sun.com/products/jsp/faq.html :http://www.esperanto.org.nz/jsp/jspfaq.html :http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP :http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : : == : = : To unsubscribe: mailto [EMAIL PROTECTED] with body: : "signoff JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set : JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP : http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets : : : === : To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". : For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". : Some relevant FAQs on JSP/Servlets can be found at: : : http://java.sun.com/products/jsp/faq.html : http://www.esperanto.org.nz/jsp/jspfaq.html : http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
Re: I am a beginner
ActionListener is spelt incorrectly Nilz -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph Kimo Kreis Sent: 08 February 2001 16:04 To: [EMAIL PROTECTED] Subject: I am a beginner Hello I got my java program to work if I type in java it works. If I type in javac it work. But when I made a simple program like for a button on an applet it says: import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class clicker extends Applet implements ActionListener{ TextField text1; Button button1; public void init(){ text1 =new TextField(20); add(text1); button1 = new Button ("Click Here!"); add (button1); button1.addActionListner(this); } public void actionPerformed(ActionEvent event){ String msg = new String ("Welcome to Java"); if( event.getSource() == button1){ text1.setText(msg); } } } There error says: clicker.java:15: cannot resolve symbol symbol : method addActionListner (clicker) location: class java.awt.Button butto1.addActionListner(this) ^ I Don't understand what that means I got this example out of a book "Java 2 Complete." Does this book suck? If you know how to solve my problem can you help. And can you point me in the right direction for book that I need to get. Thank you ~ ~~ ~~~ *** Joseph Kimo Kreis Web Developer for MSE Department Terman Engineering Center Stanford University Stanford, CA 94305-4026 mailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: De-Tokenizing ?!
wouldn't that never enter the "if" since you're initializing the string var to "" and then only adding items to it if it's NOT already equal to ""? sorry, I'm not a perl programmer, so maybe I'm interpreting it wrong... my pseudo-code would be close to . . . . myString = "" for (x=0; xN; x++) { if (x==0) { myString = myString + myArray[x] } else { myString = myString + ", " + myArray[x] } } -Original Message- From: A mailing list about Java Server Pages specification andreference [mailto:[EMAIL PROTECTED]]On Behalf Of Seger, Jeffrey Sent: Friday, January 26, 2001 4:12 PM To: [EMAIL PROTECTED] Subject: Re: De-Tokenizing ?! In Perl, I'd do some thing like this: my $new_string =""; foreach my $item (@array){ if ($new_string ne "") { $new_string .= $delimiter.$item; } } I'll let you work out the syntax in Java. -Original Message- From: Mayuresh Kadu (Aftek Infosys, Pune) [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 3:54 PM To: [EMAIL PROTECTED] Subject: Re: De-Tokenizing ?! Peter, I amused. Can i please asked how ?! Mayuresh - Original Message - From: Peter Choe [EMAIL PROTECTED] yes "Mayuresh Kadu (Aftek Infosys, Pune)" wrote: hello all, is there anyway in which i can convert a array of Strings into a Delimited String - sort of "De" Tokenize it === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
How can I debug jsp in JBuilder4 with Tomcat 3.2
Hi list, Can anyone point me to a reference or give me a hint? Thanks Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Can I pass an object to an applet by JSP?
Hi all, Is it possible to pass a Vector object to an Applet by JSP? If yes, please point me to some reference or demo. Thanks Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Need help to access Microsoft Word 2000 from JSP
Um, enable Word macros? Can you say 'security hole'? - Original Message - From: Shilpa Sardal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 1:34 PM Subject: Need help to access Microsoft Word 2000 from JSP Hi , Does any one know how to open the Microsoft Word 2000 document from JSP and enable the word Macros ? Thanks Shilpa === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Need help to access Microsoft Word 2000 from JSP
"security hole". So long as the page you are working on is for Intranet use or the like I don't see any problem with it. =) -Original Message- From: A mailing list about Java Server Pages specification andreference [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Daniels Sent: Wednesday, January 24, 2001 2:57 PM To: [EMAIL PROTECTED] Subject: Re: Need help to access Microsoft Word 2000 from JSP Um, enable Word macros? Can you say 'security hole'? - Original Message - From: Shilpa Sardal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 1:34 PM Subject: Need help to access Microsoft Word 2000 from JSP Hi , Does any one know how to open the Microsoft Word 2000 document from JSP and enable the word Macros ? Thanks Shilpa === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Can I pass an object to an applet by JSP?
On Wed, 24 Jan 2001 16:01:07 -0300, you wroth: Thanks!!! Sun has released a new plugin that makes possible the communication between a jsp page and an applet in this page. I don't have the reference now but I'll look for it and send a new message. On Wed, 24 Jan 2001, Dave wrote: Hi all, Is it possible to pass a Vector object to an Applet by JSP? If yes, please point me to some reference or demo. Thanks Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets T+ -- Rodrigo de Oliveira Lopes "Nao me entrego sem lutar Mestrando em Ciencia da Computacao Tenho ainda coracao Universidade Federal do Ceara Nao aprendi a me render [EMAIL PROTECTED] Que caia o inimigo entao" [EMAIL PROTECTED] Renato Russo === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Can JavaScript access JavaBeans?
But that's not *really* accessing a bean from javascript. The server will process the page first, replacing %=Password.getPassword()% with the password value. It would look something like this after processing: if(document.password.newpassword.value == "passwd") When the javascript function is called, it only looks at the client-side page. The difference is java is server-side, and javascript is client-side (usually). Dave - Original Message - From: Dawei Jiang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 11, 2001 2:05 PM Subject: Re: Can JavaScript access JavaBeans? You can access java bean from javascript function like this: --example- -- --- jsp:useBean id="Password" scope="request" class="com.myproject.PasswordBean" / SCRIPT LANGUAGE="JavaScript" function validatePassword() { var returnValue = true; if (document.password.newpassword.value == %=Password.getPassword()%) alert("You must enter a different one!"); returnValue = false; } return returnValue; } /SCRIPT -- -- D. Jiang Sun Certified Java Programmer [EMAIL PROTECTED] -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of giri punn Sent: Thursday, January 11, 2001 12:52 PM To: [EMAIL PROTECTED] Subject: Can JavaScript access JavaBeans? Hi, I want to access javabean from a javascript function? please let me know if this is possible? thanks, giri _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Sorry--Out of topic question For Html Gurus
its done using DHTML using layers etc. It can get pretty complicated. Have a look at DHTML books for more help! Nilesh -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Deepak C S Sent: 10 January 2001 11:38 To: [EMAIL PROTECTED] Subject: Sorry--Out of topic question For Html Gurus hi , Does anybody know how to develop Navigation Interface like ones On microsoft.com home page,Jspinsider.com etc...?? i.e. On moving mouse cursor over a heading ,a drop down of options is displayed and on mouse Out, the dropdown is removed. Ive seen the sites View/source but not much I could infer from them... So,if anybody knows ,please send a template of how to do it.. your suggestions are welcome. Thanx very much, Deeps === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Get/Post question
Yes, get will solve this problem. There's no way to post data strictly using a link. An alternative would be to create a form with hidden fields storing the values of x, y and, then using javascript to submit the form. Dave - Original Message - From: Dan Lopez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 10:35 AM Subject: Get/Post question For security reasons, I was trying to use "post" and passing the values on to another page. On the new page it uses these values to submit a query. That works fine for the first display of the query. However, when I hit [Next ] I get a SQL error stating that the value "x" "y" and "z" (which are the values I passed to this variable...) are NULL. Would using "get" eliviate this problem? Thanks for the help. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
form elements in an array
How do I place form elements in an array? For example, in PHP I might do something like: input type="checkbox" name="test[]" value="v1" input type="checkbox" name="test[]" value="v2" input type="checkbox" name="test[]" value="v3" The target of the form can then work with the array 'test'. Is there a similar feature with JSP? Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Good JSP Engines
What platform are you using JRun on? We're starting a new project soon, and we're debating between JRun and Tomcat on a Solaris Sparc Box. - Dave -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Julia Reynolds Sent: Monday, December 18, 2000 4:14 PM To: [EMAIL PROTECTED] Subject: Re: Good JSP Engines I've heard Resin is the fastest. Make sure you test whatever engine you are looking at thoroughly. We are having a problem now with getting JRUN to connect to both the built in datasource AND the EJB Container environment variables via JNDI. We can hit one or the other, but never both in the same web application. JJR Sudheendra Hebbagilu wrote: Hi Everybody, May be people have asked this question before. I didn't find a very good answer in archive and FAQ's. We are starting a new project and planning to use JSP technology. I am looking into a JSP Engine. I want to know whats the "cheap and best" JSP engine out there. I would really appreciate if you could provide me the information regarding most popular engines that everyone using. Whats their advantages and disadvantages ? I have to decide which engine to use for this project. I would really appreciate your inputs on this. Thanks in advance Sudhi == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- H e a l t h S t r e a m, I n c. Julia Reynolds - Systems Developer 209 10th Ave. South Ste. 450 - Nashville, TN 37203 phone: (615) 301-3220 - fax: (615) 301-3200 email: [EMAIL PROTECTED] Web Site: http://www.cmecourses.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Good JSP Engines
In both "Core JSP" from Prentice-Hall and "JavaServer Pages" from O'Reilly there is a good section discussing different engines. I suggest you pick one of them up, it'll help you understand the differences better, etc. - Dave -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sudheendra Hebbagilu Sent: Monday, December 18, 2000 4:20 PM To: [EMAIL PROTECTED] Subject: Re: Good JSP Engines Hmm... ofcourse dont have that much money fro weblogic. But tomcat is not stable enough for production. Thats what they say. Is there any other engine ? TIA ~S -Original Message- From: Bill Crook [mailto:[EMAIL PROTECTED]] Sent: Monday, December 18, 2000 4:08 PM To: [EMAIL PROTECTED] Subject: Re: Good JSP Engines if you have money: weblogic if you don't : tomcat http://jakarta.apache.org/ it's free! :crook -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sudheendra Hebbagilu Sent: Monday, December 18, 2000 3:46 PM To: [EMAIL PROTECTED] Subject: Good JSP Engines Hi Everybody, May be people have asked this question before. I didn't find a very good answer in archive and FAQ's. We are starting a new project and planning to use JSP technology. I am looking into a JSP Engine. I want to know whats the "cheap and best" JSP engine out there. I would really appreciate if you could provide me the information regarding most popular engines that everyone using. Whats their advantages and disadvantages ? I have to decide which engine to use for this project. I would really appreciate your inputs on this. Thanks in advance Sudhi == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
No Subject
set J2EE-INTEREST NOMail set JSP-INTEREST NOMail set EJB-INTEREST NOMail set XML-INTEREST NOMail set SERVLET-INTEREST NOMail === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Hiding code
You should be able to precompile the JSPs, then distribute just the resulting class files. - Original Message - From: Kate McNamara [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 26, 2000 7:39 AM Subject: Hiding code A weird question, and it's probably not possible, but as a part of a project I have to supply my JSPs to a third party. I don't want to reveal my code - is there any way that I can avoid this? Cheers Kate McNamara === 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
Why 3 writers in body tag?
From within a body tag, there seems to be multiple writers for outputting data. What is the difference between these 3 choices: bodyContent.getEnclosingWriter().println("Hello"); bodyContent.println("Hello"); pageContext.getOut().println("Hello"); Thanks, Dave === 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 scope and bean instance
(Apologies if this is a repost, I received error reply on first attempt this morning...) I'm relatively new to JSP and servlets and wish clarification on the binding between a session object and bean instance. As I understand, there is an HttpServletSession object created for each client. What I am unclear about, does each session object then bind a new bean object, or do they share a single bean instance? Any elaboration on this would be helpful, e.g is this handled differently for request, session, or application scope? Thanks, Dave Deniman === 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
jrun studio status
Does anybody know the status of JRun Studio? I've read some good things about it and am anxious to give it a try, but I can't seem to find it. === 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: Command pattern
Look at the Java Pet Store example from Sun's Blueprints book on J2EE. You can download the sample and a PDF version of the book at http://java.sun.com/j2ee Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Narasimha, Goli (c) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 11, 2000 9:23 AM To: [EMAIL PROTECTED] Subject: Command pattern Hi All, Can any one of you give me an example program using Command Pattern in Servlet/JSP? Tx Goli === 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: Dynamic Forms
Dave, If you name all of the checkboxes using the same name as below input type="checkbox" name="mail_option" value="a"Send me mail/inputBR input type="checkbox" name="mail_option" value="b"Send me mail/inputBR input type="checkbox" name="mail_option" value="c"Send me mail/inputBR input type="checkbox" name="mail_option" value="d"Send me mail/input The JSP or Servlet that gets called will get all of the parameters as a array of strings. To read the data in a JSP or servlet use String[] mail_option = request.getParameterValues("mail_option"); You'll receive a String array that has the value of each checkbox in a different string. Good luck. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: David Simcik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 04, 2000 2:26 PM To: [EMAIL PROTECTED] Subject: Dynamic Forms Hi, We want to be able to retrieve a list of values from a form that will have different quantities of elements per user. Specifically, we have a form where each user can update/delete multiple email accounts preferences. So something like this: USER BOB: [[EMAIL PROTECTED]] XSend me mail on event 1 XSend me mail on event 2 [[EMAIL PROTECTED]] XSend me mail on event 1 XSend me mail on event 2 The address would be in a textbox and the X's represent checkboxes. The problem we face is uniquely naming each one of those form elements. We would like to find a method better than incrementally naming each on of the elements and then parsing a rather sizeable querystring afterwards via looping. So, in short, are there any alternatives??? Thanks! DTS === 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: SSL
I know it is possible for a web server to serve secure and insecure content on the same page. For example, the online site for my financial institution causes IE 5.5 to warn me that the site contains SSL and unsecure content. Some secure sites opt to do this mixed security model because they don't want the overhead of sending an image via HTTPS. So in short, I think you can do it. Your users may get weird security warnings from the browser due to the mixed content. If performance is an issue you might want to look into some of the hardware-based SSL accelerators on the market. Supposedly they are faster than software-based SSL. Good luck Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Silvey, Andrew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 1:12 PM To: [EMAIL PROTECTED] Subject: SSL Hi, this question may be considered off topic, so please do not read this if you take offence at postings which are not 100% java related. Does anybody know if it is possible to have a session in a browser with one frame connected to one unsecure URL and another frame connected to a secure SSL URL. Another way to describe this, is it possible to have a browser open with a page displayed. The page is broken into two frames. The first frame contains content which is derived from a URL which is http. The second frame contains content which is derived from a URL which is https. I suppose another question is, is it possible to have two frames connected to different URLS from the same browser session ? Thanks for your time. Andy Silvey. === 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 can I export data to EXCEL usign JSP
One approach is to use the JSP page to output the data as tab delimited and set the content-type to application/vnd.ms-excel %@ page contentType="application/vnd.ms-excel"% 1 2 3 4 5 Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Lorena Carlo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 3:03 PM To: [EMAIL PROTECTED] Subject: How can I export data to EXCEL usign JSP Hello all, Does anybody know how can I export data from arrays to and EXCEL file using JSP? Thanks in advance Lorena === 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: browser tools to troubleshoot?
Marty Hall's book "Core Servlets and JSP" has a couple of apps that might help you. I think you can download the code at www.coreservlets.com Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: David Wall [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 11:27 PM To: [EMAIL PROTECTED] Subject: browser tools to troubleshoot? Is there a web browser tool that will let you see the headers and such that are returned from the HTTP GET/POST? It would be nice to see exactly what my pages are returning... David === 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: Constuctor overloading in Java Bean
The JSP page will always use the no argument constructor. If you need to create a bean using a constructor with arguements then you will have to use a scriptlet in the page. IMO, a JavaBean should be able to be constructed with either constructor since JavaBeans are required to have a no-argument constructor to allow them to function with an IDE. Constructors with arguments should simply be convenience methods that are functionally equivalent to using the no-argument constructor and one or more setXXX() property calls. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Pranav Bansal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 26, 2000 1:40 AM To: [EMAIL PROTECTED] Subject: Constuctor overloading in Java Bean Hi all, Is it possible to do the Constructor Overloading in A Java Bean? If yes, then which constructor'll be called when we use this Java Bean in a Jsp Page using jsp:useBean tag? For ex. lets take the following bean. public class testbean { public testbean() { System.out.println("Hello World"); } public testbean(String s) { System.out.println(s); } } With Regards, Pranav Kumar Software Engineer Informica India Pvt. ltd. Noida,India Phone: -91-118-4514702 www.informica.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: A Random Question
You can do it with servlets. You have to check the request headers to verify that the browser supports compressed pages (gzip) and then use Java gzip capability to compress the data for the output stream. Marty Hall's book on servlets and JSP has an example servlet that does this. I don't think it is possible to do this with a JSP page though a JSP container could implement this feature. The downsides to this approach is that the entire output stream has to be built in memory and then compressed prior to sending to the client. As a result the load on the server is higher. In a very busy site the cost of using compression might actually make the site slower than if the data was sent uncompressed. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Gaurav Gehlot [mailto:[EMAIL PROTECTED]] Sent: Friday, September 22, 2000 8:09 PM To: [EMAIL PROTECTED] Subject: A Random Question Hi, Is it possible to compress the web pages while sending it to the client browser and then uncompress them on the client machine in order to reduce the network traffic. TIA, gg === 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 write comma delimited string which already contains co mma in some data?
Try outputting the data as a tab-delimited file vs. comma-separated. Set the contentType to application/vnd.ms-excel, set the contentLength. Marty Hall's book "Core Servlets and Java Server Pages" ISBN 0-13-089340-4 has an example of doing this with JSP on page 254-257 Hope that helps Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: hua ge [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 10:52 PM To: [EMAIL PROTECTED] Subject: how to write comma delimited string which already contains comma in some data? Hi, I have a jsp page which set proper header and write data out in comma delimited format so the client can download it as a .csv file and open it in Excel later . the data columns are : NAME SSN PHONE EMAIL smith,susan 123-45-4567 123-456-7890 [EMAIL PROTECTED] notice that the NAME column should contains lastname,firstname together with comma separated. my problem is since the NAME field already contains "," which is in this format (LastName,FirstName). so if I treat NAME field as one whole field and write out in comma delimited format, then later in the excel .csv file, the name field actually will be displayed as two separate columns and expand the whole line records as total 5 columns (actually should be 4 columns). my client don't like to make the NAME column shown as (fname lname) with no comma (if so, I will have no problem). they want the (lname,fname) format for this column. So I have to figure out how can I write the comma delimited string which already contains comma in it??? I tried out.println(lname +"\"" + "," + "\"" + fname + "," + SSN + "," + PHONE + "," + EMAIL ); it still break down NAME column as two columns with lname value as smith" and fname value as "susan can someone give me a hint? and help me out here?? Thanks in advance. Helen Ge _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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: Question about URL rewriting.
I ended up using a custom tag that does a URL encode. It works when I run against TOMCAT directly but I'm having trouble if I use the IIS connector. Not a big deal as this time since this app is still a "science project", but I'll have to work it out before we can deploy. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Jacek Laskowski [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 21, 2000 4:53 AM To: [EMAIL PROTECTED] Subject: Re: Question about URL rewriting. Hans Bergsten wrote: If option 2 is what I should do, why doesn't JSP shield the HTML developer from this? The goal would be for the JSP author to be a higher-end HTML developer who shouldn't have to worry about maintaining the session, etc. The goal for JSP is also to be able to deal with other markup languages that HTML, such as XML. Finding all HTML references in the generated output and taking care of session encoding would defeat that goal. It's possible, however, to provide custom actions for all HTML elements that includes links to other resources (e.g. a, img, form) and let the custom action take care of the encoding. Some days ago, I've also raised the question on resin-interest as I also started to worry about it. I have to mention that I didn't think about it much, so the first reaction when I understand the behaviour was similar to Dave. The point is that it would be hard to parse all HTML code, just to find out where URL is and encode it - think about JavaScript code. It would also break JSP contract as it's not parseable language, but that's *only* HTML with some other language-specific (e.g. Java) parts. One suggestion is either make your own tags which could provide the functionality or use some template systems like Resin's XTP. It'll allow you to achieve this and much more "parseable" things:) Hans Jacek Laskowski === 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: Replace
You could use StringTokenizer where the delimiter is a space and simply keep only the elements. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Daryani Santosh [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 21, 2000 2:32 PM To: [EMAIL PROTECTED] Subject: Re: Replace " " trim() will remove any leading or trailing spaces , but does not remove spaces within the string if any. AFIAK , breaking the string and using concat seems to be the best known solution , you could consider using a stringbuffer and appending the portions of the string without spaces , but even that is not any better than breaking the string and doing a concat Santosh Kevin Citron [EMAIL PROTECTED] on 09/21/2000 02:01:46 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Santosh Daryani/IT/Aon Consulting) Subject: Re: Replace " " try Str.trim(); -Original Message- From: sumit shah [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 21, 2000 10:59 AM To: [EMAIL PROTECTED] Subject: Replace " " hi, is there any method of the String class which will allow me to get rid of the blank spaces in a string. i tried Str.replace(' ', '') but jvm does not agree with the 2nd argument saying incompatible type. Is there any direct method other than breaking the string into substring and then concat() it. or if something that i can put instead of ''. thanks, sumit. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
Question about URL rewriting.
If I want my JSP pages to work in a situation where cookies are disabled and the server is doing URL rewriting do I have to use EncodeURL for all of my HREF (and perhaps IMG) tags in my JSP page. Example. Here is a JSP page that retrieves an image (stored in a database) via a servlet and has hyperlinks to other JSP pages. Note: I am using a servlet mapping to map a servlet to a directory The way you would expect to write this page is something like this. IMG SRC="mediaservlet?mediaId=5000"BR a href="page1.jsp"page1/aBR a href="page2.jsp"page2/aBR a href="page3.jsp"page3/aBR If I want the page to work in a URL-rewriting mode do I have to do the following? IMG SRC="%= response.encodeURL("mediaservlet?mediaId=5000")%"BR a href="%=response.encodeURL("page1.jsp")%"page1/aBR a href="%=response.encodeURL("page2.jsp")%"page2/aBR a href="%=response.encodeURL("page3.jsp")%"page3/aBR What I'm basically looking for is some guidance on whether or not I need to do option 2 all of the time to maximize portability and survive cookie-disabled browsers. If option 2 is what I should do, why doesn't JSP shield the HTML developer from this? The goal would be for the JSP author to be a higher-end HTML developer who shouldn't have to worry about maintaining the session, etc. Thanks Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Question about URL rewriting.
But, the servlet needs access to the Session so it can do things such as validating that the user is logged on and can see the content, etc. So, by your answer can I assume that all hyperlinks in JSP pages have to use EncodeURL to successfully survive a browser with disabled cookies? Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 3:04 PM To: [EMAIL PROTECTED] Subject: Re: Question about URL rewriting. You don't have to do encodeURL the 'IMG SRC' unless it's a hyperlink. --Shrisha - Original Message - From: "Bolt, Dave" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 20, 2000 11:18 AM Subject: Question about URL rewriting. If I want my JSP pages to work in a situation where cookies are disabled and the server is doing URL rewriting do I have to use EncodeURL for all of my HREF (and perhaps IMG) tags in my JSP page. Example. Here is a JSP page that retrieves an image (stored in a database) via a servlet and has hyperlinks to other JSP pages. Note: I am using a servlet mapping to map a servlet to a directory The way you would expect to write this page is something like this. IMG SRC="mediaservlet?mediaId=5000"BR a href="page1.jsp"page1/aBR a href="page2.jsp"page2/aBR a href="page3.jsp"page3/aBR If I want the page to work in a URL-rewriting mode do I have to do the following? IMG SRC="%= response.encodeURL("mediaservlet?mediaId=5000")%"BR a href="%=response.encodeURL("page1.jsp")%"page1/aBR a href="%=response.encodeURL("page2.jsp")%"page2/aBR a href="%=response.encodeURL("page3.jsp")%"page3/aBR What I'm basically looking for is some guidance on whether or not I need to do option 2 all of the time to maximize portability and survive cookie-disabled browsers. If option 2 is what I should do, why doesn't JSP shield the HTML developer from this? The goal would be for the JSP author to be a higher-end HTML developer who shouldn't have to worry about maintaining the session, etc. Thanks Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. === 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: Stress Testing your JSP Site
One approach to stress testing if you have a Model 2 (action classes and request dispatcher) site is to take advantage of the architecture of the app for testing purposes. For example, if you have a front component servlet that takes an HTTP request and turns it into an Action object for processing, you can build a custom test app that simply generates Action objects and fires them at your back-end processing. You might be able to test the back-end path (where the bulk of your code is) without worrying about the front-end. Not a perfect solution, but it might be a good start. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Scott Evans [mailto:[EMAIL PROTECTED]] Sent: Monday, September 18, 2000 8:35 AM To: [EMAIL PROTECTED] Subject: Re: Stress Testing your JSP Site Check out this list: http://www.softwareqatest.com/qatweb1.html -Original Message- From: Bradley McLain [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 14, 2000 12:35 PM To: [EMAIL PROTECTED] Subject: Re: Stress Testing your JSP Site we've tested apache jmeter and also the microsoft web application stress tool (i cant remember the exact name). the microsoft tool allows you to record activity scripts, so it can be a bit easier. the problem with such tools, however, is that we haven't found a way to simulate real user activity effectively. we can copy an url with parms and bang away at a particular page, but our app is based on action classes and request dispatcher, which we haven't really gotten to work with an automated tool. we always end up with session trouble. our pages do almost nothing apart from display logic, so with such tools we're not currently able to test the real workhorses of our app which are the classes that our action objects control. i'd be keen to hear anyone else's views / suggestions on this issue. unfortunately, the best 'stress-testing' tool i've found so far is everybody in the company hitting the app at once from differenct clients.. --bradley mclain usmoving.com From: JSP Insider [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Stress Testing your JSP Site Date: Wed, 13 Sep 2000 19:28:22 GMT Hello everyone Performing a quick survey to see which Web Stress testing tool you prefer using with JSP. While stress testing a JSP site is no different than stress testing a normal web site. I am curious to see which tools most Jsp Developers are using for this function. Thanks much! Casey Kochmer [EMAIL PROTECTED] _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
Best Authentication Approach
I have been debating the best way to authenticate users on our web app. The app is a Model 2 style servlet/jsp app with EJBs on the backend (AKA Java Blueprints). Our site has material that is graded for different levels of access. Our security needs are as follows. public access (Anonymous) Authenticated Access A Authenticated Access B Authenticated Access C Authenticated Access D Authenticated Access E Members of group B can see any public info and any info graded as A or B Members of group C can see public, A, B, or C info and so on... Think of the info as being classified (though it is not) as public, confidential, secret, top-secret, compartmented, etc. What is the best way to authenticate our web users? JNDI RDMBS (Oracle or SQL Anywhere) Other We would like the solution to be a single-sign-on solution and I have access to a copy of Netscape's Directory (LDAP) server (version 4.1) We have not yet chosen an EJB/Servlet/JSP container. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. === 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: For-Loop Custom Tag
ltSet rs = stmt.executeQuery(sql.toString()); // while (rs.next()) { String aData, aDisp; aDisp = rs.getString(1); aData = rs.getString(2); if (maximumWidth 0) { if (aData.length() maximumWidth) { aData = aData.substring(0,maximumWidth); } } html.append("option value=\""); html.append(aDisp); html.append("\""); if (showdata.compareToIgnoreCase("yes") == 0) { html.append("("); html.append(aDisp); html.append(") "); html.append(aData); } else { html.append(aData); } html.append("/option\n"); } rs.close(); stmt.close(); pool.returnConnection(con); } catch (SQLException se) { System.out.println(se); throw new JspException("Database Error " + se.getMessage()); } finally { if (con != null) pool.returnConnection(con); } // Write out the rest of the HTML html.append("/select\n"); try { pageContext.getOut().write(html.toString()); } catch (IOException ioe) { System.out.println(ioe); throw new JspException(ioe.getMessage()); } return EVAL_BODY_INCLUDE; } public void setWhereclause(String newWhereclause) { whereclause = newWhereclause; } public void setShowdata(String newShowdata) { showdata = newShowdata; } public void setMaxwidth(String newMaxwidth) { maxwidth = newMaxwidth; maximumWidth = (new Integer(maxwidth).intValue()); } } Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Jurrius, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 12, 2000 11:38 AM To: [EMAIL PROTECTED] Subject: For-Loop Custom Tag Can anybody provide me with an example or point me in the right direction as to how I can make a custom tag that runs a SQL query where it populates an HTML SELECT-OPTION list using a FOR loop and one of the options might be selected? Thanks in advance. Mark === 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
Opinions on best IDE for J2EE work
I am seeking opinions on the best IDE for J2EE work. I'm planning an app that uses JSP, Servlets, and EJB in a J2EE Blueprints sorta way. I've been using JBuilder 3 on Windows for a couple of years (3.5 is too slow). IDE's I'm considering JBuilder Visual Cafe Forte Netbeans Visual Age Target app servers are: J2EE SDK (reference implementation) JRun 3.0 from Allaire JBOSS (www.jboss.org) Weblogic 5.1 What IDE best supports the following features? 1) Team development 2) Creation of JAR, WAR, and EAR files that can be deployed 3) Object/Relational mapping capability. 4) Intuitive easy to use IDE features 5) Integration with version control. 6) Complete support for J2EE I'm not interested in starting a "religous" discussion on whose IDE is best. What I want to know is simply, which IDE works the best for the job. I'm yet to find an IDE that really does all I need. === 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: invoke excel/word from jsp/servlet
The easiest approach would be to see the JSP pages MIME type to text/plain and then have a JSP page that delivers the data in tab or comma delimited format. The problem is that the browser is simply going to show the text vs. offering to save it as a file. Another approach would be to purchase one of the Excel components such as Formula One which can be used on the server side to generate an Excel document. You servlet would use Formula One to generate the Excel file and then stream it to the end user with the Excel MIME type. Another approach would be to use a digitally-signed Java applet that lets you write the file to the end user's disk in whatever format you wanted. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: hua ge [mailto:[EMAIL PROTECTED]] Sent: Monday, September 11, 2000 11:40 AM To: [EMAIL PROTECTED] Subject: invoke excel/word from jsp/servlet Hi, I have a html search result page (done in jsp/servlet) containing lines of found records. our client like to set up a save button on this page and it will invoke word or excel window which will contain all the result data in Text(tab delimited .txt) format or in CSV(Comma delimited .csv). then they can save as the files to their local disk. can someone share some idea or offering some sample code to implement this kind of application? I assume I can set ContextType to some MIME type to invoke excel or word, but how the data in the page can be transfored to the excel or word in a certain format? I need detailed help. I really appreciate if anyone can help me. Thanks in advance Helen _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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: Model 2, replacing servlet with an all-code JSP?
The J2EE blueprints use this approach for the front component. You can download or purchase the J2EE blueprints book. The download is somewhere on the J2EE site at http://java.sun.com The Java Pet Store sample app uses an approach like this. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: JavierG [mailto:[EMAIL PROTECTED]] Sent: Monday, September 11, 2000 11:08 AM To: [EMAIL PROTECTED] Subject: Model 2, replacing servlet with an "all-code" JSP? Hi out there: When using Model 2, can't I replace the servlet used as controller for an "all-code" JSP, that is, a JSP that begins with % and ends with % and no HTML or out statements whatsoever? My point is that coding that way could be easier and faster (much less typing) being as they are a lot of objects predefined and the main parts of the servlet to whish the JSP is translated being automatically generated by the JSP engine. Any drawbacks to this approach? Any comments, ideas, critics, etc, would be greatly appreciated... J. === 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: read an excel file
Another approach would be to use one of the Java components that knows how to read Excel documents. You might look at Formula One and or OutsideIn from Inso (OutsideIn was bundled as part of Oracle's InterMedia product). These might provide an option other than JDBC. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Artem Babenko [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 03, 2000 10:58 AM To: [EMAIL PROTECTED] Subject: Re: read an excel file H! You have to install excel with odbc drive Then you have to create DSN for your table then using jdbc odbc bridge connect to table and read your data bye -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of sridhar r Sent: Sunday, September 03, 2000 5:08 PM To: [EMAIL PROTECTED] Subject: read an excel file Hi Can anyone help me in how to read an excel file.I have to get data in each cell which i have to update in the database. thanks in advance __ Do You Yahoo!? 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: read an excel file
I think everything is pure Java for these components. They are both commercial products so you have to buy a development license. Here are the URLs of the two companies. Formula One http://www.tidestone.com/home/ OutsideIn www.ebt.com These folks used to sell OutsideIn. I'm not sure if it is still a viable product. OutsideIn http://www.schemasoft.com Good luck Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Artem Babenko [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 03, 2000 2:21 PM To: [EMAIL PROTECTED] Subject: Re: read an excel file Hi Dave, Are they not using odbc bridge /or free? I am looking for open source parser for excel file format. Re Artem -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Bolt, Dave Sent: Sunday, September 03, 2000 9:05 PM To: [EMAIL PROTECTED] Subject: Re: read an excel file Another approach would be to use one of the Java components that knows how to read Excel documents. You might look at Formula One and or OutsideIn from Inso (OutsideIn was bundled as part of Oracle's InterMedia product). These might provide an option other than JDBC. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Artem Babenko [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 03, 2000 10:58 AM To: [EMAIL PROTECTED] Subject: Re: read an excel file H! You have to install excel with odbc drive Then you have to create DSN for your table then using jdbc odbc bridge connect to table and read your data bye -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of sridhar r Sent: Sunday, September 03, 2000 5:08 PM To: [EMAIL PROTECTED] Subject: read an excel file Hi Can anyone help me in how to read an excel file.I have to get data in each cell which i have to update in the database. thanks in advance __ Do You Yahoo!? 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
useBean class name problem
dear Sir, I got a problem when I use the jsp:useBean/ tag, I have a bean in package com.xxx.yyy.zzz, when I write the code: %@ import="com.xxx.yyy.zzz.*"% jsp:useBean id="bb" class="bean" scope="request" it doesn't work!!! but when I use %@ import="com.xxx.yyy.zzz.*"% jsp:useBean id="bb" class="com.xxx.yyy.zzz.bean" scope="request" it works!! what's wrong w/ me? I use Linux + jdk.1.2.2 + tomcat, and I sure that I put the imported class in WEB-INF dir, thanx Dave === 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
Fw: useBean class name problem
- Original Message - From: "Dave Lin" [EMAIL PROTECTED] To: "A mailing list about Java Server Pages specification and reference" [EMAIL PROTECTED] Sent: Friday, August 18, 2000 12:06 PM Subject: useBean class name problem dear Sir, I got a problem when I use the jsp:useBean/ tag, I have a bean in package com.xxx.yyy.zzz, when I write the code: %@ import="com.xxx.yyy.zzz.*"% jsp:useBean id="bb" class="bean" scope="request" it doesn't work!!! but when I use %@ import="com.xxx.yyy.zzz.*"% jsp:useBean id="bb" class="com.xxx.yyy.zzz.bean" scope="request" it works!! what's wrong w/ me? I use Linux + jdk.1.2.2 + tomcat, and I sure that I put the imported class in WEB-INF dir, thanx Dave === 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: tomcat and mass hosting
Right, but it could get tricky with several hundered sites, and I'm concerened about the memory issues... - Original Message - From: "ralhan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 13, 2000 11:50 AM Subject: Re: tomcat and mass hosting best is to start tomact different for each host and for that you need different server_host.xml and you can run tomcat_home/bin/start.sh -f tomcat_home/conf/server_host.xml but make sure that the port is different at which it is hearing itself and also apache for each host so in tomcat conf write ApJServMount /host ajpv12://localhost:host_post/host this way you can mount all in the tomcat cong directory for apache ralhan -Original Message----- From: Dave Daniels [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, July 13, 2000 8:54 PM Subject: tomcat and mass hosting Does anybody have any experiences using Tomcat to host many sites (150+) on Linux. The way I understand it, a separate configuration file must be created for each site, which means a separate vm must be running for each site. What kind of memory issues will crop up for mass hosting, and does anybody have any suggestions for putting such a system into place? Thanks, Dave === 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: Good ASP book?
Actually I don't believe I am. I believe some people in this forum have experience with ASP. You might not but other people may have. Don't assume everybody is like you. Web Professionals consider all technologies in order to maximize their opportunities. Sure some people may have recently migrated to JSP 1.0 but that doesn't mean they cannot provide assistance WRT to ASP resources based on previous experience. Actually, I think you are. Some people may have experience with DNS, Sybase, Linux, cross-country skiing or gormet cooking, but that doesn't mean this is the right place to talk about those subjects. This list has enough traffic without bringing up ASP. 'Web Professionals' should not be surprised when they get chided for posting off-topic messages to a specific mailing list. This isn't an "us vs them" question and I'm not touted one technology over another and I'm intersted in getting references from those people who in the past have indicated that they are also knowledgable with _that_ other technology. In particularly references of similar quality to the better JSP books. Thank you. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sanjay Kumar Sent: Tuesday, July 11, 2000 11:50 AM To: [EMAIL PROTECTED] Subject: Re: Good ASP book? Sorry, you are asking question at wrong forum. -- -- -- Sanjay Kumar, Software Consultant, Addcon India Pvt Ltd. New Delhi. Emails : [EMAIL PROTECTED] [EMAIL PROTECTED] Phones : 6423907,6201330 (Office) "Keep Smilling. It does increase your face value" -- -- --- - Original Message - From: Robert Nicholson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 11, 2000 4:00 PM Subject: Good ASP book? Now that I understand JSP and the concepts of the Web application paradigm I'd like to read up on ASP. In particular I'd like to know if there are any books that focus on keeping business logic out of the presentation layer. I know there's a chapter in WROX's Professional JSP , which I'm currently reading but given that this is microsoft technology and the fact that there's a derth of books out there on ASP I'd like to hear peoples thoughts on good books for ASP of a similar standard to the Manning book. Cheers. Repeating. I don't want to read an ASP book that encourages VBScript in the .asp pages. Something that focuses on the ASP equivalent to Module2 architecture. == = 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
JDBC Connection Management
I have just spent the last day researching the topic of Database Connection Management and connection pooling, and now realize, that there are too many choices. I would like to summarize what I have learned and perhaps someone can correct me where I'm wrong or add a comment. Here are your choices: 1. Non-pooled: a. One connection per request: In the service method you open a connection, do your work, then close the connection. b. One connection per servlet: Store the connection as an instance variable of the servlet. Open it in the init method. Close it in the destroy method. c. One connection per session: Open the connection when you create the session. Close the connection in the session time out event: HttpSessionBindingListener.valueUnbound(..) d. One connection per web application: Store the connection in the ServletContext. e. One connection per web application: Store the connection as a public global static variable. 2. Pooled: a. One pool per servlet (Pool as static variable of servlet) b. One pool per application (Store pool in ServletContext) c. One pool per application (Store pool as singleton) d. One pool per application (Store pool in jndi server) It seems to me that 2d, is what Sun is recommending. Once you have decided to go with a connection pool, you have some more decisions to make. 1. Write the connection pool yourself (Fun for me, but not practical for most of my clients) 2. Use a third party, stand-alone connection pool like DbConnectionBroker 3. Find a JDBC driver, that implements connection pooling (is anyone using this?) 4. Use an app server that provides connection pooling (like Web Logic or Orion) The next consideration is the API for working with the pool. You choices are: 1. Use a Proprietary API: For example, DbConnectionBroker uses: conn = myBroker.getConnection(); // do work with connection myBroker.freeConnection(conn); 2. Use a standard API. Sun, has defined the "JDBC 2.0 Optional Package Specification". This specification basically states that the API for using a pooled connection is indistinguishable from using a normal connection (at least to application developers). In other words, the standard API is essentially, "NO API". For example, here is how one might retrieve a "non-pooled" database connection: Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("jdbc/nonPooled/MyDb"); conn = ds.getConnection(); // do work conn.close(); And here is how one would retrieve a "pooled" database connection: Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("jdbc/pooled/MyDb"); conn = ds.getConnection(); // do work conn.close(); The only code difference is in the jndi lookup string. In the first example getConnection() means: "Open a new connection to the database server". But in the second example, getConnection() means, pull a connection from the pool. Likewise, the meaning of conn.close() is also different. So here is what I am using: For some clients, I am using Orion App server, a fully J2EE compliant Servlet and EJB server. Orion provides connection pooling, via a JNDI lookup as shown above. So for these apps, I am using the Sun standard API for pooling: Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("jdbc/pooled/MyDb"); conn = ds.getConnection(); // do work conn.close(); I think this gives me one pool, per web application, but I'm not sure. Anyone else know? Is this Sun defined or vendor specific? For some clients, I am using Apache tomcat (with mySql). For these apps, I'm currently using DbConnectionBroker, stored in the ServletContext. This gives me one pool per web application. What I would like to do, is use the standard Java API's for these tomcat apps, but I can't find any stand-alone connection pools that support the standard, java-defined API for connection pooling. Anyone know of any? So there is my take on the whole connection pool thing. Please let me know if this sounds correct and where I'm wrong. Thanks, Dave Ford === 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
PreparedStatement and Connection Pools
My understanding is that the benefit of a PreparedStatement is that you "prepare it" ONCE and then "execute it" over and over. Thus, the server has a chance to optimize complicated SQL statements ahead of time. So, based on this reasoning, one might choose to "prepare" all of your statements in the servlet's init() method. Then execute them in the servlet's service (or doGet) method over and over. My Question is, how does one receive this "prepare" benefit when using J2EE style connection pooling? Here is my code: try{ String SQL = Context nCtx = new InitialContext(); DataSource ds = (DataSource)nCtx.lookup("jdbc/pooled/mysql_ss1"); conn = ds.getConnection(); ps = conn.prepareStatement(sql); rs = ps.executeQuery(); /* use the ps here */ } finally{ if(ps!=null) ps.close(); if(conn!=null) conn.close();//this really "releases" rather than "closes" the connection } Since the scope of conn is local to the service method, and ps is connected to conn, how can a ps ever live longer than the service method? Thanks, Dave Ford P.S. Is it politically correct, to post to more than one newsgroup? === 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 vs PHP
-JSP allows for the use of all the Java features including JDBC, integration with servlets, and full use of object oriented design and programming. I consider this the most important advantage of JSP over PHP. Obviously, PHP has some level of oop support, but it's pretty limited and gets frustrating after a while. Also, the standar JDBC interface is a *huge* plus in my book. -JSP's pure java support means that anyone who knows Java can code for JSP. There is no propriety language to learn. Java is well supported and documented. Training and books are easy to find. Employees are willing and eager to learn and use Java. It will be more difficult to find developers with PHP skills than JSP skills. Not sure I agree with this completely. While it's true that anyone who knows Java can code JSP, I don't know if I'd say it's not proprietary. I think the learning curve for PHP is not nearly as steep as it is for Java, and have found that non-programmers can actually be quite productive with it. I think it would actually be easier and cheaper to find developers who can pick up PHP. -JSP will allow for easy integration into an eventual Enterprise Java Beans architecture should company_name decide to scale operations with an application server. This is a major consideration. Excellent point. -JSP is widely supported across major web servers due to the popularity of Java. PHP, however is currently supported on Apache only: "The second, and most popular, method is to run PHP as a module in a multiprocess web server, which currently only includes Apache." -PHP FAQ 4.3 Actually, this isn't true. See http://uk.php.net/manual/install-windows95-nt.php If there's a need for scalable Enterprise-level systems, your first and third arguments speak for themselves. Also, if you ever need to integrate other technologies (ie wireless, XML, whatever), Java is the most flexible. And hey, there's no reason you can't use both. There are some things that might be overkill in Java which a simple PHP script can handle very easily, such as a contact-us form. Also, you might consider PHP as a good prototyping language. Just remember not to become too attached to the prototype ;-). And for whatever it's worth, check out babelj. http://www.twmacinta.com/software/babelj/ I've never actually used it, so I can't vouch for it, but it claims to integrate Java w PHP. === 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 Login
Well, you could use the old .htaccess standby and retrieve the remote_user environmental variable in the jsp. You might also look at http://www.esperanto.org.nz/jsp/jspfaq.html#q29 for alternative methods. - Original Message - From: "Mark Smith" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 09, 2000 8:17 AM Subject: JSP Login I am currently new to JSP and was wondering if any of you had any experience in using JSP to create secure log-on facilities. M. === 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: New To JSP
Look at the footer of any file sent to this list. - Original Message - From: "Sanjeev" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 09, 2000 9:55 AM Subject: New To JSP HI People, I am new to JSP. Is there some web-site with a lot of examples where I can start off from? I am working on WLS. Thanks Sanjeev === 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: CachedRowSet
Take a look at http://developer.java.sun.com/developer/earlyAccess/crs/index.html There are several examples in the download file, plus an online tutorial at http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html. Requires registration. - Original Message - From: "G Ramesh [Support]" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 25, 1998 6:44 AM Subject: CachedRowSet hi, Could any one, explain me with an example the use of CachedRowSet. regards, Ramesh === 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: update and re-compile the javabeans
As a JSP newbie myself, I've been dealing with this problem as well. Yeah, it would be nice to have the class reloaded after it is recompiled, but I think I read where it's not, and right now there's not a good solution. Let's hope they add it in the future. What I'm doing is using the class as a scriplet during testing, then compiling it and adding the bean tags when everything looks ok. If someone has a better solution, I would definitely be interested... - Original Message - From: "Xing Guohong" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 07, 2000 1:59 AM Subject: Re: update and re-compile the javabeans Thanks. I have deleted the java file in the package, after invoking the jsp file again, the web server create the java file in its tmpdir itself. Perhaps it comes form its pool and the one jsp file invokes in its pool too. So I stop the javawebserver service(dump its pool) and start it later. I invoke the jsp file, it gives me a error message that it can not find the beans, then I re-compile it, it gives me the expected result. I do not find the specification about it in the javawebserver documents. If because of the pool, I wish the server will provide an administrator tool to dump it or it has had one I can not find it. Thanks again. xgh - Original Message - From: Sachin S. Khanna To: [EMAIL PROTECTED] Sent: Wednesday, June 07, 2000 02:21 PM Subject: Re: update and re-compile the javabeans Try deleting the *class file then recompile the *.java file. It might just be able to solve your problem. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Xing Guohong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 07, 2000 8:16 AM Subject: update and re-compile the javabeans My http web server is javawebserver2.0. In my jsp file, I invoke the javabeans I wrote and it works. After updating and re-compiling the beans, I invoke the jsp page called the javabeans again, the javabeans gives me the old implementation result. Why? TIA. xgh. === 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: Where we can find tutorial for JAVASCRIPT in the web
Umm, JavaScript or JSP? - Original Message - From: "Nwalal Mi Nyom Martin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 07, 2000 8:54 AM Subject: Where we can find tutorial for JAVASCRIPT in the web Hi, Can someone telle me where I can find good tutorial for JavaScript tanks Martin __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.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: HTMLEncode in JSP
URLEncoder From Java Class Libraries, vol 1: import java.net.URLEncoder; class Main { public static void main(String[] rgs) { String u2 = URLEncoder.encode("Open Sesame"); System.out.println(u2); // "Open+Sesame" } } - Original Message - From: "david chan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 07, 2000 1:42 PM Subject: HTMLEncode in JSP Hi, Does any HTMLEncode function call in JSP or servlet that is similar to the function in ASP ? Thanks. David 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: Serious Bug in Sun's 1.3 JVM and HotSpot on NT
Should be up to number One very shortly. Dave Reid 403-530-5823 Network Systems Specialist Operations IntraNet " Your Web Solutions Partner " "I'm not really a WebMaster, but I play one on WebTV" http://webaka7.tsl.telus.com/opinet -Original Message- From: Scott Stirling [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 30, 2000 22:03 To: [EMAIL PROTECTED] Subject: Serious Bug in Sun's 1.3 JVM and HotSpot on NT Hi, I posted this same thing under an obscure heading (about JRun), but this problem affects users of any servlet container that runs as an NT service. You should log into the Java Developer Connection at Sun and vote to have it fixed (see the link below). Since last week we've already bumped it up from about 18th to 7th. The number one bug right now is "Clipboard.setContents not working for custom flavor." Come on, which would you rather see fixed? The 1.3 JVM with HotSpot could be a rocking engine for server-side Java, but this bug seriously hinders its use on NT. Please vote! Scott Stirling Allaire -Original Message- Date: May 26, 2000 06:05 AM Author: Dave ([EMAIL PROTECTED]) Hi folks, There is a bug in jdk1.3 (windows version) that prevents us from running JRun (and other java based server programs) as an NT service. At first it seems to work fine, but the jsm process is killed as soon as someone logs out from the desktop. It wont start up on a log in again. You need to reboot or start the service manually. This is a known and reported bug in the "Bug parade" at JDC. The problem is there with JRun, all service installers, rmiserver etc. Please log in at JDC and vote for this bug: http://developer.java.sun.com/developer/bugParade/bugs/4323062.html You might have to register, but it's free! Hopefully they will fix the bug if it gets enough votes and then we can use Windows NT as a java server environment again!? It works with jdk1.2.2 and others, but we want the speed of jdk1.3... /Dave === 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: Handling of multiple requests for JSP and JavaBeans
Roger Kjensrud wrote: Hello, I'm new to the JSP and JAVA world, and I'm trying to gain an = understanding of how different clients are handled, and potential = dangers of having several simultaneous requests. I get the concept of JSPs compiled into a servlet, and that they can = handle several simultaneous requests by spinning off separate threads. = My understanding so far is that everything that ends up in the service = method is local to the request, but class instances of variables and = methods are shared among all threads, right? Yes, class instances would be shared among all threads that are in the same VM. Now, with the inclusion of JavaBeans in the JSP you can set the scope to = session. This means that one instance of this JavaBean is dedicated to = the client for the session. Is this a full flegded java object with no = chance of conflicts between instances for different clients? Are there a = pool of the JavaBeans in the JSP engine/container? Yes, a bean you instantiate with session scope should never be seen by any other client except the one that originally caused it to be created. You pretty much have to trust your servlet engine to manage this correctly. ServletExec, for example, creates a random, 20-character session ID which uniquely identifies the client. The session ID is stored as a memory-resident cookie in the client. When you use the implicit "session" object in a JSP (or do req.getSession() in a servlet), the engine is responsible for giving you the proper session object. If I create another object from some Java class within the JavaBean, = will that cause any problems for me? Will there be any conflicts between = clients if I have class variables in this class? Will the JSP = engine/container instantiate an object for each request or will there be = some kind of pooling? There's no conflict as long as the new objects are instance variables and not class variables. If it's a class variable, then you would be sharing the object among all instances of the JavaBean. Not sure I understand the last part...the engine won't instantiate an object inside your bean - only your code will do that. But if your bean is session scope, then it will definitely not do it for each request. To really see what is going on, put a System.out.println() in each of your constructors. Hope that helps...Dave F. Thanks for any inputs, Roger Kjensrud === 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: question about sessions
Since all request are coming from the same browser instance (even if different windows), there is only one session as far as the servlet knows. There's no way around that. Of course, using two different browsers would keep the sessions distinct (i.e., user opens IE, then opens Netscape). The thing I would suggest is to store a flag or something in the session immediately after a user has logged in. Then send an error back on any request that tries to log in while this flag is true. That should prevent multiple concurrent users. Dave F. Venkat Kethababoyina wrote: I have a simple registration servlet that uses session object to store the registration objects until the operation is completed. I am running in to problems when a user does the following: a) opens two browser windows from the *same* machine and tries to register two users simultaneously. Since our registration involves multiple pages, the user can finsh the first page of one account and then start the second page of the second and so on.. Essentially, the operations are interspersed. b) Now,if I use the session object to store registration info I am getting one user's data in place of another's. It looks like I am getting the same session object when I'm asking for request.getSession(). I would like to know if we get different sessions or same session in this scenario. If it is same session, is there a way to keep track of different user's data in the same session? Thanks for your suggestions. Venkat __ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.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