File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Urgent ! Sending text as a Link into database. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Urgent ! Sending text as a Link into database." Watch "Urgent ! Sending text as a Link into database." New topic

Urgent ! Sending text as a Link into database.

Vikram Virk

Joined: Mar 13, 2006
Posts: 8
I have developed a news application in which a user can post new news with title,description and an image upload.I can approve the news and user then can see the approved news.
Now the problem is if the userputs some link like more on in description text area,then it goes like a text and get displayed as a text.I want to see the link on approved news page,How should I do that.
Do i need to add a new section in post news to post the links.Also how links will get stored in database.I am using MySQL.
Thanks a lot!
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You can store the link in the database as html text, for example:

<a href=""></a>

You can then display it using a <bean:write> tag as long as you specify filter="false". This tells struts not to filter out or escape html tags found in the text.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Urgent ! Sending text as a Link into database.
Similar Threads
Specific format on a first post.
how they create?
help me out please!!!!
Dynamically update Datatable
Quick redeployment of web sites.