Re: jsp on IIS ?
SURE JSP WILL RUN ON IIS PROVIDED WEBSPHERE IS EMBEDDED IN IT REGARDS SARAVANA KUMAR -- From: friendly man[SMTP:[EMAIL PROTECTED]] Reply To: friendly man Sent: Tuesday, September 28, 1999 12:38 PM To: [EMAIL PROTECTED] Subject: jsp on IIS ? Hi all, Will JSP work with IIS. If so let please let me know the configuration that has to be down with the IIS. Please help me out. Regards, Michael Get free email and a permanent address at http://www.netaddress.com/?N=1 == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
JSP FAQ Resource Information
This is a weekly informative posting to the jsp-interest list. Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer. The best place to start is our web site: http://java.sun.com/products/jsp This contains pointers to the specification, and to the JavaServer Web Development Kit (JSWDK). Some FAQs that may help you http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html JSWDK is the reference implementation for the latest JSP and Servlet specs. You can download JSWDK at http://java.sun.com/products/jsp/download.html. Please send your feedback and bug reports on JSWDK to [EMAIL PROTECTED] A few notes about the use of this list. We at Sun enjoy hosting this list to give everyone a forum to discuss JSP, servlets and related technology. There are a few things that we ask of you, the list members: Please don't engage in advertising. We like to hear when new products are announced and a link for all the information. What we don't like are lengthy press releases, advertisements, and other material which falls under the umbrella term "marketing". There is no problem in stating how your product compares to another, but remember, this isn't run by Sun to be an advertising forum -- but as a technical forum. Please don't post attachments to the list. The use of VCards and S/MIME is not really needed on a list like this and is annoying to some whose readers don't support them. More serious is the posting of .zip files and other larger items. You might get flamed a little bit for S/MIME or posting in HTML. You will be removed from the list for posting a .zip or other archive file. If you need technical support from a vendor, please contact that vendor directly. Now, back to regularly scheduled programming. Anil Vijendran for the JSP/JSWDK team === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: invoking servlet inside JSP
Wong Mary wrote: But the JSP 1.1 spec seems to indicate that the jsp:include page="urlSpec".../ element requires "urlSpec" be a .html or a .jsp file. A .class file for a servlet that is not page-compiled from a JSP would be invalid in the jsp:include tag. Is there an appropriate syntax for the jsp:include... to do the job that I'm missing? -Mary The same syntax works for servlets, JSP pages, and HTML pages. The secret is in how the URL you specify is interpreted. What you want to do is map your servlet to a particular URL pattern (see the Servlet API 2.2 specification for more details on the options). In general, you can define a servlet to match a particular URL (relative to the context path) like this: /catalog or you can say that all URLs that have a particular filename extension match a specific servlet. That is actually how JSP pages get handled -- everything that ends with ".jsp" is handed to the JSP servlet for processing. How you define the mapping from URLs to servlets is currently specific to each servlet engine, but is standardized in the 2.2 servlet spec. In the mean time, you can practice with the JSWDK 1.0 servlet engine by using the WEB-INF/mapping.properties file to establish these mappings. Craig McClanahan On Wed, 29 Sep 1999 17:32:35 -0700, Craig R. McClanahan [EMAIL PROTECTED] wrote: Mary Wong wrote: Is there support for invocation of the service() of a regular (ie. non-JSP-compiled) servlet inside a JSP page without explicitly calling that service() in the JSP? I am thinking of a feature similiar to the droplet bean=... tag used in ATG Dynamo. I'm not familiar with Dynamo, but check out the jsp:include element -- it can be used to include the output from a servlet (or a JSP page) in the output of the page containing this element, without ever having to acquire a reference to the servlet or call it's service() method yourself. Thanks in advance, -Mary Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
request-object is empty when using enctype=multipart/form-data
I have the following problem when uploading files with input type=file...: To ensure that the upload works properly, I have to include the enctype="multipart/form-data" entry in the form tag. But if I do this, the request object contains no data. Any ideas ?!?! Thanks Daniel === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSP Compilation Into Servlet Source
Does anybody know if the same holds true for JHTML on weblogic? "Craig R. McClanahan" wrote: Neeraj Vora wrote: Hello, Is there any way to take a JSP page and compile it into a Java source file that I could then use for compilation as I do for any servlet? I tried looking in the work directory of JSWDK 1.0, but it only has the class file for the generated servlet, not the source. Thanks! Neeraj For JSWDK 1.0, you can set an initialization parameter for the JSP servlet in your WEB-INF/servlets.properties file like this: jsp.initparams=keepgenerated=true to have the source code file saved as well. NOTE: You won't be able to compile this yourself without including references to the appropriate JSWDK jar files in your classpath, because the imports will refer to classes in these files. However, it is quite instructive to see what code the JSP servlet generates for your pages. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSWDK page compilation error on jsp:include
I can't find this in JSP SPEC 1.0 May 28, 1999 page 64! Nonetheless, what is the impact of a flush="true" ? Does that mean that I will ne longer be able to change the HTTP header (for example sending a redirect ?) in my servlet? (see the example below) -Original Message- From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: jeudi 30 septembre 1999 02:19 Subject: Re: JSWDK page compilation error on jsp:include Cédric Janssens wrote: jsp:include page="/servlet/org.planetfinance.login.RegisterServlet" / As of the JSWDK 1.0 final release (which conforms to JSP 1.0), the flush attribute is mandatory. Shame on me (among others) for not including it in my examples in previous answers -- I haven't retrained my fingers to that habit yet. Try: jsp:include page="/servlet/org.planetfinance.login.RegisterServlet" flush="true" / Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSWDK page compilation error on jsp:include
I am still trying to make this JSWDK compilation works... and I need one more help I changed every jsp:include page="..." / to jsp:include page="..." flush="true"/ (By the way I am very despised that we can't put a flush="false" ...) An now, I have several of my pages compilation leading to a java.lang.NullPointerException with no indication where the error may be in the page, see below the command line result and the fr\login\generalpost.jsp page enclosed. java -classpath ../../../jswdk/lib/servlet.jar;../../../jswdk/lib/jspengine.jar;../../../jsw dk/lib/xml.jar;../../../jdk/ lib/classes.zip;../../../jsdk/servlet.jar;../../../jndi/lib/jndi.jar;../../. ./jndi/lib/ldap.jar;../../../jndi/lib/provid erutil.jar;../../../jdbc/lib/classes111.zip;../lib com.sun.jsp.compiler.Main -keepgenerated fr\login\generalpost.jsp java.lang.NullPointerException at com.sun.jsp.compiler.BeanRepository.ClassFound(BeanRepository.java:127) at com.sun.jsp.compiler.BeanGenerator.checkSyntax(BeanGenerator.java:101) at com.sun.jsp.compiler.BeanGenerator.generate(BeanGenerator.java:51) at com.sun.jsp.compiler.Jsp1_0ParseEventListener$GeneratorWrapper.generate(Comp iled Code) at com.sun.jsp.compiler.Jsp1_0ParseEventListener.generateAll(Compiled Code) at com.sun.jsp.compiler.Jsp1_0ParseEventListener.generateHeader(Compiled Code) at com.sun.jsp.compiler.Jsp1_0ParseEventListener.endPageProcessing(Jsp1_0ParseE ventListener.java:112) at com.sun.jsp.compiler.Main.compile(Main.java:260) at com.sun.jsp.compiler.Main.main(Compiled Code) Note that Jrun has no problem compiling and executing this page. Thanks for your help -Original Message- From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: jeudi 30 septembre 1999 02:19 Subject: Re: JSWDK page compilation error on jsp:include Cédric Janssens wrote: jsp:include page="/servlet/org.planetfinance.login.RegisterServlet" / As of the JSWDK 1.0 final release (which conforms to JSP 1.0), the flush attribute is mandatory. Shame on me (among others) for not including it in my examples in previous answers -- I haven't retrained my fingers to that habit yet. Try: jsp:include page="/servlet/org.planetfinance.login.RegisterServlet" flush="true" / Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html generalpost.jsp
Re: request-object is empty when using enctype=multipart/form-data
Hi Daniel After specifying the enctype to be multipart/form data any check box data etc that you POST needs to be explicitly retrieved inside a conditional loop or switch where the input type is multipart/form data. Inside this conditional block you then need to do your request.getParameter() for each type of multipart/form-data parameter type . Here are the types of data that you will be uploading: TEXT | PASSWORD | CHECKBOX |RADIO | SUBMIT | RESET | IMAGE | HIDDEN | FILE )See RFC 1867 . So you will explicitly need to do a request for each type. Here is an article that you may be interested in http://www.servletcentral.com/1999-01/parser.dchtml . And RFC 1867 below. If you would like an example and a further description I will mail you code with an explination tomorrow. http://www.servletcentral.com/1999-01/parser/rfc1867.txt Paul Fitzgerald Telecommunications Researcher Broadcom Eireann Research Kestrel House Clanwilliam Court Dublin 2 Ireland Daniel Kreutzer wrote: I have the following problem when uploading files with input type=file...: To ensure that the upload works properly, I have to include the enctype="multipart/form-data" entry in the form tag. But if I do this, the request object contains no data. Any ideas ?!?! Thanks Daniel === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Can JSP support multimedia product presentation?
June Low wrote: hi,I'm not sure that whether JSP support multimedia product presentation? Like playing sound, avi files etc.If yes, how to do it? It can do anything you can do in HTML. cc === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: IE5 and cache
META HTTP-EQUIV="Expires" CONTENT="0" hardcoded into the page works for IE5. your page will not be cached. -sjm === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Can JSP support multimedia product presentation?
Hello everybody, Is any one using Netscape Application Builder 4.0 Thanks in advance Padmaja -Original Message- From: Christopher Cobb [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 30, 1999 7:38 AM To: [EMAIL PROTECTED] Subject: Re: Can JSP support multimedia product presentation? June Low wrote: hi,I'm not sure that whether JSP support multimedia product presentation? Like playing sound, avi files etc.If yes, how to do it? It can do anything you can do in HTML. cc === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Who's reponsible for flushing the stream?
Stepan Schejbal wrote: The URI - tag library relationship has not been defined in JSP 1.1!!! SJSP does not violence specification. Stepan See section 5.1.4 of the Public Release. Under the heading "Tag Library directive" it says: "A collection of tags is delivered as a TagLibrary. A tag library is uniquely identified by its URI. The URI should refer to a JAR file containing a valid instance of a Tag Library Descriptor (taglib.tld) file in the META-INF subdirectory, along with the appropriate implementing classes, and other resources required to implement the tags defined therein." That's not how SJSP works so SJSP is in error. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: sessions !!!
For your second problem, use a Session Object. Create a Sessoin Object in your Login Screen. In your second screen, look whether this Session Object exists. If this does not exist, then redirect the user to the Login Page. Cheers, Amar.. Vaibhav Bhanot [EMAIL PROTECTED] on 09/29/99 10:53:35 PM Please respond to Vaibhav Bhanot [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Amarnath Nanduri/IT/VANCPOWER) Subject: sessions !!! can anybody solve my problem...one is i want that a particular frame should always be attached to the html whenever output goes to the browser in html form to the user.if it can be done and if yes then how ..if somebody can send me some code for help..or tell me where i can find some code!!! second i am designing my application using servlets..i want that the first screen should be a login screen and and if some one tries to directly move to the next screen by typing the url of the next screen in the browser then he should come to the login screen coz he has not entered the login yetif this can be implemented if yes then can i get some code from anyone. thanks in advance !!! vaibhav === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSP-INTEREST Digest - 28 Sep 1999 to 29 Sep 1999 (#1999-267)
re: XML/JSP/XSL (/DOM-based transformations) Yes. We definetively want to be able to do these things very naturally in the next version of the JSP spec. Some can already be done now but we want a very natural fit. And we will build on/synergize with existing appropriate standards rather than inventing a "parallel universe". The challenge is finding the right combination of all these things. re: Better I18N/L10N There is already some but yes we want to do better. We had an internal design for Servlet 2.2 but it was not cooked enough and we decided to postpone it for the next release. Please send us feedback at [EMAIL PROTECTED]; we read it all and manage to respond to most. I am personally interested in sketches of specific examples to ground the design efforts. - eduard/o Date:Wed, 29 Sep 1999 12:05:11 -0700 From:Olivier Brand [EMAIL PROTECTED] Subject: XML, XSL and JSP I have been working with these 3 technologies (XML and XSL first) and I have some points I would like to share with you. I would like JSP to take advantage of XSL and XML to separate the presentation layer from the data. So all the java object will be in the XML document and the HTML in the XSL document. The JSP engine will merge both to output HTML or whatever to the server. A JSP engine should also deal more with internationalization by providing a "bundle" mechanism in the Dispatcher. More sites are beeing translated into multiple language, and JSP should forward to the right JSP, Servlet without having to add complex code in the JSP/Servlet files. I know that JSP is defining all its tag into XML, but the concept of putting everything in the same file couldn't be used in a real multi style/language environment and is 100% different of what the XML consortium is doing. The style, at the HTML level, should be modified once, the content being dynamic should be into a separate file. It would be great to have some feedback on this issue and see if you might want these features inside a JSP engine. Thanks Olivier === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Can JSP support multimedia product presentation?
"Kallur, Padmaja (GEL, MSX)" wrote: Hello everybody, Is any one using Netscape Application Builder 4.0 Well, I'm the project lead (at least for the next couple of weeks). I'd be happy to answer any questions. Conversely, I'd be happy to hold my tongue whilst you complain about non-standard tags and non-standard, DTC-related attributes :) :) -Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: IE5 and cache
Thank you all for your suggestions. We have tried many of them. (More we will try soon. I see more rolling in.) We made a quick client browser app and looked at what exactly Microsoft's Server sends (using the VB code below) and what JSWDK sends (using other means suggested by people on the list). %@ Language=VBScript % % ' The following line is the important part: Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" % The weird part is that the IE5 browser seems to act different with real similar code. It almost seems like the Browser acts depending on which server is serving the pages. Are we missing something? michael -Original Message- From: x [edited] It seems, IE 5.0 only honors non-caching of pages by Microsoft's Information Web Server! I have written a small client program that makes a connection to any http server and prints out the header fields in the response sent by the server. Microsoft's Information server served the following header for page that was not cached. Our Web Server served a similar page, and identical header (except for server and cookie values) and that page was cached! Figure this one out! Starting application MAF: clipped off the rest of this line today's date is: Wed, 29 Sep 1999 20:40:13 GMT Microsoft's Information server returned this: Server Microsoft-IIS/4.0 Date Wed, 29 Sep 1999 20:40:14 GMT Pragma no-cache Content-Type text/html Set-Cookie ASPSESSIONIDGGOP=EHBPINBBLNIBJDFECCLJEDNN; path=/ Cache-control no-cache Our JavaServer returned this: Date Wed, 29 Sep 1999 20:35:56 GMT Server JavaServer Web Dev Kit/1.0 EA with JSP/1.0 and Servlet/2.1 Content-Type text/html Set-Cookie2 SESSIONID=To1013mC528765865192846At;Version=1;Discard;Path="/" Set-Cookie SESSIONID=To1013mC528765865192846At;Path=/ Servlet-Engine JavaServer Web Dev Kit/1.0 EA (JSP 1.0; Servlet 2.1; Java 1.1.8; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.) Pragma no-cache Cache-control no-cache Interactive Session Ended Thanks, Zoran Ivankovich File: Zoran Ivankovich (E-mail).vcf === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSP Compilation Into Servlet Source
YES - Original Message - From: Paul Fitzgerald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 30, 1999 2:31 AM Subject: Re: JSP Compilation Into Servlet Source Does anybody know if the same holds true for JHTML on weblogic? "Craig R. McClanahan" wrote: Neeraj Vora wrote: Hello, Is there any way to take a JSP page and compile it into a Java source file that I could then use for compilation as I do for any servlet? I tried looking in the work directory of JSWDK 1.0, but it only has the class file for the generated servlet, not the source. Thanks! Neeraj For JSWDK 1.0, you can set an initialization parameter for the JSP servlet in your WEB-INF/servlets.properties file like this: jsp.initparams=keepgenerated=true to have the source code file saved as well. NOTE: You won't be able to compile this yourself without including references to the appropriate JSWDK jar files in your classpath, because the imports will refer to classes in these files. However, it is quite instructive to see what code the JSP servlet generates for your pages. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Solid Server
Is anyone running JSP with Solid Server? If so, how? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: IE5 and cache
Don't forget to try all these headers for each possible choice that IE5 gives the end user from "Tools", "Options", [General] - [Temporary Internet Files] - [Settings]. It's no good thinking that you've solved your cache problems, only to discover that the end user has chosen "Never" [check for a more recent version] ! It can be very annoying..! -Chris Brown Webnet -Message d'origine- De: Finney, Michael [SMTP:[EMAIL PROTECTED]] Date: jeudi 30 septembre 1999 16:23 À: [EMAIL PROTECTED] Objet: Re: IE5 and cache Thank you all for your suggestions. We have tried many of them. (More we will try soon. I see more rolling in.) We made a quick client browser app and looked at what exactly Microsoft's Server sends (using the VB code below) and what JSWDK sends (using other means suggested by people on the list). %@ Language=VBScript % % ' The following line is the important part: Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" % The weird part is that the IE5 browser seems to act different with real similar code. It almost seems like the Browser acts depending on which server is serving the pages. Are we missing something? michael -Original Message- From: x [edited] It seems, IE 5.0 only honors non-caching of pages by Microsoft's Information Web Server! I have written a small client program that makes a connection to any http server and prints out the header fields in the response sent by the server. Microsoft's Information server served the following header for page that was not cached. Our Web Server served a similar page, and identical header (except for server and cookie values) and that page was cached! Figure this one out! Starting application MAF: clipped off the rest of this line today's date is: Wed, 29 Sep 1999 20:40:13 GMT Microsoft's Information server returned this: Server Microsoft-IIS/4.0 Date Wed, 29 Sep 1999 20:40:14 GMT Pragma no-cache Content-Type text/html Set-Cookie ASPSESSIONIDGGOP=EHBPINBBLNIBJDFECCLJEDNN; path=/ Cache-control no-cache Our JavaServer returned this: Date Wed, 29 Sep 1999 20:35:56 GMT Server JavaServer Web Dev Kit/1.0 EA with JSP/1.0 and Servlet/2.1 Content-Type text/html Set-Cookie2 SESSIONID=To1013mC528765865192846At;Version=1;Discard;Path="/" Set-Cookie SESSIONID=To1013mC528765865192846At;Path=/ Servlet-Engine JavaServer Web Dev Kit/1.0 EA (JSP 1.0; Servlet 2.1; Java 1.1.8; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.) Pragma no-cache Cache-control no-cache Interactive Session Ended Thanks, Zoran Ivankovich File: Zoran Ivankovich (E-mail).vcf === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INT EREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
an error returned initializing protocol wrapper
I'm using Apache 1.3.6 and JServ 1.0. I installed JServ successfuly, but have some problem in starting it up. The JDK I use is BlackDown 1.1.7. JSDK 2.0. The error is as follows: in apache error_log file:[Thu Sep 30 18:56:05 1999] [crit] (2)No such file or directory: Apache JServ encountered a fatal error; check your ApJServLogFile for details if none are present in this file. Exiting. in mod_jserv.log:[30/09/1999 18:56:05:659] (ERROR) an error returned initializing protocol wrapper[30/09/1999 18:56:05:677] (ERROR) in init all protocols wrapper returned an error[30/09/1999 18:56:05:677] (EMERGENCY) Error initializing protocols the following is the configuration of my jserv.properties: wrapper.bin=/usr/jdk117_v3/bin/java wrapper.class=org.apache.jserv.JServ wrapper.classpath=/usr/jdk117_v3/lib/classes.zipwrapper.classpath=/usr/JSDK2.0/lib/jsdk.jarwrapper.classpath=/usr/jserv/lib/ApacheJServ.jar Can any body help me? the wrapper.bin points to a link instead of a concrete file. Does this matter? Thank you very much!
FW: Simple JSP question
That's strange! I am running JRun 2.3.3 JSP 1.0 - (.jsp10 files). I have following method in my Bean. public voidsetCustomerName (String custname) and I am using following line in my Jsp to set it. It works!. jsp:setProperty name="crsBean" property="CustomerName"/ After reading the following email, I tried changing it to lowercase, as in - jsp:setProperty name="crsBean" property="customerName"/ It does not work anymore. Does JRun behave differently ? - Rajesh -Original Message- From: Carsten Heyl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 29, 1999 7:25 PM To: [EMAIL PROTECTED] Subject: Re: Simple JSP question Should a JSP 1.0 server have trouble with the following .jsp file or am I Yep. missing something: %@ page import="HelloWorldBean" % HTML HEAD TITLEHello, World! JSP/TITLE /HEAD BODY jsp:useBean id="helloWorldBean" class="HelloWorldBean" / H1 jsp:getProperty name="helloWorldBean" propertyName="Msg" / jsp:getProperty name="helloWorldBean" propertyName="msg" / /H1 H2 jsp:setProperty name="helloWorldBean" propertyName="Msg" value="Next Message" / jsp:setProperty name="helloWorldBean" propertyName="msg" value="Next Message" / jsp:getProperty name="helloWorldBean" propertyName="Msg" / jsp:getProperty name="helloWorldBean" propertyName="msg" / /H2 /BODY /HTML The HelloWorldBean.java file contains: public class HelloWorldBean { private String msg = "Hello, World!"; public String getMsg () { return msg; } public void setMsg (String m) { if (m != null) msg = m; } } thanks, richard -+- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" . FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html Ciao, Carsten === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Database Connections
Yes I had the same problem. To go around this specific one, since my store procedure takes some time to execute, I create a "fresh" connection for it only and close on the return. Also, on my case the user doesn't need to know the result, so I out.close() before I call the store procedure. I think it is not caused by the "dbconnection", but the jdbc driver. (i am guessing you are using oracle ?). For the oracle jdbc (in particular), it is very important to close resultset and statement (on this case CallableStatement). My guess is that on some cases, the store procedure is openning something and not closing properly. I also found out that the first store procedure call works fine, but any other call using the same connection won't work. Rodrigo "Daniel Vontobel [EMAIL PROTECTED]" wrote: hello there i use dbconnection too... but i have some trouble. in my application the dbclasses get a connection from the pool, then they call a stored procedure and return the connection to the pool. this works fine until the stored procedures returns a resultset. but i have insert or update-sp that don't return a resultset. the next time i use this connection from the pool, i always get an odbc-exception "connection is busy". i tried different ways to execute the stored procedure. the only workaround i've found till now is to "kill" the connection in the pool and get a new one. does someone have any clue? thanks Sandro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSP Compilation into Servlet source Weblogic and JSPs(possible?)
Weblogic 4.5 supports JSP, the beta version is now available. - Original Message - From: Paul Fitzgerald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 30, 1999 11:10 AM Subject: Re: JSP Compilation into Servlet source Weblogic and JSPs(possible?) Q: I want to be able to be able to see the generated Java source for JHML pages with WebLogic 4.0. Is there an equivalent of "jsp.initparams=keepgenerated=true" that can be used in the weblogic.properties file? Q: Weblogic supports JHTML, does anybody know if it is possible to get JSPs going using Weblogic? Paul YES - Original Message - From: Paul Fitzgerald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 30, 1999 2:31 AM Subject: Re: JSP Compilation Into Servlet Source Does anybody know if the same holds true for JHTML on weblogic? "Craig R. McClanahan" wrote: Neeraj Vora wrote: Hello, Is there any way to take a JSP page and compile it into a Java source file that I could then use for compilation as I do for any servlet? I tried looking in the work directory of JSWDK 1.0, but it only has the class file for the generated servlet, not the source. Thanks! Neeraj For JSWDK 1.0, you can set an initialization parameter for the JSP servlet in your WEB-INF/servlets.properties file like this: jsp.initparams=keepgenerated=true to have the source code file saved as well. NOTE: You won't be able to compile this yourself without including references to the appropriate JSWDK jar files in your classpath, because the imports will refer to classes in these files. However, it is quite instructive to see what code the JSP servlet generates for your pages. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Accessing properties from beans
We would like to access some system-level properties in beans that we instantiate in JSPs. Presently, we've been fine with using init arguments to our JSP servlet (GNUJSP under Apache/JServ) and using config.getInitParameter() to explicitly set properties in the JSP. Now, though, we find ourselves wishing to have some parameters available at initialization, and have some design motivations to avoid passing certain environment properties in from JSP. Can I access the init parameters of the JSP page compilation servlet from within a bean? Even better, how would I use a .properties file of my own (or access properties of the JServ servlet zone?) Thanks in advance, -- [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
JSP on Linux
How can I install SUN JSP on linux? -- Sven Kalow * mailto:[EMAIL PROTECTED] * (+49-89)306382-21 xsnet GmbH * Hiltenspergerstr. 53 * 80796 München http://www.xsnet.de * Tel.:(+49-89)306382-0 * Fax:(+49-89)306382-70 -- Sven Kalow * mailto:[EMAIL PROTECTED] * http://www.kalow.de === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: setproperty not a string?
I am implementing the same way... Can anyone explain what scope "textarea" is having? does it has the same scope we specify in the jsp:useBean tag? thanks, suvil -Original Message- From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 30, 1999 10:02 AM To: [EMAIL PROTECTED] Subject: jsp:setproperty not a string? I'm having problems using jsp:setproperty when the property I'm setting is not a string? eg: jsp:useBean id="textarea" class="com.sfbeans.DeluxeTextareaBean" scope="request" jsp:setProperty name="textarea" property="request" value=request/ /jsp:useBean does NOT set the request property of the bean to the current request object. but this : jsp:useBean id="textarea" class="com.sfbeans.DeluxeTextareaBean" scope="request"/ % textarea.setRequest(request); % works fine ? How can I set a property using jsp:setProperty when it's not a string? ;) Cheers, Mike __ | | The BookmarkBox | | http://www.bookmarkbox.com |/\| Manage and share your bookmarks online! Have you seen our new forums? http://www.bookmarkbox.com/ubbcgi Share your bookmarking with others and get helpful tips! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of David Navas Sent: Friday, 1 October 1999 12:43 To: [EMAIL PROTECTED] Subject: Re: Can JSP support multimedia product presentation? "Kallur, Padmaja (GEL, MSX)" wrote: Hello everybody, Is any one using Netscape Application Builder 4.0 Well, I'm the project lead (at least for the next couple of weeks). I'd be happy to answer any questions. Conversely, I'd be happy to hold my tongue whilst you complain about non-standard tags and non-standard, DTC-related attributes :) :) -Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: sessions !!!
Use this code (from my earlier posting). - khaitan 1. create a session bean object as per the following code in some file x.jsp jsp:useBean id="login" scope="session" type="Login" class="Login" /jsp:useBean .. set the login/password properties of the bean.. 2. import the login session in say y.jsp jsp:useBean id="login" scope="session" type="Login" class="Login" %-- if bean not in session the forward request to x.jsp to create the session --% /jsp:useBean - Original Message - From: ACI Team (Chennai) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 29, 1999 10:41 PM Subject: Re: sessions !!! hi bhanot, I have answer for the second query say u r having two pages login and goto in goto use the 'getParameter()' method to get the value of the login password from the login page where u should initialize the variable to null and in login u can check for the value of the variable if it happens to be null throw the login page thats all. regards saravana kumar -- From: Vaibhav Bhanot[SMTP:[EMAIL PROTECTED]] Reply To: Vaibhav Bhanot Sent: Thursday, September 30, 1999 8:23 AM To: [EMAIL PROTECTED] Subject: sessions !!! can anybody solve my problem...one is i want that a particular frame should always be attached to the html whenever output goes to the browser in html form to the user.if it can be done and if yes then how ..if somebody can send me some code for help..or tell me where i can find some code!!! second i am designing my application using servlets..i want that the first screen should be a login screen and and if some one tries to directly move to the next screen by typing the url of the next screen in the browser then he should come to the login screen coz he has not entered the login yetif this can be implemented if yes then can i get some code from anyone. thanks in advance !!! vaibhav == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSP Compilation into Servlet source Weblogic andJSPs(possible?)
Godse wrote: Weblogic 4.5 supports JSP, the beta version is now available. You should contact BEA/WebXpress directly, but I believe 4.5 is in what is called Controlled Release with the 4.51 GA release coming any day now. The controlled release is a GA quality release limited to the existing customer base to give the company time to ramp up support. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: request-object is empty when usingenctype=multipart/form-data
Also, Make sure to check the size of the file that is just posted and where it is posted to (ie dont let them post to /etc/passwd) This is a good denial of service hack that most people forget. Kevin Paul Fitzgerald wrote: Hi Daniel After specifying the enctype to be multipart/form data any check box data etc that you POST needs to be explicitly retrieved inside a conditional loop or switch where the input type is multipart/form data. Inside this conditional block you then need to do your request.getParameter() for each type of multipart/form-data parameter type . Here are the types of data that you will be uploading: TEXT | PASSWORD | CHECKBOX |RADIO | SUBMIT | RESET | IMAGE | HIDDEN | FILE )See RFC 1867 . So you will explicitly need to do a request for each type. Here is an article that you may be interested in http://www.servletcentral.com/1999-01/parser.dchtml . And RFC 1867 below. If you would like an example and a further description I will mail you code with an explination tomorrow. http://www.servletcentral.com/1999-01/parser/rfc1867.txt Paul Fitzgerald Telecommunications Researcher Broadcom Eireann Research Kestrel House Clanwilliam Court Dublin 2 Ireland Daniel Kreutzer wrote: I have the following problem when uploading files with input type=file...: To ensure that the upload works properly, I have to include the enctype="multipart/form-data" entry in the form tag. But if I do this, the request object contains no data. Any ideas ?!?! Thanks Daniel === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html -- Kevin A Burton Software Engineer http://relativity.yi.org Mobile: 408-910-6145 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Capturing the output from a JSP ...
Does anyone know a good way of capturing the output generated by a JSP so that it can be written to a file ? (I basically want to use .JSP's astemplates to generate a static HTML site). What I'd like to do is have a wrapper JSP which does 2 things, 1.Redirectsout so that it is writing to a file rather thanreturning stuff to the server ... 2.jsp:include's anotherJSP file whose output it want's to capture. Ican sort of see a way to do this by providing my own JSPWriter, but does anyone have any better ideasor any real experience of doing something like this ? I guess the other way is to use something like JSPExecutor Any ideasgreatfully received, John.
Re: JSP on Linux
Can you be more specific? What is "SUN JSP"? Do you mean the jswdk? If so just get the blackdown JDK for Linux from http://www.blackdown.org and follow its instructions. Then follow the instructions for JSWDK. Works fine for me. Kevin Sven Kalow wrote: How can I install SUN JSP on linux? -- Sven Kalow * mailto:[EMAIL PROTECTED] * (+49-89)306382-21 xsnet GmbH * Hiltenspergerstr. 53 * 80796 München http://www.xsnet.de * Tel.:(+49-89)306382-0 * Fax:(+49-89)306382-70 -- Sven Kalow * mailto:[EMAIL PROTECTED] * http://www.kalow.de === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html -- Kevin A Burton Software Engineer http://relativity.yi.org Mobile: 408-910-6145 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: invoking servlet inside JSP
"Kirkdorffer, Daniel" wrote: Craig, A question to you on your answer. Having not dived into the newer spec, being a 0.91 user with WebSphere, when you say using jsp:include will include the outout from a servlet, what output would that be? The output will be whatever bytes your servlet writes to the output stream or writer, but not any HTTP headers that the included servlet tries to set. The calling page will have already set the HTTP headers for this response. Essentially, jsp:include is very similar to server-side includes that have been around for a long time, with a syntax like this: !--#include virtual="..." -- The biggest difference is that the path is being interpreted relative to the context path of this web application, instead of the document root for the entire server. I assume that I'd have to pass any params my servlets typically expect via a GET approach in the URL. Right? Because the original request is being passed on, just like with RequestDispatcher.include(), the called servlet will see the same request method (GET or POST) that was used to access the calling JSP page. You therefore cannot assume that it will always be a GET. Dan Craig === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Accessing properties from beans
Hans Gerwitz wrote: We would like to access some system-level properties in beans that we instantiate in JSPs. Presently, we've been fine with using init arguments to our JSP servlet (GNUJSP under Apache/JServ) and using config.getInitParameter() to explicitly set properties in the JSP. Now, though, we find ourselves wishing to have some parameters available at initialization, and have some design motivations to avoid passing certain environment properties in from JSP. Can I access the init parameters of the JSP page compilation servlet from within a bean? Even better, how would I use a .properties file of my own (or access properties of the JServ servlet zone?) The latter (a properties file) is really easy to use, courtesy of the java.util.ResourceBundle class. If you have a properties file named "com/mycompany/myapp/MyResources.properties" (relative to the top directory of your application, so this is the same place you would have Java source code in package "com.mycompany.myapp"), you can access this properties file by saying: ResourceBundle bundle = null; try { bundle = ResourceBundle.getBundle("com.mycompany.myapp.MyResources"); } catch (MissingResourceException e) { ... deal with the exception ... } Now, you can access the keys and values in this resource bundle according to the methods of the ResourceBundle interface. There are a couple of really cool things about doing this: * The JVM loads these resource files based on your class path, so it no longer matters what the runtime working directory of your servlet engine is. It can even load these resource files from a JAR file containing your classes, totally transparently. * ResourceBundle also includes the ability to localize your resources based on country and/or language. I've used this in a JSP based app to internationalize all the prompts and labels of the app, so that it is presented in (currently) six languages, but there's only one JSP page source file to maintain. There's more information about resource bundles in the documentation package for the JDK 1.1 or 1.2 release. Thanks in advance, -- [EMAIL PROTECTED] Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Capturing the output from a JSP ...
John Hawkins wrote: Does anyone know a good way of capturing the output generated by a JSP so that it can be written to a file ? (I basically want to use .JSP's as templates to generate a static HTML site). What I'd like to do is have a wrapper JSP which does 2 things, 1. Redirects out so that it is writing to a file rather than returning stuff to the server ...2. jsp:include's another JSP file whose output it want's to capture. I can sort of see a way to do this by providing my own JSPWriter, but does anyone have any better ideas or any realexperience of doing something like this ? I guess the other way is to use something like JSPExecutor Any ideas greatfully received, John. I've dealt with this issue in a totally different manner to generate static HTML pages from a servlet app (but it would work for JSP just as well). The idea is to write a Java application that uses a URLConnection to retrieve each page, and then writes the output (without the headers) to a file of the same name as the page. You could either enumerate the individual URLs in arguments to the program, or you could make it smart enough to parse the pages and follow the links (just like search engine spiders do). The nice thing about this approach is that it requires no fancy modifications at the server end. There's examples of using URLConnection, among other places, in the Java Language Tutorial (http://java.sun.com/docs/books/tutorial). Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: setproperty not a string?
I am implementing the same way... Can anyone explain what scope "textarea" is having? does it has the same scope we specify in the jsp:useBean tag? yes. Use a jsp expression if you want to set something other than a string. If you want to see an example of 90% of constructs of spec 1.0 you may take a look at the testsuite for GNUJSP (in the cvs snapshots of GNUJSP). It contains examples for all kinds of parameters from primitive types to objects. jsp:useBean id="textarea" class="com.sfbeans.DeluxeTextareaBean" scope="request" jsp:setProperty name="textarea" property="request" value="%= request %"/ /jsp:useBean thanks, suvil -Original Message- From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 30, 1999 10:02 AM To: [EMAIL PROTECTED] Subject: jsp:setproperty not a string? I'm having problems using jsp:setproperty when the property I'm setting is not a string? eg: jsp:useBean id="textarea" class="com.sfbeans.DeluxeTextareaBean" scope="request" jsp:setProperty name="textarea" property="request" value=request/ /jsp:useBean does NOT set the request property of the bean to the current request object. but this : jsp:useBean id="textarea" class="com.sfbeans.DeluxeTextareaBean" scope="request"/ % textarea.setRequest(request); % works fine ? How can I set a property using jsp:setProperty when it's not a string? ;) Cheers, Mike __ | | The BookmarkBox | | http://www.bookmarkbox.com |/\| Manage and share your bookmarks online! Have you seen our new forums? http://www.bookmarkbox.com/ubbcgi Share your bookmarking with others and get helpful tips! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of David Navas Sent: Friday, 1 October 1999 12:43 To: [EMAIL PROTECTED] Subject: Re: Can JSP support multimedia product presentation? "Kallur, Padmaja (GEL, MSX)" wrote: Hello everybody, Is any one using Netscape Application Builder 4.0 Well, I'm the project lead (at least for the next couple of weeks). I'd be happy to answer any questions. Conversely, I'd be happy to hold my tongue whilst you complain about non-standard tags and non-standard, DTC-related attributes :) :) -Dave === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" . FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html Ciao, Carsten Heyl Carsten Heyl [EMAIL PROTECTED] NADS - Solutions on Nets http://www.nads.de/ NADS GmbH http://www.pixelboxx.de/ Hildebrandtstr. 4ETel.: +49 211 933 02-90 D-40215 Duesseldorf Fax.: +49 211 933 02-93 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Capturing the output from a JSP ...
Does anyone know a good way of capturing the output generated by a JSP = so that it can be written to a file ? (I basically want to use .JSP's as = templates to generate a static HTML site). What I'd like to do is have a wrapper JSP which does 2 things,=20 1. Redirects out so that it is writing to a file rather than returning = stuff to the server ... 2. jsp:include's another JSP file whose output it want's to capture. I would write a jsp page operating on a list of relative urls + prefix (http://localhost). This jsp pages just uses HTTP GET, get an input stream from an url connection, open an output stream to a local file and just copy the data. No need for own JspWriter or redirecting out. You can find examples of reading from an URL at a lot of places, 2 examples are in the GNUJSP cvs package: testsuite/main.jsp: uses that to get the output of jsp pages and comparing it with expected output JSP10Servlet.java uses it to implement jsp:include on JSDK 2.0. Any ideas greatfully received, John. =20 --=_NextPart_000_000B_01BF0B90.F1622340-- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" . FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html Ciao, Carsten Heyl Carsten Heyl [EMAIL PROTECTED] NADS - Solutions on Nets http://www.nads.de/ NADS GmbH http://www.pixelboxx.de/ Hildebrandtstr. 4ETel.: +49 211 933 02-90 D-40215 Duesseldorf Fax.: +49 211 933 02-93 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: an error returned initializing protocol wrapper
wrapper.classpath=3D/usr/jserv/lib/ApacheJServ.jar Is that correct? In my installation its called Apache-Jserv.jar === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" . FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html Ciao, Carsten Heyl Carsten Heyl [EMAIL PROTECTED] NADS - Solutions on Nets http://www.nads.de/ NADS GmbH http://www.pixelboxx.de/ Hildebrandtstr. 4ETel.: +49 211 933 02-90 D-40215 Duesseldorf Fax.: +49 211 933 02-93 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: FW: Simple JSP question
From the beans 1.01 spec: Thus when we extract a property or event name from the middle of an existing Java name, we normally convert the first character to lower case. However to support the occasional use of all upper-case names, we check if the first two characters of the name are both upper case and if so leave it alone. So for example, "FooBah" becomes "fooBah" "Z" becomes "z" "URL" becomes "URL" So I guess jrun does not follow this rule and matches on the name as written in the setter method. That's strange! I am running JRun 2.3.3 JSP 1.0 - (.jsp10 files). I have following method in my Bean. public voidsetCustomerName (String custname) and I am using following line in my Jsp to set it. It works!. jsp:setProperty name="crsBean" property="CustomerName"/ After reading the following email, I tried changing it to lowercase, as in - jsp:setProperty name="crsBean" property="customerName"/ It does not work anymore. Does JRun behave differently ? - Rajesh -Original Message- From: Carsten Heyl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 29, 1999 7:25 PM To: [EMAIL PROTECTED] Subject: Re: Simple JSP question Should a JSP 1.0 server have trouble with the following .jsp file or am I Yep. missing something: %@ page import="HelloWorldBean" % HTML HEAD TITLEHello, World! JSP/TITLE /HEAD BODY jsp:useBean id="helloWorldBean" class="HelloWorldBean" / H1 jsp:getProperty name="helloWorldBean" propertyName="Msg" / jsp:getProperty name="helloWorldBean" propertyName="msg" / /H1 H2 jsp:setProperty name="helloWorldBean" propertyName="Msg" value="Next Message" / jsp:setProperty name="helloWorldBean" propertyName="msg" value="Next Message" / jsp:getProperty name="helloWorldBean" propertyName="Msg" / jsp:getProperty name="helloWorldBean" propertyName="msg" / /H2 /BODY /HTML The HelloWorldBean.java file contains: public class HelloWorldBean { private String msg = "Hello, World!"; public String getMsg () { return msg; } public void setMsg (String m) { if (m != null) msg = m; } } thanks, richard -+- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" . FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html Ciao, Carsten === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" . FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html Ciao, Carsten Heyl Carsten Heyl [EMAIL PROTECTED] NADS - Solutions on Nets http://www.nads.de/ NADS GmbH http://www.pixelboxx.de/ Hildebrandtstr. 4ETel.: +49 211 933 02-90 D-40215 Duesseldorf Fax.: +49 211 933 02-93 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html