facebook

JSP problem with tpl:insert

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #289114 Reply

    ikb
    Participant

    We’ve migrated from WS Site Developer 5.1.2 to MyEclipse Blue 6.5, and we have a problem with JSPs.
    The tpl:insert tag doesn’t work as it should. The problems are:

    [list=]Developer shoudn’t be able to modify the content inside tpl:insert tag, right now it is possible[/list][list=]dfd[/list]

      rer

    [list=2]erer[/list]

    #289115

    ikb
    Participant

    Sorry, wrong click! 🙂 The upper post can be deleted.

    We’ve migrated from WS Site Developer 5.1.2 to MyEclipse Blue 6.5, and we have several problems with JSPs.
    The tpl:insert tag doesn’t work as it should. The problems are:

      Developer shoudn’t be able to modify the content inside tpl:insert tag, right now it is possible
      When you modify the JTPL template file, it should change all JSPs that include that template.

    A JSP should look like this:

    <%-- tpl:insert page="/template.jtpl" --%>
    
    <!-- code that shouldn't be changeable directly from JSP,
    instead only directly in JTPL file -->
    
    <%-- /tpl:insert --%>
    
    <!-- Here goes our JSP code -->

    Is there a way to solve this, but not having to rewrite JSPs to use jsp:include tag?

    Thanks,
    Davor

    #289179

    Loyal Water
    Member

    I believe using jsp:include is the only way of going about things here. You will have to add the jsp:include tags to include the jsps on all pages.

    #289304

    ikb
    Participant

    thanks,

    I was afraid of that.

    #289318

    Loyal Water
    Member

    Your welcome.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSP problem with tpl:insert

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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