Forums

This topic is locked

Javabean property into java string

Posted 30 Aug 2002 11:22:33
1
has voted
30 Aug 2002 11:22:33 Erwin Hendriks posted:
In my webpage I like to give a String variable the value of a beanproperty. I have written the getProperty and SetProperty methods.
My problem is how to assign the beanproperty to the java string (between &lt;%....%&gt<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
&lt;jsp: getProperty /&gt;

In other words, how do I combine the Java and javascript?

Nakhba

Replies

Replied 30 Aug 2002 11:29:51
30 Aug 2002 11:29:51 Martha Graham replied:
Hi Nakhba,

Here is a link with a tutorial: java.sun.com/webservices/docs/1.0/tutorial/doc/JSPBeans5.html

I found another: www.javaworld.com/jw-03-2000/jw-0331-ssj-forms-p2.html

Maybe one of these or both are helpful to you.

Good luck.

Martha Graham
Dynamic Zones
Replied 30 Aug 2002 11:37:03
30 Aug 2002 11:37:03 Erwin Hendriks replied:
Dear Martha,

Thanks for your - very fast - reply; I'll check out the url's..

Nakhba
Replied 30 Aug 2002 11:45:08
30 Aug 2002 11:45:08 Erwin Hendriks replied:
This is what I am trying to do:

&lt;%
String Database_Name = &lt;jsp:getProperty name="DBConnectID" property="databaseName"/&gt;;
%&gt;

What is the correct syntax?
Replied 30 Aug 2002 11:46:40
30 Aug 2002 11:46:40 Erwin Hendriks replied:
This is what I am trying to do:

&lt;\%
String Database_Name = [jsp:getProperty name="DBConnectID" property="databaseName"/];
%\&gt;

What is the correct syntax?
Replied 24 Sep 2002 16:28:47
24 Sep 2002 16:28:47 Erwin Hendriks replied:
anyone?

Reply to this topic