Firec Wang

Greenhorn
+ Follow
since Apr 01, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Firec Wang

Yes, it works.

Thanks.
11 years ago
JSP
Thanks Bear.

I am migrating a very old project to a new one, but I am not planning to modify so much codes. I was trying to find some easy way to deal with this.
Thanks for your advice; it seems I have to change the code. I will discuss it with my team.

I used to use the '<font>' tag to do some test, thanks for reminder, I will change it to another way.

This is a very useful website to find answers. And I will keep on asking questions here.

Thanks.
11 years ago
JSP
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.


11 years ago
JSP