facebook

problem in struts-tiles

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #246152 Reply

    Starting I added Struts capabilities using Struts 1.2 libraries. that time i got these Exception:

    [ServletException in:/jsp/index.jsp] The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application’

    then I change my taglib URIs to:

    http://struts.apache.org/tags-bean

    still I got the same Exception……….

    what can I do

    Plz Help me

    Thanks & Regards
    Raghu.B
    e-mail: raghava.bhavanasi@gmail.com

    #246169 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #247034 Reply

    Hansz
    Member

    I’m not sure if this is a resolved issue or not, but I have/had the same problem… Just following the tutorial ‘First steps in Struts using eclipse + MyEclipse” … I created the index.jsp’s as instructed… no problems when creating them with the Struts 1.1 libraries, but the same error message as described above when creating them with the Struts 1.2 library support.

    Could this be a version issue maybe for the struts libraries that are installed/copied when adding struts support to a web-project?

    #247036 Reply

    Riyad Kalla
    Member

    Hansz,
    Your error message is most likely due to the fact that you added Struts 1.2 capabilities, then when you went to create the struts page, you used the Struts 1.1 templates that have their URIs in the form: http://jakarta.apache.org/struts/… instead of http://struts.apache.org/…

    #247037 Reply

    Hansz
    Member

    I stand corrected 😀

    btw… that was a scaringly quick response, especially for a sunday night … thnx for that.

    #247041 Reply

    Riyad Kalla
    Member

    No worries, we realize the templating system should be smarter and tie it’s choices into your project capabilities. After I did this twice while testing other people’s bugs, thinking I had found new ones, I burned this scenario into my memory.

    #248024 Reply

    I’m running Tomcat 4 and just ran into this issue.

    The solution I used was to put this in web.xml:

    <taglib>
    <taglib-uri>http://jakarta.apache.org/struts/tags-bean</taglib-uri&gt;
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://jakarta.apache.org/struts/tags-html</taglib-uri&gt;
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>

    And also to change this:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;

    To this:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”&gt;
    <web-app>

    Robbie

    #248027 Reply

    Riyad Kalla
    Member

    Robbie,
    Your taglib solution is a good one (mapping to a common URI) but your solution of changing the web.xml file means you changed the version of your app from J2EE 1.4 spec to 1.3 spec, be sure to let MyEclipse know you did that too by going to your navigator view and opening the .mymetadata file and changing the J2EE version from 1.4 to 1.3.

    #248030 Reply

    Riyad –

    OK, thanks for that.

    Robbie

    #259527 Reply

    alliance205
    Member

    @robbie@realise.com wrote:

    <taglib>
    <taglib-uri>http://jakarta.apache.org/struts/tags-bean</taglib-uri&gt;
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://jakarta.apache.org/struts/tags-html</taglib-uri&gt;
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>

    can you tell me why my eclipse does not recognize the <taglib> tag?
    whenever i add it to my web.xml, it says ” unknown element “taglib” ‘ … pls advise.. 🙁

    #259556 Reply

    Riyad Kalla
    Member

    Because with the new web 2.4 spec, you need to wrap your taglibs in jsp-config tags.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: problem in struts-tiles

You must be logged in to post in the forum log in