Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 5th, 2006, 02:27 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default can we do dynamic getProperty name in jsp?

hi,
I have code like this..
<jsp:getProperty name="emp" property="NAME"/>
<jsp:getProperty name="emp" property="ADDRESS"/>
<jsp:getProperty name="emp" property="SALARY"/>
etc. Where NAME,ADDRESS,SALARY are the column names of my table. Is it possible to write this code dynamically? like i have taken names of columns, now how to write the property=""?
I have tried like this
<jsp:getProperty name="emp" property="<%=labels[k]%>"
but it is giving error.
please help me....





Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic jsp tree from database anubhav JSP Basics 1 March 12th, 2011 01:12 AM
Creating Dynamic Menu in JSP rama26 J2EE 1 January 13th, 2010 09:13 AM
Dynamic values stored in a select button using JSP dhruthi.ram99 Pro JSP 1 May 28th, 2007 07:33 AM
Dynamic table on specific height of JSP page shoaibkhan2000 Pro JSP 0 August 1st, 2006 06:15 AM
creating dynamic menu in jsp geethagowri J2EE 2 April 15th, 2006 01:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.