Currently i am working on an issue where i need the value of a string in the JSP to display the data as simple text as well as link of the url where my value starts with the http://, though i have added .
For example if we have a string which contains a value in the action class is
If i have not interpreted it wrongly... then you need to display some text instead of those url and on click it should take you to the url mentioned. If this is the question then you should use. html anchor tag
Hope this helps
[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
Rajesh k Jha
Joined: May 10, 2009
This is not the exact case , Actually i want statement which is the combination of the simple text and url to be displayed in the JSP. I set the value of url inside the anchor tag in the action class
but when i display it in the JSP it displays like
'We can do something fruitful followin the link url <a<space>href='url'>http://abc.com</a> and then this will help further <a<space>href='url'>Again some textt</a> tag '
Struts tag is not able to parse the url from the value of the variable.
What tag are you using to put the text on the JSP? Some tags, like property, have an escapeHtml attribute, which determines if things like greater than and less than signs show up as text (escaped) or are written as-is to be interpreted by the browser.