MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to General Development
View previous topic Printable version Log in to check your private messages View next topic
Author Message
arjan.tijms
Post subject: jsp:attribute not recognized by jsp validator  PostPosted: Aug 30, 2006 - 11:03 AM
Registered Member
Registered Member


Joined: Mar 15, 2004
Posts: 185

We're having a lot of pages on which we make use of a custom tag. This custom tag has an attribute that takes an XML fragment. Since this fragment is typically multiple lines, we use the jsp:attribute syntax for this.

However, the <jsp:attribute> tag, which is part of the JSP 2.0 spec, does not seem to be supported by your JSP editor. it gives the message: "Unknown tag (jsp:attribute)."

Is there any plan to add support for <jsp:attribute> ?

Thanks a lot in advance

PS

See http://java.sun.com/products/jsp/syntax/2.0/syntaxref2014.html for details about jsp:attribute.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Aug 31, 2006 - 01:31 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Arjan,
Can you post a snippet of code as an example? You are correct that JSP 2.0 support is not completely there yet, sorry.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
henk
Post subject:   PostPosted: Aug 31, 2006 - 09:45 PM



Joined: Dec 15, 2003
Posts: 158

Riyad,

We're having this problem to. I can reproduce this quite easily. jsp:attribute is a -direct- alternative for any atribute on any taglib tag. So, if I just take the example from my other post where I created a new web project and did nothing but add a test file, and change a random tag attribute in jsp:attribute, the validation warning appears:

Code:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html> <body>
   <f:view>      
      <f:loadBundle var="msg">
         <jsp:attribute name="basename" >test.bundle</jsp:attribute>
      </f:loadBundle>         
            
      <h:outputText value="#{msg.bla}"  />
   </f:view>
   </body>
</html>


This will give you the unknown tag warning again, while it runs perfectly in Tomcat and other servlet containers.

The original (equivalent) code is:

Code:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html> <body>
   <f:view>      
      <f:loadBundle var="msg" basename="test.bundle" />         
            
      <h:outputText value="#{msg.bla}"  />
   </f:view>
   </body>
</html>
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits