I can't do it, because appengine web.xml tells that it has 2.3 dtd
version.
And it's impossible to use 2.4 version in java appengine env.
I will try these solutions http://forums.sun.com/thread.jspa?threadID=625802
found on forum.sun.com

P.S.
Configuration is bad. Convention is better...(

On Jun 21, 7:44 pm, "Serega.Sheypak" <serega.shey...@gmail.com> wrote:
> Hello. I have a problem writing custom jsp-tag with attr which accepts
> EL (ExpressionLanguage).
>
> Here is the LTD:
> <?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/j2eeweb-
> jsptaglibrary_2_0.xsd">
>
>         <tlib-version>1.0</tlib-version>
>         <short-name>PrizeTags</short-name>
>         <uri>PrizeTags</uri>
>
>         <tag>
>                 <name>error</name>
>                 <tagclass>ru.develbureau.server.tag.OutTag</tagclass>
>                 <bodycontent>empty</bodycontent>
>                 <info>Prints if something exists</info>
>                 <attribute>
>                         <name>value</name>
>                         <required>true</required>
>                         <rtexprvalue>true</rtexprvalue>
>                 </attribute>
>         </tag>
>
> Here is the Tag code:
> public class OutTag extends SimpleTagSupport{
>         private static final long serialVersionUID = 1L;
>         String val = null;
>
>         public void doTag() throws JspException {
>                 try{
>                         PageContext pageContext = (PageContext) 
> getJspContext();
>                     JspWriter out = pageContext.getOut();
>                         if(val!=null){
>                                 out.println(val);
>                                 System.out.println("val -> ["+val+"]");
>                         }
>                 }catch (Exception e) {
>                         System.out.println("doStartTag -> 
> ["+e.getMessage()+"]");
>                 }
>         }
>
>         public void setValue(Object value){
>                 System.out.println("setValue -> ["+value+"]");
>                 if(value!=null && value instanceof String){
>                         String t = (String)value;
>                         if(t.trim().length()>3){
>                                 val = t;
>                         }
>                 }
>         }
>
> }
>
> Here is the putput:
> setValue -> [${pageScope.clientRequest.name}]
> val -> [${pageScope.clientRequest.name}]
>
> setValue -> [${clientRequest.name}]
> val -> [${clientRequest.name}]
>
> So it doesn't want to EVAL incomming EL
>
> Here is the usage:
>   <jsp:useBean id="clientRequest"
>                            scope="page"
>                            type="ru.develbureau.client.model.ClientRequestTO"
>                            
> class="ru.develbureau.client.model.ClientRequestTO">
>         <jsp:setProperty name="clientRequest" property="*" />
>   </jsp:useBean>
>
> <!-- some code...-->
> <input type="text" class="wideInput" name="name" value="<prize:out
> value="${pageScope.clientRequest.name}" />"/>
> OR
> <input type="text" class="wideInput" name="name" value="<prize:out
> value="${clientRequest.name}" />"/>
>
> NOTHING HELPS.
>
> It just prints ${clientRequest.name}. It doesn't want to EVAL expr.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to