Problem creating custom tags for site that has no outside internet connecti

I've created a set of custom tags that work fine until we install our app at the customer site. The customer site has no outside Internet access, and so the DOCTYPE is failing since it references the web-jsptaglibrary_1_1.dtd located on Sun's site.
I tried copying the dtd locally and got it to work, but the solution sucks because this web-jsptaglibrary_1_1.dtd file is referenced in both my taglib.tld file AND the web-jsptaglibrary_1_1.dtd itself. Soooo....I can put in a URL that references it on the local machine, e.g.,
In the taglib.tld file:
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.// DTD JSP Tag Library 1.1//EN"
"http://ClientAAA/web-jsptaglibrary_1_1.dtd">
In the web-jsptaglibrary_1_1.dtd file:
<!ATTLIST taglib id ID #IMPLIED
xmlns CDATA #FIXED
"http://ClientAAA/AdProduction/web-jsptaglibrary_1_1.dtd"
>
but that means for every client that uses this app (and we have several) I have to change that URL inside both these files.
I tried simply changing it to the relative "web-jsptaglibrary_1_1.dtd", e.g.,
taglib.tld:
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.// DTD JSP Tag Library 1.1//EN"
"web-jsptaglibrary_1_1.dtd">
web-jsptaglibrary_1_1.dtd:
<!ATTLIST taglib id ID #IMPLIED
xmlns CDATA #FIXED
"web-jsptaglibrary_1_1.dtd"
>
but then it is requiring me to put the dtd in both my web app root directory AND my jakarta/bin directory. I get the following error:
XML parsing error on file ../vtaglib.tld: java.io.FileNotFoundException: D:\jakarta\jakarta-tomcat-4.1.29\bin\web-jsptaglibrary_1_1.dtd (The system cannot find the file specified)
It seems like I must be missing something here. This shouldn't be this hard. And it seems funny that to use custom tags, you have to have Internet access in the first place.
Help!!! :)
Thanks.

Yeah, I think it's a bit ridiculous that in order to make all the tag library examples and instructions work, you have to have access to the Internet. I haven't seen a single example on how to make it work if there is no Internet access. That's very limiting. And I've tried all sorts of other ways of doing it, such as
<!DOCTYPE taglib SYSTEM "web-jsptaglibrary_1_1.dtd">
but even then it won't work because I get an error message saying:
XML parsing error on file /assets/../vtaglib.tld: java.io.FileNotFoundException: D:\jakarta\jakarta-tomcat-4.1.29\bin\web-jsptaglibrary_1_1.dtd (The system cannot find the file specified)
I just don't think I should have to place this file in the bin directory. There has to be another way. Do I need to modify the dtd somehow? Cuz the dtd has the following line...is this messing it up??
<!ATTLIST taglib id ID #IMPLIED xmlns CDATA #FIXED "web-jsptaglibrary_1_1.dtd">
I sure could use some help.

Similar Messages

  • Problem creating custom tag

    I tried to create a simple custom tag using apache webserver. my jsp file is HelloWorld.jsp (for presentation, codes listed below), my HelloWorld.java class (listed below) ,a and my TLD file is called WoaTagLibDesc (also listed below). I ran this and I got this error message below:
    HTTP status 404
    type status report
    message:
    description The requested resource () is not available.
    Apache Tomcat/6.0.18
    Can anybody advise me on what to do please
    (1) HelloWorld.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib uri="/WEB-INF/woatags/WoaTagLibDesc.tld" prefix="mt" %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <mt:helloWorld/>
        </body>
    </html>
    (2) WoaTagLibDesc.tld<?xml version="1.0" encoding="UTF-8"?>
    <taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
    <tlib-version>1.0</tlib-version>
    <short-name>woataglibdesc</short-name>
    <uri>/WEB-INF/woatags/WoaTagLibDesc</uri>
    <tag>
    <name>helloWorld</name>
    <tag-class>woatag.HelloWorldTag</tag-class>
    <body-content>empty</body-content>
    </tag>
    </taglib>
    (3) HelloWorldTag.java
    import java.io.IOException;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class HelloWorldTag implements Tag {
        private PageContext pageContext;
        private Tag parent;
        public HelloWorldTag() {
            super();
        public void setPageContext(final PageContext pageContext) {
            this.pageContext = pageContext;
        public void setParent(final Tag parent) {
            this.parent = parent;
        public javax.servlet.jsp.tagext.Tag getParent() {
            return parent;
        public int doStartTag() throws JspException {
            return SKIP_BODY;
        public int doEndTag() throws JspException {
            try {
                pageContext.getOut().write("Hello World!");
            } catch (IOException e) {
                throw new JspTagException("IO Error: " + e.getMessage());
            return EVAL_PAGE;
        public void release() {
    }

    Your class (according to what is posted) is in the package mytag.
    So in your tld: <tagclass>tag.Hello</tagclass>should be<tagclass>mytag.Hello</tagclass>cheers,
    evnafets

  • Why does my iPhone not show up in iTunes on a mac that has a shared internet connection from another mac?

    I have what I would consider a difficult question. I called Apple Care and after she spoke to a senior advisor,the representative ended up saying it wasn't possible.
    Having said that, I'm sure this is not a difficult question for people with networking expertise.
    Setup
    So...I have a MacBook receiving a WiFi signal via AirPort.
    In System Preferences, I have turned on Internet sharing (share airport over Ethernet).
    I connected the Ethernet port on my MacBook to the Ethernet port on my MDD PowerMac G4.
    At this point, I can successfully browse the web, perform software updates, and view other computers and iTunes libraries on my network from my G4.
    Goal
    However, in iTunes on my G4 I would like to use iTunes DJ.
    Tried
    So...I click on iTunes DJ.
    I set the settings (button in bottom right) to allow guest remotes, etc.
    I turned on iTunes Home Sharing (logged into the same account as by iPhone).
    Problem
    However, from the Remote app on my iPhone, I am unable to see the library on my G4.
    Also, if I want to pair my iPhone Remote app with iTunes on my G4, I click add Library in the Remote app, but iTunes on the G4 never displays my iPhone in the left column (although I am able to see all other iTunes libraries being shared on the network).
    Thus, I cannot connect to iTunes as a guest Remote, nor can I connect as paired remote.
    I have successfully done both of these things with computers connected directly to my modem, as well as with computers connected via WiFi.
    The problem is connecting devices to computers that get their internet connection though another computer via internet sharing.
    Question
    So my question is about Internet sharing itself. Is it not a fully featured ad-hoc network? Does it only provide browsing capabilities and the ability to browse networked computers, but NOT devices such as an iPhone? I don't see the difference; my iPhone is on the same network as the computers, so why is there no communication between it and computers that gain their Internet connection through another computer?
    I really hope someone out there who is an expert in networking can help me out with this. Or if it truly is impossible, if someone could explain to me why that is the case, I would also appreciate it.
    ps. I usually have my MacBook sharing its Internet connection through an old router that I am using as a switch because I share the connection with three other computers. And if it isn't obvious, the modem is downstairs, and the MacBook, old router being used as a switch, and other computers are upstairs where there is no Ethernet wired.
    Thank you in advance for any help.

    Phone not recognised in itunes
    iPhone not recognised by iTunes on PC
    iPhone not recognised by iTunes on Mac

  • Can i add custom thumbnail for sites that do not have them?

    I frequent a boardhost discussion board. apparently it has no thumbnail, so pinning the tab is useless, as I only see an empty square. is there a way to choose a thumbnail for it? or upload one?
    thank you
    Mac Mountain Lion
    Firefox 19.0.2
    site is public board: http://members7.boardhost.com/VADARE/

    Use this add-on. <br />
    https://addons.mozilla.org/en-US/firefox/addon/bookmark-favicon-changer/

  • Sub components problem in custom tag

    Hi!
    Im writing custom tag that do nothing but can contains other components.
    So first I create custom tag with hendler that extends UIComponentTag and component class that extends UIComponentBase
    now tag work but i dont see sub components on the page
    Second i override encodeChildren and getFamily methods with:
    public String getFamily() {       
            return "MyCaller";
    public void encodeChildren(FacesContext context) throws IOException {
            Iterator ch=this.getChildren().iterator();
            while(ch.hasNext()){
                 UIComponent oKid = (UIComponent)ch.next();
                 if(oKid.isRendered()){
                    oKid.encodeBegin(context);
                    oKid.encodeChildren(context);
                    oKid.encodeEnd(context);
            super.encodeChildren(context);
        }But subcomponents not rendered on page.
    So are you know whats wrong

    the problem was in wrong getComponentType() that return wrong value

  • How do I get Firefox to prompt me to remember a password for a site that has already been visited?

    How do I get Firefox to prompt me to remember a site password for a site that has already been visited (probably in private mode)?

    Remove site(s) from the Exceptions:
    * Firefox > Preferences > Security: Passwords: Exceptions
    *http://kb.mozillazine.org/Password_Manager
    *http://kb.mozillazine.org/User_name_and_password_not_remembered
    *Saved Password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/

  • Creating a purchase order form that has a flowable layout" Help Tutorial

    Regarding the "Creating a purchase order form that has a flowable layout" Help Tutorial,  I can't seem to get the data to pull in for just the PO in question, is there a secret?
    Ideally, it should create one form for each PO with the detail lines for each PO on the individual forms.  Can we do this?
    Many thanks!

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • How to create custom template for webcenter portal application

    Hi,
    I created webcenter portal application in my jdev using the webcenter portal application template provided by the webcenter framework.
    I tried to create custom template for my application by following steps:
    1. Created new application using webcenter portal application template with all default package structure.
    2. Right click pagetemplates folder under webcontent package and select new option.
    3. New gallery opens up.
    4. Selected JSF under webtier and JSF Page Template under items in the right hand side and clicked Ok button.
    5. New wizard opens up for creating new JSF page template.
    6. Gave template name(file name) and Page Template Name(template def name).
    7. Selected checkbox staing start a Quick Start Layout and selected three column layout and selected Ok.
    8. Selected checkbox for Create Associated ADFm Page Defination(so that page templates can be changes at run time).
    9. Created some Facet Definations (header, footer, content1, content2, LHN, RHN).
    10. Clicked Ok button which will create custom template.
    11. Added some Panel Group Layout component from Component Palette.
    12. Created new page (.jspx) with this template.
    Now when I try to add producer portlets created using Producer Portlet application template and connected to the above application using WSRP2.0, I'm facing problem.
    The prolem is that I'm not able to add more than one portlet in one single page?
    Kindly let me know whether the steps followed by me is wrong some where and needs to corrected and let me know how I can add more than one portlet to page?
    Basically I cant see more than one placeholders in my page to add portlets.

    Thanks Yannick.
    In the step 9 I had mentioned that I created various facet definations (header, footer, content, content1 RHN and LHN).
    Is this is not facet you are talking about or should I drop facet ref from the resource palette?
    Can't I add moer than one portlet to my page at design time itself?
    Annoying since in weblogic portal we do this at design time(.portal).

  • How to use custom tags for integrating FCK Editor?

    Hi All,
    I am looking for the integrating the FCK Editor in my jsp page. any one can please provide the procedure of How to create fckeditor in jsp?
    I have the jar file of fck editor but i am confusing while creating the custom tag for that editor.
    I want like this:
    <FCKeditor:fck ?> like this
    Regards,
    Sateesh

    google answers it all..
    [http://www.jroller.com/coreteam/entry/using_fckeditor_in_jsp_web]
    [http://java.fckeditor.net/properties.html]
    [http://java.fckeditor.net/java-core/tagreference.html]

  • Can i use Custom Tags for Database retrieval (as per MVC pattern)?

    In our project we are dealing with database, and i've used the Cutom Tags for database retrieval (as per the Article from Mr Faisal Khan) and it is working fine. But i have a doubt if it affects the performance in any way . I wanted to know if its recommendable to use Custom Tags for the DB retrieval as per MVC Pattern or shall i create a intermediate bean and then call the bean in custom tag.
    Thanks
    Prakash

    Putting database code in your JSPs certainly couples your view to the database. That's usually not good.
    If it's a simple app, it might be justified.
    When you start having lots of pages and complex business logic it becomes less attractive. - MOD

  • Creating Custom Theme for Power View Clustered columns chart

    Helllo...
    Is it possible to create custom theme for displaying clustered columns chart on Power View?
    Basically I am looking to create chart with specific colors for the bars? For e.g. for High - RED, Medium - Orange and Low - Yellow color. When I look at themes available in Excel 2013 I don't see this combination as such, so I was looking to create one
    myself. 
    I tried to create a theme using video on youtube, but the theme which I created is not showing up in Power View mode in excel 2013.
    www.youtube.com/watch?v=xs2F1n2-YR8

    Hi Sagar,
    In Power View, it has several default theme colors for us to apply to our workbook. Also, we can change the Font, Text Size and Background of the chart. However, it is not support to design a custom theme color.
    You can refer to the following steps to change the theme colors:
    1. On the POWER VIEW tab, in the Themes group, click Themes.
    2. Under Built-in, click the theme that you want to use.
    Please refer to the following screenshot below:
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • IIf I create a partition for Bootcamp that is at least 30 GB in size, is that all the storage I get when running Windows?

    If I create a partition for Bootcamp that is at least 30 GB in size, is that all the storage I get when running Windows?

    There are differences between each Mac and what the original configuration of the Mac is/was. If your Mac originally came with an Optical drive, burning the ISO to a DVD and using it will work. Hardware modifications like Optibay will cause problems. Modifying Bootcamp info.plist will cause problems. Disk Utility partitioning will cause problems. A custom Hybrid MBR will cause problems. External Optical drives are unlikely to work. There is long litany of grief.

  • How to create custom infotype for training and event management

    hai freinds can any one tell me how to create custom infotype for training and event managment with following fields
    PS No – PA0000-> PERNR
    Name   - PA0001 -> ENAME
    IS PS.No. – PA0001-> PS no. of Immediate Superior
    IS name PA0001 -> ENAME
    thanx in advance
    afzal

    Hi,
    Your question is not clear for me. Since it is a TEM infotype, it could be a PD infotype.
    If you wish to create a PD infotype, use transaction PPCI to create the infotype.
    But before that you need to create a structure HRInnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
    If you wish to create a PA infotype, use transaction PM01 to create the infotype.
    But before that you may be required to create a strcuture PSnnnn  (where nnnn is the infotype number) with all the fields relevant for the infotype.
    Regards,
    Srini

  • I have a online form created with my paid account that has just stopped working.

    I have a online form created with my paid account that has been working for months that just started displaying a message that starts "This form was easily created for FREE with FormsCentral. See how..." The inline frame that it shows up in has also changed to be very small. The form is set to open in FormsCentral and shows the message and inline frame size when I choose preview. What's up?

    Checked when I got back in to work today and everything is working as it should. All of our online forms were screwed up yesterday, but are working this morning. I know this won't help anyone in the future, but just wanted to follow-up.

  • Custom tag for Marquee in JSF

    Hi,
    I am trying to develop a custom tag for Marquee in JSF, my usecase is to display a value from managed bean(Dynamically). please find the code below and guide me where i have made mistake
    regards
    Sandeep
    Component class:
    package customtags;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponentBase;
    import javax.faces.context.FacesContext;
    public class Marquee extends UIComponentBase {
         public static final String COMPONENT_TYPE = "marqueecomp";
         public static final String RENDERER_TYPE = "marqueeRenderer";
         private Object[] _state = null;
         private String value;
         public String getValue() {
              if (null != this.value) {
                   return this.value;
              ValueExpression _ve = getValueExpression("value");
              return (_ve != null) ? (String) _ve.getValue(getFacesContext()
                        .getELContext()) : null;
         public void setValue(String marquee) {
              this.value = marquee;
         public String getFamily() {
              // TODO Auto-generated method stub
              return COMPONENT_TYPE;
    //     public void encodeBegin(FacesContext context) throws IOException {
    //          ResponseWriter writer = context.getResponseWriter();
    //          writer.startElement("marquee", this);
    //          writer.write(getValue());
    //          writer.endElement("marquee");
         public void restoreState(FacesContext context, Object state) {
              this._state = (Object[]) _state;
              super.restoreState(_context, this._state[0]);
              value = (String) this._state[1];
         public Object saveState(FacesContext _context) {
              if (_state == null) {
                   _state = new Object[2];
              state[0] = super.saveState(context);
              _state[1] = value;
              return _state;
    Tag Class:
    package customtags;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentELTag;
    public class MarqueeTag extends UIComponentELTag {
         protected ValueExpression marquee;
         public String getComponentType() {
              // TODO Auto-generated method stub
              return Marquee.COMPONENT_TYPE;
         public String getRendererType() {
              // TODO Auto-generated method stub
              return Marquee.RENDERER_TYPE;
         * protected void setProperties(UIComponent component) {
         * super.setProperties(component); Marquee marqComp = (Marquee) component;
         * if (marquee != null) { marqComp.setValue(marquee); } }
         protected void setProperties(UIComponent component) {
              super.setProperties(component);
              Marquee marqComp = null;
              try {
                   marqComp = (Marquee) component;
              } catch (ClassCastException cce) {
                   throw new IllegalStateException(
                             "Component "
                                       + component.toString()
                                       + " not expected type. Expected: com.foo.Foo. Perhaps you're missing a tag?");
              if (marquee != null) {
                   //marqComp.setValueExpression("value", marquee);
                   marqComp.setValue("fsdfsdfsdfsdfsd");
         * @return the marquee
         public ValueExpression getMarquee() {
              return marquee;
         * @param marquee
         * the marquee to set
         public void setMarquee(ValueExpression marquee) {
              this.marquee = marquee;
    *.tld file*
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
         version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>marqueecomp</short-name>
         <uri>http://tags.org/marquee</uri>
         <tag>
              <name>marqueeTag</name>
    <tag-class>customtags.MarqueeTag</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <description><![CDATA[Your description here]]></description>
    <name>id</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <description><![CDATA[Your description here]]></description>
    <name>value</name>
    </attribute>
         </tag>
    </taglib>
    Renderer class:
    package customtags;
    import java.io.IOException;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.render.Renderer;
    public class MarqueeRenderer extends Renderer {
         public void encodeBegin(final FacesContext facesContext,
    final UIComponent component) throws IOException {
    super.encodeBegin(facesContext, component);
    final ResponseWriter writer = facesContext.getResponseWriter();
    writer.startElement("DIV", component);
    /*String styleClass =
    (String)attributes.get(Shuffler.STYLECLASS_ATTRIBUTE_KEY);
    writer.writeAttribute("class", styleClass, null);*/
    public void encodeEnd(final FacesContext facesContext,
    final UIComponent component) throws IOException {
    final ResponseWriter writer = facesContext.getResponseWriter();
    writer.endElement("DIV");
    in Faces-Config:
    <component>
              <display-name>marqueecomp</display-name>
              <component-type>marqueecomp</component-type>
              <component-class>customtags.Marquee</component-class>
              <component-extension>
    <renderer-type>marqueeRenderer</renderer-type>
    </component-extension>
         </component>
         <render-kit>
    <renderer>
    <component-family>marqueecomp</component-family>
    <renderer-type>marqueeRenderer</renderer-type>
    <renderer-class>customtags.MarqueeRenderer</renderer-class>
    </renderer>
    </render-kit>
    In class path --->marquee.taglib.xml
    <?xml version="1.0"?>
    <!DOCTYPE facelet-taglib PUBLIC
    "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
    "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
    <facelet-taglib>
    <namespace>http://tags.org/marquee</namespace>
    <tag>
    <tag-name>marqueeTag</tag-name>
    <component>
    <component-type>marqueecomp</component-type>
    <renderer-type>marqueeRenderer</renderer-type>
    </component>
    </tag>
    </facelet-taglib>
    *.xhtml file*
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en"
         xmlns:a4j="http://richfaces.org/a4j"
         xmlns:rich="http://richfaces.org/rich" xmlns:mycomp="http://tags.org/marquee">
    <head>
    <title>DEBTDOC Home Page</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here" />
    <meta http-equiv="description"
         content="A short description of this page." />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="../css/common.css"></link>
    <script language="javascript" src="../script/common.js"></script>
    </head>
    <body>
    <f:view>
    <mycomp:marqueeTag value="hello World"></mycomp:marqueeTag>

    There exist the JSTL SQL taglib, but I don't recommend this. It should only be used for quick development and testing. For database connectivity, rather create a data layer with DAO classes which you on its turn just plug in your business layer (with servlets).

Maybe you are looking for

  • Call items are not created for Org BP's when created from Campaigns

    Hello All, We are creating Campaigns for Org BP's and pushing them to channel Phone, which is creating call list but call items are not created for Org BP's. Org BP's are maintained with Contact Person's, callling hours and phone number are maintaine

  • What are some ways to prevent dust from getting into the camera of my iPhone 5?

    I have done much research on this topic but all I can find on the internet are ways to clean the camera after dust has already gotten into it. I've had to have my iPhone 5 replaced twice now because the dust has been so bad. I just got my third and I

  • Firefox unresposive after hibernating/sleeping - Windows 8

    Lots of similar threads have been raised regarding this same issue but there's still not been any conclusive resolution. I'm using an up to date FF version 28.0 on Windows 8 and after my PC wakes up (so to speak) FF doesn't respond to any clicks, i.e

  • Configure Industry Type Configuration

    Dear All, Can you Pl. Help me out in creating a new Industry Sector & how to default industry default while Material Master Creation? Waiting for replies. Thanks, Rajesh

  • Navigation IViews

    Hi All, I have a scenario in my project. I have users divided on the basis of Regions, each Region have 5 folders. So I have created 5 navigation Iviews to point to each folder. Similarly there are 20 Regions (containing 5 folders each). The user fro