cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Parser -- TextView / response.write

Former Member
0 Kudos

Hi All,

I am using a HTML parser to read a HTML file and display data

in JSP Dynpage using "response.write" and "Text View" - Data is being displaying as follow:

JSP DYNPAGE u2013 textView / textEdit



<P class=MsoNormal><SPAN lang=EN-US style="mso-ansi-language: EN-US">
First step to create a portal component is to define
 a class that works as loader class - it inherits from
 the </SPAN><SPAN class=ScreenOutput><SPAN lang=EN-US style="mso-
ansi-language: EN-US; mso-bidi-font-family: Arial"><FONT face="Courier 
New">PageProcessorComponent</FONT></SPAN></SPAN>
<SPAN lang=EN-US style="mso-ansi-language: EN-US">. The 
created loader class (in the following example named </SPAN>
<SPAN class=ScreenOutput><SPAN lang=EN-US style="mso-
ansi-language: EN-US; mso-bidi-font-family: Arial"><FONT face="Courier 
New">ExampleOneDyn</FONT></SPAN></SPAN><SPAN lang=EN-US
 style="mso-ansi-language: EN-US">) executes the method 
getPage() and returns a unique value of the JSP DynPage we can use
 (in the following example named  </SPAN><SPAN 
class=ScreenOutput><SPAN lang=EN-US 
style="mso-ansi-language:
 EN-US; mso-bidi-font-family: Arial"><FONT face="Courier 
New">DynPageOne</FONT></SPAN></SPAN>
<SPAN lang=EN-US style="mso-ansi-language: EN-US">).</SPAN></P>

Request your guidance to display data properly using Text View Element (Without the HTML Tage) in JSP Dynpage

response.write

 
First step to create a portal component is to define a
class that works as loader class - it inherits from the 
PageProcessorComponent. The created loader class
 (in the following example named ExampleOneDyn) 
executes the method getPage() and returns a unique
 value of the JSP DynPage we can use
 (in the following example named DynPageOne).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think there is a method of the TextView (javadoc here: [http://help.sap.com/javadocs/nw04s/current/hb/com/sapportals/htmlb/TextView.html|http://help.sap.com/javadocs/nw04s/current/hb/com/sapportals/htmlb/TextView.html]) called

setEncode(boolean encode)

When you set it to false, the text should not be encoded...

hope this helps,

Romano

Former Member
0 Kudos

hi Romano

You are a STAR.............

Many Thanks for your guidance, I had also tried the same earlier but was getting error message as shown below:

Caused by: com.sapportals.portal.prt.servlets_jsp.server.jsp.ParseException:

Attribute 'enabled' not found in tag library 'HTMLB' for the tag textView.

After looking at your reply, I recheck and found the syntax provided at [Text View|http://help.sap.com/saphelp_nw70/helpdata/en/84/230a415a47f06fe10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/84/230a415a47f06fe10000000a1550b0/frameset.htm]

in Usage table is wrong enabled="FALSE", right syntax is encode = "false".

Many Thanks, FULL Points provided

Regards,

Sushil

Former Member
0 Kudos

;o)

Former Member
0 Kudos

Hi Romano,

I have a query regarding usage of the <span> tag in jsp.

I have a working code for a DynPage

<span>

<img src="_images/img.gif" id="personid1"/>

<scrpt>JSfunction(document.all.personid1, 'someEmailAddr');</scrpt>

</span>

(Modified the script tag since wasn't able to post message with the entire name)

JSfunction is a JavaScript file: inputs - id if the image to be modified, email addres.

I need to get this functionality into the MastHead which is a JSPDynPage.

Is there a similar code with JSP which performs a similar task. I need to map this code to JSP.

Also is it possible to include HTML content & JavaScript within WebDynpro code

Thanks in advance,

- Brian

Answers (0)