• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display a property in JSP?  RSS feed

 
Siva gurun
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using Struts framwork.
In strutsconfig.xml, i'm forwarding a success page to one Jsp file.
In this Jsp file, I want to display the bean property, that whatever i'm setting in my Action file or Businesslogic file. This bean property is a XML content.
Now, I will be able to display through
<html:textarea property="beanPropertyName"/>

But, I dont want to display this property in text area. Because it should be in XML format. Moreover, I'm using iframe in initial jsp page.

If i use, <jsp:useBean.....>,
...
...
then,
<jsp:getProperty....">

it, is displaying null value.

Please, give me some solution for this.
 
Surya Kant
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you defined your bean in the request?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Siva gurun wrote:
I dont want to display this property in text area. Because it should be in XML format. Moreover, I'm using iframe in initial jsp page.


then where and how you want display. you question not clear .
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the View Source of the browser?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!