I haven't found an answer on this pages... Yet...
In the FCKeditor if I add anchor link it generates <a href="#anchor">link</a> and this on the page looks like a link on layout.jsp#anchor (I am using tiles). This leads to an error, because it isn't forwarded on any action.
It should add a link to current action, for example <a href="/action.do?params=something#anchor">link</a>.
Does anybody have any idea how to correct this??
In the FCKeditor if I add anchor link it generates <a href="#anchor">link</a> and this on the page looks like a link on layout.jsp#anchor (I am using tiles). This leads to an error, because it isn't forwarded on any action.
It should add a link to current action, for example <a href="/action.do?params=something#anchor">link</a>.
Does anybody have any idea how to correct this??
Re: Struts 1 and anchor links
Re: Struts 1 and anchor links
I have found a solution, but its a workaround... One recursive function, which will go through text and replace all links which are type "<a href="#something">" with "<a href="action.do#something">. I will post the code, when it will be finished.
Re: Struts 1 and anchor links
I have never said that the user has to know HTML. If you have read my post more thoroughly you would have noticed that I have mentioned a server-side solution.
Re: Struts 1 and anchor links
I have this on my news lists for now, so next workaround works:
Re: Struts 1 and anchor links
Re: Struts 1 and anchor links
Re: Struts 1 and anchor links
You can have:
or you can have:
both are the same but your replaceAll won't match the second example because it has (\r)\n between tag name and href attribute.
Do you see the point now?
Re: Struts 1 and anchor links
Yes I do. That's why I am doing on a special "unbreakable" function