RE: How to allow users enters html links in text input area and h ow t o display it
Thanks for your help Bill -Amar -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Tuesday, August 03, 2004 11:54 AM To: [EMAIL PROTECTED] Subject: Re: How to allow users enters html links in text input area and h ow t o display it Well, text in a text area is not HTML markup -- it's just text -- to render the links you will have to output the data using bean:write filter="false" -- since you need to preserve line breaks take a look at this thread http://marc.theaimsgroup.com/?l=struts-user&m=106685398105831&w=2 Good Luck! Bill Jirole, Amar wrote: > We are displaying the text in text area as well. The reason we are > doing this is we want to preserve para and other formatting info which > gets lost in plain bean:write > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow > Sent: Tuesday, August 03, 2004 10:03 AM > To: [EMAIL PROTECTED] > Subject: Re: How to allow users enters html links in text input area > and h ow t o display it > > > Hmmm -- if a user enters the following into the text area: > > My favorite site is Struts > > Then you render this using it should > work. > > If the users are just entering the URLs (the http://... part) then you > will need to generate the " > Jirole, Amar wrote: > > >>The links are displayed as plain text and nothing happens when I click >>it (of course because its treated as plain text) >> >>-Original Message- >>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow >>Sent: Tuesday, August 03, 2004 9:37 AM >>To: [EMAIL PROTECTED] >>Subject: Re: How to allow users enters html links in text input area >>and how t o display it >> >> >>Jirole, Amar wrote: >> >> >> >>>Hi All, >>>Our users would like to enter urls in the text input area and when >>>click the link bring up the page. I tried using filter="false" for >>>bean:write but that did not work. We use simple struts-jsp >>>architecture. Any ideas? Thanks in Advance -Amar >> >>I have done this before without issue -- please clarify "did not work" >>-- also, take a look at the page source of the generated page -- this >>should clue you in to what is happening. >> >>Bill Siggelkow >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to allow users enters html links in text input area and h ow t o display it
Well, text in a text area is not HTML markup -- it's just text -- to render the links you will have to output the data using bean:write filter="false" -- since you need to preserve line breaks take a look at this thread http://marc.theaimsgroup.com/?l=struts-user&m=106685398105831&w=2 Good Luck! Bill Jirole, Amar wrote: We are displaying the text in text area as well. The reason we are doing this is we want to preserve para and other formatting info which gets lost in plain bean:write -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Tuesday, August 03, 2004 10:03 AM To: [EMAIL PROTECTED] Subject: Re: How to allow users enters html links in text input area and h ow t o display it Hmmm -- if a user enters the following into the text area: My favorite site is Struts Then you render this using it should work. If the users are just entering the URLs (the http://... part) then you will need to generate the " Jirole, Amar wrote: The links are displayed as plain text and nothing happens when I click it (of course because its treated as plain text) -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Tuesday, August 03, 2004 9:37 AM To: [EMAIL PROTECTED] Subject: Re: How to allow users enters html links in text input area and how t o display it Jirole, Amar wrote: Hi All, Our users would like to enter urls in the text input area and when click the link bring up the page. I tried using filter="false" for bean:write but that did not work. We use simple struts-jsp architecture. Any ideas? Thanks in Advance -Amar I have done this before without issue -- please clarify "did not work" -- also, take a look at the page source of the generated page -- this should clue you in to what is happening. Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to allow users enters html links in text input area and h ow t o display it
We are displaying the text in text area as well. The reason we are doing this is we want to preserve para and other formatting info which gets lost in plain bean:write -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Tuesday, August 03, 2004 10:03 AM To: [EMAIL PROTECTED] Subject: Re: How to allow users enters html links in text input area and h ow t o display it Hmmm -- if a user enters the following into the text area: My favorite site is Struts Then you render this using it should work. If the users are just entering the URLs (the http://... part) then you will need to generate the " The links are displayed as plain text and nothing happens when I click > it (of course because its treated as plain text) > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow > Sent: Tuesday, August 03, 2004 9:37 AM > To: [EMAIL PROTECTED] > Subject: Re: How to allow users enters html links in text input area > and how t o display it > > > Jirole, Amar wrote: > > >>Hi All, >>Our users would like to enter urls in the text input area and when >>click the link bring up the page. I tried using filter="false" for >>bean:write but that did not work. We use simple struts-jsp >>architecture. Any ideas? Thanks in Advance >>-Amar > > I have done this before without issue -- please clarify "did not work" > -- also, take a look at the page source of the generated page -- this > should clue you in to what is happening. > > Bill Siggelkow > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to allow users enters html links in text input area and h ow t o display it
Hmmm -- if a user enters the following into the text area: My favorite site is Struts Then you render this using it should work. If the users are just entering the URLs (the http://... part) then you will need to generate the " Jirole, Amar wrote: The links are displayed as plain text and nothing happens when I click it (of course because its treated as plain text) -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Tuesday, August 03, 2004 9:37 AM To: [EMAIL PROTECTED] Subject: Re: How to allow users enters html links in text input area and how t o display it Jirole, Amar wrote: Hi All, Our users would like to enter urls in the text input area and when click the link bring up the page. I tried using filter="false" for bean:write but that did not work. We use simple struts-jsp architecture. Any ideas? Thanks in Advance -Amar I have done this before without issue -- please clarify "did not work" -- also, take a look at the page source of the generated page -- this should clue you in to what is happening. Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to allow users enters html links in text input area and h ow t o display it
The links are displayed as plain text and nothing happens when I click it (of course because its treated as plain text) -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Tuesday, August 03, 2004 9:37 AM To: [EMAIL PROTECTED] Subject: Re: How to allow users enters html links in text input area and how t o display it Jirole, Amar wrote: > Hi All, > Our users would like to enter urls in the text input area and when > click the link bring up the page. I tried using filter="false" for > bean:write but that did not work. We use simple struts-jsp > architecture. Any ideas? Thanks in Advance > -Amar I have done this before without issue -- please clarify "did not work" -- also, take a look at the page source of the generated page -- this should clue you in to what is happening. Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]