Is there a way to save a html link in a Java web application?

Hi,
We have a 3rd party web application that is developed in Java and data is stored in Oracle.  We have a need to have a live link for a data.  For one of the web page, it displays like a form and can click Edit to edit the content.  One of the field, We would like for it to be a link so when users click on it would open a new tab or navigate to that link url.  Is this something possible to be done by entering html tag with text?

Thank you.
lapuccaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gurpsbassiCommented:
<a onclick="window.open(theUrl, '_blank', 'location=yes,height=600,width=600,scrollbars=yes);">Click Me</a>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lapuccaAuthor Commented:
Sorry it took a while to get back to you, I was stuck working on something else.

The line of code you provided does work in a html page.  However, when I put it in a field on the form, submit to save it and it just display the text letter by letter.  The browser doesn't seem to translate it at all.  Any suggestions?

Thank you.
0
lapuccaAuthor Commented:
This is in Page Source,
<td colspan="7">&lt;a onclick=&quot;window.open(&#39;http://www.msn.com';, &#39;_blank&#39;);&quot;&gt;ClickMe&lt;/a&gt;</td>

What happened?  Any way to work around this?

Thank you.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

lapuccaAuthor Commented:
Here is the start of the page source code
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
0
gurpsbassiCommented:
hmm.
I am not able to reproduce your issue on my side.
I created a html page with the content you described and it renders fine. When I view the source it does not escape the html like you have shown.

Which browser and version are you using?
0
lapuccaAuthor Commented:
Firefox 38.5
Chrome Version 43.0.2357.124 m

i think the line of code you helped with is correct but maybe Oracle database of the Java application did something to remove the tag by transforming them.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.