Hi,
I meet a problem which drive me mad for migrating my application from WAS to tomcat6.0/7.0.
I write a custom tag, it is very easy as: out.write("<font color='red'>"+v+"</font>");
when I try to put it in the JSP file as: <mytag:pager v="<%=request.getContextPath()%>/121" />. It can not work.
the error message is: org.apache.jasper.JasperException: /WEB-INF/jsp/demo/index.jsp(51,52) attribute for %>" is not properly terminated.
however if I change the way for my tag as:<mytag:pager v="/<%=request.getContextPath()%>/121" />. I can see the UI but not correctly, the JSP command does not work. It just print '//121' but the value should be '//MyTest/121'.
I tried several times with different way to use my tag, the result are:
1.<mytag:pager v="<%=request.getContextPath()%>" />. It can work correctly.
2.<mytag:pager v="/mytest/121" />. It can work correctly.
3.<mytag:pager v="<%=request.getContextPath()%>/121" />. It can not work correctly.
4.<mytag:pager v="/<%=request.getContextPath()%>/121" />. It can not work correctly.
It seems I can not use Jsp command & HTML content together.
How can I make this can be used? Because it works in WebSphere.