Post Processing Tags

Post Processing Tags.

I am making use of a markup tag library called the WALL. Specfically used for Wireless Applications.

You dont really need to have any knowledge of the WALL except to know that what it does is simply

create the correct Markup language for a mobile browser allowing you to have one set of code to use on many mobile

hadnset browsers

e.g.

<wall:b> Hello </wall:b>

Would render on a regular HTML browser as

<b> Hello </b>

Now the requirement I have is I would like to store certain text along with the specfic markup in the java class.

e.g.

public class info()

{

public String getInfo()

{

return "<wall:b> Hello </wall:b>";

}

}

So for example I would have a function that I would call from JSP that would return this value

${info.hello}

will return

<wall:b> Hello </wall:b>

What I actually want is that this value that gets returned gets processed by the JSP engine

effectively processes the wall tags so that it returns

<b> Hello </b>

and not

<wall:b> Hello </wall:b>

[1225 byte] By [lipskaa] at [2007-11-27 6:42:49]
# 1

I think its not possible if I understand you correctly. I think the JSP code needs to be at compile time, not runtime. Unless you want to get very fancy and call the JSP compiler API or something. One thing you can do is in the EL function, or in the map (which can be an anonymous inner class), just instantiate and invoke whatever class is attached the wall.b tag. Set the body as a setter or something, set the page context, and call doTag(), and it will print <b>Hello</b>

Chris

mchyzer1a at 2007-7-12 18:13:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...