To open it as a link the url should be appended by 'http://' before ur url. So check if ur url from db always returns after 'http://' so that you can append 'http://' string at the start.
Regards, --------------------------------------------------------- Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Rodney Dangerfield<http://www.brainyquote.com/quotes/authors/r/rodney_dangerfield.html> - "What a dog I got, his favorite bone is in my arm." On Thu, Jun 18, 2009 at 11:41 PM, riya <rachan...@gmail.com> wrote: > > Hi, > > I have this requirement where I have to get the URL from database and plug > this url in anchor from resource bundle. For eg: > > Database will give me: URL = www.google.com > and the key in bundle: search_key = {0} Find it here > > > Lets say n JSP > <% > url = "www.google.com" ; --> This i'll get from database > %> > > <bean:message bundle="AgrSales" key="oss.test" arg0="<%= url>"/> > > But this does not work. Link that I get in UI opens > http://localhost:8080/www.google.com. > > I even tried to return the content from java class only by using > MessageFormat class. But it behaves in similar manner. > > Please help to get it done. > > Thanks for reading the post! > > > > -- > View this message in context: > http://www.nabble.com/%3Cbean%3Amessage%3E-question-tp24095363p24095363.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >