JSP Support by commercial application servers
In, I believe, a recent PC Week article, there was an interesting chart showing J2EE support by various application servers. Unfortunately the chart wasn't specific about JSP versions being supported so I thought I'd try to track down some answers. What follows is a partial list that I hope others can help flesh out and that we can add to the JSP FAQ: App Server JSP Support -- --- BEA Weblogic 4.0None BEA Weblogic 4.5 (ex 4.1) 1.0 Sapphire/Web 6.0None Sapphire/Web 6.11.0 GemStone/J 3.0 ??? HahtSite 4.0None IBM WebSphere 1.0 0.91 IBM WebSphere 2.02 0.91 IBM WebSphere 3.0 (future) 1.0 0.91 Inprise Application Server 3rd Party Support Netscape Application Server 2.1 0.92 Novera jBusiness 4.0??? Oracle Application Server 4.08 None Persistence PowerTier for EJB ??? Progress Apptivity 3.0 None or via 3rd Party SilverStream 2.5??? Sun NetDynamics 5.0 None Sybase Enterprise App Server 3.0??? Please feel free to add to or correct the above. I think this information will nicely compliment what is already in the FAQ. Dan P.S. It was good to meet some of you last week at JavaOne. May the momentum continue... -- Daniel Kirkdorffer NACN IS: 425-580-6225 Sr. Consultant, Syllogistics LLC Email: [EMAIL PROTECTED] Web: http://www.syllogistics.com/ === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Element inside element
I would like to know if it's possible to nest a Jsp element inside another Jsp element. For example, I would like to use the jsp:include page="" / but the value of the page attribute is not known at compile time and should be retrieved at run time using % session.getValue() %. Is it possible to do this (and if so, how??) or I'm asking too much to Jsp? Any thoughts would be appreciated (and sorry for my bad english). Matteo I'm pretty sure that nesting is prohibited in JSP. David === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Element inside element
You can use runtime attributes for jsp:include: jsp:include page="%= session.getValue('foo') %"/ Scott Ferguson Caucho Techology David Wall wrote: I would like to know if it's possible to nest a Jsp element inside another Jsp element. For example, I would like to use the jsp:include page="" / but the value of the page attribute is not known at compile time and should be retrieved at run time using % session.getValue() %. Is it possible to do this (and if so, how??) or I'm asking too much to Jsp? Any thoughts would be appreciated (and sorry for my bad english). Matteo I'm pretty sure that nesting is prohibited in JSP. David === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Beans!!
You need to either use a server that supports bean reloading, or restart the server after each recompilation (tedious, reminds one of ASP + COM object development ;). We support bean reloading in Orion because we think it speeds up development tremendously, the reference implementation "shouldnt" (not protesting if it did, but it's not it's duty) in the sense that it's a barebone implementation of the spec (ie a reference). Give it a try if you wish since it's free for development non-commercial production use... PS. For those of you interested in clustering of session/ServletContext state data we are releasing a clustering-enabled distro in a day or two, mail us if you're interested in being a beta-tester. Have a nice day :) /Magnus Stenman, Evermind Orion WebServer - http://orion.evermind.net - Original Message - From: Paul Sterk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 22, 1999 10:47 PM Subject: Beans!! Hi, I have recently started working with JSP, and am having the following problem. I am using the following tags: jsp:decl String[] productgroups; /jsp:decl jsp:useBean id="pg" scope="request" class="pesweb.beans.ProductGroupBean" / % productgroups = pg.getProductGroup(); % After editing and compiling a new version ProductGroupBean.java and reloading the .jsp page, the values from the original version of the ProductGroupBean still appear on the page. It's as if the original version of ProductGroupBean.class is still cached in memory. I have cleared the browser's (Netscape 4.51) disk and memory caches and have started new browser instances. Still, the values from the original bean are being displayed. Any advice would be much appreciated. Thanks in advance, Paul === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Q: set bean param from OPTION list
With a HTML SELECT list, what is the easiest way to collect the OPTION values with a jsp:useBean? For example: SELECT NAME="foo" OPTION VALUE="1" First option OPTION VALUE="2" Second OPTION VALUE="3" Last /SELECT ...I select all three options and submit to a JSP which has the following: jsp:useBean id="foobean" class="whatever" / jsp:setParameter name="foobean" property="*" / If my fooBean has a method... public void setFoo(String value); ... it will receive the string "1,2,3". That's sort of OK, but it's a bit dull having to parse out the values (and what if my OPTIONs have commas in the values?) So...Is there some easier way to collect OPTION values with a bean? Cheers Richard __ Get Your Private, Free Email at http://www.hotmail.com === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: forwarding to other JSP pages
Paul, Hello all! We're using JSP1.0 under JWS2.0beta2. We've been trying to get "page forwarding" working. Specifically, to get one JSP page to simply forward over to another JSP page without doing a round-trip to the client browser. The simplest JSP file I've come up with for this is a 2-liner that says: %@ page language="java" % jsp:request forward="http://hostname/.../other.jsp" / When I hit the page, after the "recompile delay" I get: Error during JSP page parsing Unknown exception: java.lang.IllegalStateException: Can not forward to servlet jspServlet : OutputStream or writer has been obtained ...At first, I thought this was because of the stuff above the redirect being sent as HTML, but I've eliminated almost everything! So, What am I missing? I ran into the same problem, and believe there is a bug in the way JWS generates the servlet from the JSP. If you take a look at the code generated from: test.jsp jsp:request forward="/mod1.jsp" / in $JWS/tmpdir/default/pagecompile/jsp/_test.java, you'll see something like the following: package pagecompile.jsp; import javax.servlet.*; import javax.servlet.http.*; ... public class _test extends HttpJspBase { public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { HttpSession session = null; ServletContext application; ServletConfig config; JspWriter out = null; String _value = null; try { application = getServletConfig().getServletContext(); config = getServletConfig(); session = request.getSession(true); out = new JspWriter(response.getWriter(), 8192); response.setContentType("text/html"); out.write(""); application.getRequestDispatcher("/mod1.jsp").forward(request, response); out.write("\r\n"); } catch (Throwable t) { throw new JspException("Unknown exception: "+t); } finally { } out.flush(); As you can see, a JspWriter is created, and the empty string is output before it forwards the request. Since the servlet API spec says you can't do that, I don't see how this can work. Maybe there is some option for suppressing the JspWriter creation? Thanks in advance for your guidance! -Paul Reiber -- Bill -- Bill O'Keefe [EMAIL PROTECTED] Open Market, Inc.http://www.openmarket.com/ One Wayside Road TEL: 781.359.7296 Burlington, MA 01803 FAX: 781.359.8200 === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: only one independent multi-platform servlet/jsp engine vendor left ?
My recollection from the JavaOne Netscape JSP BOF is that the next version of NetScape Server will support version .92 of JSP. --- Richard Mazzaferri [EMAIL PROTECTED] wrote: My concern is that Allaire may decide to bundle servlet/jsp with their products, much like what other application server vendors do. If you only want serlvet/jsp engine for IIS and Netscape, then SE may become the only choice. (Of course, it would be a different story if MS/NS decide to support servlet/jsp right out of the box.) Allaire have - at least for now - publicly committed to continuing to sell JRun as a standalone product, as well as integrating with ColdFusion etc. At JavaOne, representatives from Netscape reported that the next release of Netscape Enterprise Server will support JSP servlets directly. It's due out in August or thereabouts, based on my personal (and occasionally faulty) recollection. Cheers, Richard. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Calling JSP from Servlet
I know this is stupid, but I'm going to ask anyway. Do I have to have the com.sun.server classes in order to call JSP's from a Servlet? I want to have the complete separation of business logic from presentation and in order to do this right I need to use Servlets to handle some requests and JSP's to handle the presentation. Eric Mickelson[EMAIL PROTECTED]
Re: Errors
Thanks Tim, This was exactly what was needed. ... copied tools.jar into JSP1.0, and added it to the two class strings found in the batch file. Mike, -Original Message- From: Tim Briggs [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 26, 1999 7:26 AM To: 'Michael Fuhrman' Subject: RE: Errors I thought you needed to include the jdk1.2.1\lib\tools.jar to get the Main.class in the StartServer.bat file CLASSPATH declaration. Hope that helps Timothy timothy briggs wrox press - programmer to programmer (tm) [EMAIL PROTECTED] http://www.wrox.com -Original Message- From: Michael Fuhrman [SMTP:[EMAIL PROTECTED]] Sent: 25 June 1999 22:25 To: [EMAIL PROTECTED] Subject: Errors Hello, Again, Found that error I was having. I wasn't paying attention, the Servlets were working. Not the Java Server Pages. Suggestions would be welcome. Michael J. Fuhrman Reliable Business Computers http://www.creliable.com/ Unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: sun/tools/javac/Main at com.sun.jsp.compiler.Main.compile(Main.java:194) at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServle t. java:69) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:7 7) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code) at com.sun.web.core.Context.handleRequest(Compiled Code) at com.sun.web.server.ConnectionHandler.run(Compiled Code) == = To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
copilation failed error
I'm just testing jsp with this little test: html page (thib.jsp) * jsp:useBean id=th class=thib.thib scope=session/ jsp:setProperty name=th property=*/ html body bgcolor=white %= th.getCount(); % /body /html *** java code (thib.java) *** package thib; class thib { public thib() { } public static void main(String args[]) { new thib(); } public int getCount() { return 125; } } * But when i try to see this page i've the following error: com.sun.JspException: Compilation failed at com.sun.jsp.compiler.Main.Compile(Main.java;248) ... The jsp examples works fine. So if you have any idea of what's wrong... let me know please. * Thibaut Colar JET Software, Inc. [EMAIL PROTECTED] http://www.jetsoftware.com The Leader in Tools for Online Demonstrations and Training *
Re: copilation failed error
Is the java code correct? Should it be 'public class thib' ? Kevin -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thibaut ColarSent: 28 June 1999 14:17To: [EMAIL PROTECTED]Subject: copilation failed errorI'm just testing jsp with this little test: html page (thib.jsp) *jsp:useBean id="th" class="thib.thib" scope="session"/jsp:setProperty name="th" property="*"/htmlbody bgcolor="white"%= th.getCount(); %/body/html*** java code (thib.java) ***package thib;class thib{public thib(){}public static void main(String args[]){new thib();}public int getCount(){return 125;}}*But when i try to see this page i've the following error:com.sun.JspException: Compilation failed atcom.sun.jsp.compiler.Main.Compile(Main.java;248) ...The jsp examples works fine.So if you have any idea of what's wrong... let me know please.*Thibaut ColarJET Software, Inc.[EMAIL PROTECTED]http://www.jetsoftware.comThe Leader in Tools for Online Demonstrations and Training*
No Subject
http://www.ibazar.com/index.cgi?cbosquet === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: JRUN build 151 Serious Error with IIS 4.0
You are missing the point. The point is that the following fails on JRUN build 151 (JSP 1.0) using IIS 4.0: "http://localhost/loc/somejsp.jsp?foo=bar" --- Kevin Jones [EMAIL PROTECTED] wrote: Hmm - if I use fully qualified names I don't get this problem so http://localhost/loc/somejsp.jsp is fine but just somejsp.jsp fails, I get odd results for "POST" as well if I don't supply a full URL _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Vendor Support for JSP/Servlet and EJB
Chad, Thanks for that. I couldn't find the article online although I knew it had to be there. Again my apologies the mailing list received so many duplicate postings. Dan -- From: Chad Darby[SMTP:[EMAIL PROTECTED]] Reply To: Chad Darby Sent: Sunday, June 27, 1999 2:04 PM To: [EMAIL PROTECTED] Subject: Vendor Support for JSP/Servlet and EJB Hi All, This is a followup to Dan Kirkdorffer's post regarding J2EE support by app server vendors. Below you will find the links for the PC Week article. The chart that outlines JSP/Servlet and EJB support on application servers http://www.zdnet.com/pcweek/stories/news/0,4153,2275579,00.html You can also read the complete article at: "Industrial Strength Java" http://www.zdnet.com/pcweek/stories/news/0,4153,406807,00.html Enjoy! -- --- Chad (shod) Darby|J9 Consulting, Inc. [EMAIL PROTECTED] |http://www.j-nine.com --- == = To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Errors
Hi Dan, Actually, I was trying to figure out what the stack trace was trying to tell me. Thanks for that tid bit. And, actually I was including \java\lib in the class path, but for some strange reason the demo doesn't like it! ... But for the interim, I copied the tools.jar file to the subdirectory where the demo is running, and included it's name in the class path for the batch files there. Everything seemed to work fine after that. Michael J. Fuhrman Reliable Business Computers http://www.creliable.com/ -Original Message- From: Daniel Lopez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 28, 1999 8:24 AM To: Michael Fuhrman; JSP Interest List Subject: Re: Errors Hi Michael, Java Server Pages engine do compile the pages and create the .class files, so I bet you are using JDK 1.2 but you haven't included the tools.jar file in your classapth. If you read the stack trace, you'll see that it's not finding the "javac tool" ;). I hope this helps, Dan --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Object Systems Design Engineer Computer Center Balearic Islands University --- Michael Fuhrman wrote: Hello, Again, Found that error I was having. I wasn't paying attention, the Servlets were working. Not the Java Server Pages. Suggestions would be welcome. Michael J. Fuhrman Reliable Business Computers http://www.creliable.com/ Unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: sun/tools/javac/Main at com.sun.jsp.compiler.Main.compile(Main.java:194) at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet. java:69) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code) at com.sun.web.core.Context.handleRequest(Compiled Code) at com.sun.web.server.ConnectionHandler.run(Compiled Code) === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Errors
Hi Michael, Java Server Pages engine do compile the pages and create the .class files, so I bet you are using JDK 1.2 but you haven't included the tools.jar file in your classapth. If you read the stack trace, you'll see that it's not finding the "javac tool" ;). I hope this helps, Dan --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Object Systems Design Engineer Computer Center Balearic Islands University --- Michael Fuhrman wrote: Hello, Again, Found that error I was having. I wasn't paying attention, the Servlets were working. Not the Java Server Pages. Suggestions would be welcome. Michael J. Fuhrman Reliable Business Computers http://www.creliable.com/ Unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: sun/tools/javac/Main at com.sun.jsp.compiler.Main.compile(Main.java:194) at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet. java:69) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code) at com.sun.web.core.Context.handleRequest(Compiled Code) at com.sun.web.server.ConnectionHandler.run(Compiled Code) === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Use input type=radio
You need to use something like td align=centerINPUT TYPE=radio NAME=row VALUE=%= customerList.getValueAt(r,0) %/td in your JSP, and then pick it up in your servlet with code like: String row = req.getParameter(row); Miro [Lelievre Frederic] To: [EMAIL PROTECTED] flelievre.cs@CLEARScc: TREAM.COM Subject: Use input type=radio Sent by: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] un.com 04/17/2001 06:24 AM Please respond to A mailing list about Java Server Pages specification and reference Hi every body, when I use input type=radio in my JSP, I have an error. How can I use this with the JSP and the Bean ? Please Help. Thank. Frédéric LELIEVRE TTE - (BA / F04 C024) * +352-44992--2485 * [EMAIL PROTECTED] Visit us at http://www.clearstream.com Check out current job vacancies at http://www.clearstream.com/public/english/e_vacs.htm IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER === 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
srfew
xfds === 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