File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Problem using anchor tag with link stored in db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem using anchor tag with link stored in db" Watch "Problem using anchor tag with link stored in db" New topic
Author

Problem using anchor tag with link stored in db

Raistlin Zischer
Greenhorn

Joined: Jul 05, 2005
Posts: 25
OK there's the situation. In the database I'm using the user of my webapp can submit a link to the article they are currently studying. I want my webapp to be able to link them to their article. So, on the display page that calls the data from the db is using an standard anchor tag to display it.

Here's the problem. Sturts parses the anchor tag and puts my webapp's main address in front of whatever I load from the db. This causes the link to fail everytime, even when the link in the db contains the full link (http://....).

Any help would be greatly apprepiated....
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem using anchor tag with link stored in db
 
Similar Threads
Anchor tag calling Javascript function
Displaying images on JSP page
problem with anchor tag
html escape chars on page rendering
jsp as a frame in jsp