vinothkumarrvk 0 Newbie Poster

Friends what is the result/output for the following code in struts(example.jsp)

<% 
String linkDesc = "abc\ndef";
desc=linkDesc.toString();
%>

<bean:define id="descId" value="<%=desc%>"/>
<bean:write name="descId"/>

Please clarify me. Thanks in Advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.