Re: Multiple Servlet Contexts
The Java Web Server has only one servlet context. It does not have multiple context support. For multiple servlet context support, take a look at Tomcat. It is an open source implementation of the servlet 2.2 and jsp 1.1 specs. http://jakarta.apache.org/tomcat/index.html Justyna < [EMAIL PROTECTED] > >Can anyone tell me >Does Java Web Server supports Multiple Servlet Contexts ? > >Nitin > >=== >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: create customized tag in JSP
You need to have a web.xml file. It describes the mapping between the taglib uri and the location of the Tag Library Descriptor. Your web.xml file could look like this: http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"> Core servlets example tag library csajsp-taglib.tld /WEB-INF/csajsp-taglib.tld In your case, you would place the file in the following location: jakarta-tomcat/webapps/ROOT/WEB-INF/web.xml The following files should be in these locations: jakarta-tomcat/webapps/ROOT/WEB-INF/csajsp-taglib.tld jakarta-tomcat/webapps/ROOT/SimpleExample.jsp Justyna < [EMAIL PROTECTED] > jie li wrote: > > Hello Everyone, > Please help me to create a customized tag in JSP. In > fact this example is from the book of "core servlets > and jsp". > > web server is jakarta-tomcat 3.1 > JSP 1.1 > > the tag handler class resides in > jakarta-tomcat/webapps/ROOT/WEB-INF/classes/coreservlets/tags/ExampleTag.class > > the TLD file and .jsp resides in > jakarta-tomcat/webapps/csajsp-taglib.tld > jakarta-tomcat/webapps/SimpleExample.jsp > > when I run http://localhost:8080/SimpleExample.jsp > > the title is still . it didn't be > resolved to the customized tag. It looks like tomcat > can't recognize the customized tag. What's wrong here? > > attachment the souce code: > = > the handler java file ExampleTag.java > = > package coreservlets.tags; > import javax.servlet.jsp.*; > import javax.servlet.jsp.tagext.*; > import java.io.*; > /** Very simple JSP tag that just inserts a string > * ("Custom tag example...") into the output. > * The actual name of the tag is not defined here; > * that is given by the Tag Library Descriptor (TLD) > * file that is referenced by the taglib directive > * in the JSP file. > */ > public class ExampleTag extends TagSupport { > public int doStartTag() { > try { > JspWriter out = pageContext.getOut(); > out.print("Custom tag example " + > "(coreservlets.tags.ExampleTag)"); > } catch(IOException ioe) { > System.out.println("Error in ExampleTag: " + ioe); > } > return(SKIP_BODY); > } > } > > > csajsp-taglib.tld: > > > PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library > 1.1//EN" > "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> > > > > 1.0 > 1.1 > csajsp > > > A tag library from Core Servlets and JavaServer Pages, > http://www.coreservlets.com/. > > > example > coreservlets.tags.ExampleTag > Simplest example: inserts one line of > output > EMPTY > > > > > SimpleExample.jsp > > Transitional//EN"> > > > I am testing tag > <%@ taglib uri="csajsp-taglib.tld" prefix="csajsp" %> > > > > > This is testing tag > > > > > > Thanks a lot! > Jie === 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 taglib for SQL query handling
Take a look at the SQL tag library in the jakarta taglibs project: http://jakarta.apache.org/taglibs/index.html Justyna < [EMAIL PROTECTED] > - Original Message - > I am looking for a good open source JSP taglib to encapsulate SQL > database operations. Any suggestion? > > I am working with J2SE and the Resin servlet runner. > > Thanks > > Rogério Saran === 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
[ADMIN] List Policy
I'm aware of Zahid Rahmen and have suspended him from this list on several occasions. Please as a favor to me and all other list members end the previous thread and IGNORE him. It is a waste of effort to respond to any of his postings. Figures, I go away to JavaOne and things hit the fan :( I'm including the jsp-interest list policy. Abusive behavior on this list will not be tolerated. Please read this policy. Thank you, Justyna < jsp-interest list moderator > The JSP Interest Mail Forum ABSTRACT: __ This is an informative document covering the conventions and usage of the [EMAIL PROTECTED] mailing list. BEFORE POSTING __ Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer and to see if this is the best place to ask it. 1) Sometimes this may be the wrong forum for your discussion because it has nothing (or very little) to do with JSPs and can be better discussed elsewhere (Examples: JDBC-related questions, JavaMail queries...). For a full list of the mail forums hosted by Sun Microsystems, Inc. for Java related technologies, please check: * http://archives.java.sun.com/archives/index.html 2) Often your question has already been discussed on this list. You can search the archives at: * http://archives.java.sun.com/archives/jsp-interest.html 3) Check some of the extensive FAQs and documentation that has been built up by the JSP and servlet community over the last few years: a) A great link to know about is the Sun JSP site, where you will find an introduction to the technology and links to the specifications, APIs, white papers, news and products supporting JSPs: * http://java.sun.com/products/jsp b) An excellent place to start learning about JSPs is the JSP chapter of the J2EE Tutorial: * http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html c) For more information on Tag Libraries: * http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html d) We also have a listing of external resources you may find helpful: * http://java.sun.com/products/jsp/resources.html e) Some FAQs that may help you * http://java.sun.com/products/jsp/faq.html * http://www.jguru.com/faq/home.jsp?topic=JSP * http://www.esperanto.org.nz/jsp/jspfaq.jsp We encourage you to help out with the maintenance and growth of these faqs because people find them so useful. LIST USAGE A few notes about the use of this list. We at Sun enjoy hosting this list to give everyone a forum to discuss JSPs and related technology. There are a few things that we ask of you, the list members: 1) If you have a question that you urgently need the answer to please remember that it is unlikely that everyone else on the list will feel as urgently about it as you do. People participate on these lists because they want to and may occasionally be irritated to get a mail in their inbox that is labelled URGENT, or URGENT HELP REQUIRED ! It may actually discourage someone from answering or following up with a discussion. 2) If you have not posted to this list before, and perhaps are a beginner in the technology and are not sure if your question is well formed it can be helpful to put [BEGINNER], NEWBIE or in the subject line. 2) 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. Putting [ANN] in the subject line is a good and known convention for sending out an announcement message. 3) If you need technical support from a vendor, please contact that vendor directly. LIST ADMINISTRATION ___ 1) To unsubscribe, send a message to: [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" 2) For digest version of the send a message to: [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST" 3) You can also modify your subscription to the list using the web interface available at: * http://archives.java.sun.com/jsp-interest.html 4) You can contact the list adminstrator with any list related issues and list management needs. The administrator can be reached by sending a message to: [EMAIL PROTECTED] or directly to: [EMAIL PROTECTED] Conclusions: Please help us trying to create a suitable environment for the discussion of the JSP technology, and please help us to maintain the JSP Interest mailing forum a healty place for efficent commu
[ADMIN] Re: Looking for java Positoin
People subscribe to this list because they are interested in JSP and JSP related technical topics. This off topic thread does not belong to the list. If anyone wishes to continue it, take it off line. Justy < jsp-interest list moderator > === 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: Automatic responses! damn...
I can configure the list within the constraints of the listserver. Unfortunately how auto-replies are handled is not something that I can configure. I'll ask the listserver folks if there's anything they can do. Justyna < [EMAIL PROTECTED] > Andy Engle wrote: >--- "Bhiogade, Mittal S (SUPP)" <[EMAIL PROTECTED]> wrote: > >>HEY DUDE thats the spirit man tell all thos ppl to exit the list when >>they are on vacation or away... >> > >...or, we could ask the good folks at Sun to write something into their >listserv that looks for auto-replies and things of that sort and >automatically removes them. It ain't that hard to do, especially with >something like Perl. > > >Andy > > >__ >Do You Yahoo!? >Yahoo! Health - Feel better, live better >http://health.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://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
[ADMIN] Offtopic and offensive posts
I want to thank everyone who keeps jsp-interest focused and on-topic. There are countless people who have used this forum to ask and answer relevant questions. The jsp-interest mailing list is an open public forum. Everyone is welcome to subscribe and post to the list as long as list guidelines are followed. Someone who abuses the list is dealt with quickly by me. I've already taken action against the original poster Zahid Rahman (aka Henry Fondusa and other various aliases). I know that people naturally want to respond to the original poster. Please don't. You are not only abusing the list policies yourself but giving the original poster what they wanted in the first place: an active audience. If you would like an alternative to the JSP interest mailing list please take a look at the JSP-interest JDC Message Board: http://forum.java.sun.com/forum.jsp?forum=45 JSP and related technologies are actively discussed and you never have to worry about an inappropriate post. Please feel free to e-mail me directly if you want to discuss anything related to the list or feel that someone is being offensive. Thank you, Justyna Horwat < jsp-interest list moderator > === 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: ?? Using Taglib JARs Across Multiple Contexts ??
When you put JARs in $CATALINA_HOME/common/lib the Catalina internal classloader has access to these classes. This access is important for something like servlet.jar, but not generally required for applications. The place to put shared things for application use is in a JAR under $CATALINA_HOME/lib or in unpacked classes under $CATALINA_HOME/classes. When you make a JAR globally available like this, you still need to include the individual TLD's in your web application. These are not made globally available, only the implementation classes. Justyna Tony LaPaso wrote: Hello all, Although I'm using Tomcat v4.1.12 with Apache's JSTL Taglib, this issue really applies to *all* taglibs, not just JSTL: I'm finding that if I have several webapps (i.e., several Contexts), all using JSTL, I need to replicate the taglib JARs (jstl.jar and standard.jar) to the "WEB-INF/lib" directories of *each* webapp using JSTL. Of course, this means that each webapp loads its own copy of the classes contained in those JARs. That seems a bit wasteful. I would much rather put the JARs in a common directory, (e.g., Tomcat's "common/lib") thereby allowing all webapps to share the same JARs. Unfortunately, this technique does not work. When I move the JARs to Tomcat's "common/lib" directory I receive an error when I try to run a JSP containing a JSTL tag. The error message indicates the JAR (jstl.jar) cannot be found. My TLD resides in "\WEB-INF". I do *not* have elements in web.xml. One suggestions I received was to include elements in web.xml but that will not work since the element cannot refer to a location outside the current context. Does anyone have an idea about this -- how to share taglib JARs across contexts? 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 === 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
[no subject]
This list is for JSP and related technologies. Your question has nothing to do with the topic of the list. You need to go elsewhere to find answers to your question. Justyna Snehal Pandya wrote: hi, I have some typical requirement. In my organization we are using Informix as dbms and 4GL as frontend. I have lots of report files having headings and detail. I want to convert them to html that the user can get the OP on the screen . IT is useful to me please reply me if you have any idea or any tool Thanks in advance snehal - The secret of getting ahead is getting started. The secret of getting start is breaking your complex overwhelming tasks into small manageable tasks, and then starting on the first one. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JavaServer Faces?
JavaServer Faces is still in the JSR development phase. I'm happy to announce that an EA3 release will be available by the end of March. You can find that release as well as previous releases here: http://java.sun.com/j2ee/javaserverfaces/ Also, if you have any JavaServer Faces specific questions about the release you can go to the JavaServer Faces discussion forum here: http://forum.java.sun.com/forum.jsp?forum=427 Thanks for any feedback, reports, and questions. The implementation benefits immeasurably from your feedback. Justyna Steven J. Owens wrote: Hi folks, Anybody know what the current status of Javaserver Faces is? It seemed like a good idea when I first heard about it (going on two years now), but when I look into it, it seems to be stalled in the specification process. Steven J. Owens [EMAIL PROTECTED] "I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt." - Me at http://darksleep.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 === 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
[ADMIN] List Policy
The JSP Interest Mail Forum ABSTRACT: __ This is an informative document covering the conventions and usage of the [EMAIL PROTECTED] mailing list. BEFORE POSTING __ Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer and to see if this is the best place to ask it. Please do your research. People on the list are excited and interested in the technology. They are more than happy to answer questions but they are not your personal assistants. Please show common courtesy and do your homework. When answering questions please also use common courtesy. You are not obligated to answer a question and sometimes not answering is the best policy if you would not be making a helpful contribution. Here is some basic information before posting: 1) Sometimes this may be the wrong forum for your discussion because it has nothing (or very little) to do with JSPs and can be better discussed elsewhere (Examples: JDBC-related questions, JavaMail queries...). For a full list of the mail forums hosted by Sun Microsystems, Inc. for Java related technologies, please check: * http://archives.java.sun.com/archives/index.html 2) Often your question has already been discussed on this list. You can search the archives at: * http://archives.java.sun.com/archives/jsp-interest.html 3) Check some of the extensive FAQs and documentation that has been built up by the JSP and servlet community over the last few years: a) A great link to know about is the Sun JSP site, where you will find an introduction to the technology and links to the specifications, APIs, white papers, news and products supporting JSPs: * http://java.sun.com/products/jsp b) An excellent place to start learning about JSPs is the JSP chapter of the J2EE Tutorial: * http://java.sun.com/j2ee/learning/tutorial/index.html c) For more information on Tag Libraries: * http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSPTags.html d) We also have a listing of external resources you may find helpful: * http://java.sun.com/products/jsp/resources.html e) Some FAQs that may help you * http://java.sun.com/products/jsp/faq.html * http://www.jguru.com/faq/home.jsp?topic=JSP We encourage you to help out with the maintenance and growth of these faqs because people find them so useful. LIST USAGE A few notes about the use of this list. We at Sun enjoy hosting this list to give everyone a forum to discuss JSPs and related technology. There are a few things that we ask of you, the list members: 1) If you have a question that you urgently need the answer to please remember that it is unlikely that everyone else on the list will feel as urgently about it as you do. People participate on these lists because they want to and may occasionally be irritated to get a mail in their inbox that is labeled URGENT, or URGENT HELP REQUIRED ! It may actually discourage someone from answering or following up with a discussion. 2) If you have not posted to this list before, and perhaps are a beginner in the technology and are not sure if your question is well formed it can be helpful to put [BEGINNER], NEWBIE or in the subject line. 2) 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. Putting [ANN] in the subject line is a good and known convention for sending out an announcement message. 3) If you need technical support from a vendor, please contact that vendor directly. LIST ADMINISTRATION ___ 1) To unsubscribe, send a message to: [EMAIL PROTECTED] with body: "signoff JSP-INTEREST" 2) For digest version of the send a message to: [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST" 3) You can also modify your subscription to the list using the web interface available at: * http://archives.java.sun.com/jsp-interest.html 4) You can contact the list administrator with any list related issues and list management needs. The administrator can be reached by sending a message to: [EMAIL PROTECTED] or directly to: [EMAIL PROTECTED] Conclusions: Please help us trying to create a suitable environment for the discussion of the JSP technology, and please help us to maintain the JSP Interest mailing forum a healthy place for efficient communications. Justyna Horwat, list moderator <[EMAIL PROTECTED] > ==
Re: I Want to entree in More Java-Maillists
Thomas, I don't have any control over the management of the other lists but your single login should work with all of the lists here: http://archives.java.sun.com/archives/index.html You can get in touch with the list moderator directly by sending a mail to the following: [EMAIL PROTECTED] and have the moderator manually add you to the list. Justyna Thomas Coopmeiners wrote: Hi freinds, I'm registered in JSP-Interest. But I want to suscribe me in some more maillists of Java. Once I try to subscribe in Java3D-Interest and so on... I found the list of the listservers on http://archives.java.sun.com/archives/index.html. But they didnt want accept my login or a new account. Please tell me somebody what should I do... best regards from Thomas === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com