Home Tutorialhelp Comment How can I declare property as variable element?

 
 

Comment

Delplanque Renaud
How can I declare property as variable element?,
September 20, 2010 at 5:18 PM

Hello everybody,
I would like to set the 'property' attribute with a variable element.
Ex:
* this works well (but hard coded)
<bean:define id="blocAR6" name="hmp" property="TDV136" />
* I would like to use a retrievd from bean value as 'property' attribute. ( <nested:define id="idAR" property="idBlocAR" /> this line is OK) but I can not set it nor by
...property="idAR"...
neither by ...property="<nested:write name="idAR" />"...
neither ...property="${idAR}"...

Which grammar can I use ? I would like avoid Java inclusion (<%=...%>) in JSP.
This is a struts1 project.

Thanks for any help you may provide.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts 1 Tutorials

Define Tag:
 

Struts Questions

How to Assign struts2 property to jsp variable
 

Struts Questions

How to Assign struts2 property to jsp variable
 

JSP Servlet Questions

Assign value from a <bean:write> tag to a variable
 

Framework Questions

struts1 - Framework
 

Java Beginners

Declare Reference variable
 

Struts 1 Tutorials

Cookie Tag:
 

Struts Questions

struts property file query
 

Struts Questions

Java struts variable valu - Struts
 

JSP Tutorials

JSP bean get property
 

Struts 1 Tutorials

Parameter Tag:
 

JSP Servlet Questions

Assigning a value to JSP variable from a bean class. - JSP-Servlet
 

Struts 1 Tutorials

Header Tag:
 

Struts Questions

using struts1 and struts2 in one application - Struts
 

Struts Questions

Passing a java property to a javascript variable
 

Mobile Applications Questions

cannot declare variable inside @interface or @protocol
 

Struts Examples

Struts1 vs Struts2
 

Struts 2 Tutorials

Example of struts2.2.1 bean tag.
 

Struts Questions

struts html tag - Struts
 

PHP Questions

define string variable in php
 

Java Beginners

Can we declare a static variable inside a method?
 

Spring Framework Questions

How can I call a Servlet that is declare on web.xml with spring framework
 

PHP Questions

php define variable
 

Struts Examples

Struts Tag:
 

Java Beginners

how can i define only one method from the interface. - Java Beginners
 

Mobile Applications Questions

add a property to instance variable
 

Struts 2 Tutorials

Struts2.2.1 property Tag Example
 

Struts Questions

how can i hide and show tables
 

Mobile Applications Questions

objective c define float
 

Struts 2 Tutorials

Property Tag (Data Tag) Example
 

Struts Examples

Struts Interview Questions
 

Java Beginners

How to define a constant variable in Java?
 

Struts Examples

Logic Equal Tag (<logic:equal>...</logic:equal>)
 

Struts Questions

Diff between Struts1 and struts 2? - Struts
 

JSP Interview Questions

Struts - JSP-Interview Questions
 

JavaScript Questions

javascript where to declare variables
 

Struts Examples

Struts nested tag Example
 

Apache Velocity

How to define variable in Velocity
 

PHP Tutorial

PHP Variable Outside Function
 

Struts Questions

In Struts 2 how to pass the <s: property value=''
 

Struts Questions

how to validate duplicate records in struts1
 

Struts Questions

how to validate duplicate records in struts1
 

Struts Examples

Logic LessEqual Tag (<logic:lessEqual>...</logic:lessEqual>)
 

JSF Tutorials & Examples

Binding the Form Elements With the Bean Properties
 

Struts Examples

Logic greaterEqual Tag (<logic: greaterEqual>... </logic:greaterThan>)
 

Struts 1 Tutorials

Struts 1.1 Tutorials
 

JSP Servlet Questions

how to Use jsp:setProperty to set one bean in other bean while to be set bean is of type java.util.List<beantype>
 

Struts Questions

action tag - Struts
 

Struts Examples

Logic Present Tag (<logic:equal>...</logic:equal>)
 

Struts Examples

Logic Match Tag (<logic:match >...</logic:match >)
 

Struts Questions

How to Use Struts 2 token tag - Struts
 

Struts Questions

Form Bean - Struts
 

Struts Questions

How to handle the list dynamically in struts inside logic:iterate tag
 

PHP Questions

Declare construct
 

Struts 2 Tutorials

Bean Tag (Data Tag) Example
 

SQL Tutorial

Use DECLARE Statement in Procedure
 

General

An Entity Bean Example
 

Mobile Applications Questions

How to declare NSMatrix
 

Java Beginners

declare a variable that will store an array of 5 objects
 

General

How to declare String array in Java?
 

JSF Tutorials & Examples

Declaring the Bean class in the faces-config.xml file
 

Struts Questions

Struts Tag Lib - Struts
 

Struts Questions

Struts tag - Struts
 

Struts 2 Tutorials

Struts2.2.1 param Tag Example
 

Java Beginners

How can I Define a JFrame subclass that has four vertically positioned buttons. - Java Beginners
 

Struts 1 Tutorials

BeanPage Tag:
 

JSP Tutorials

JSP bean set property
 

MySQL

Mysql Declare Procedure
 

Mobile Applications Questions

@property nsinteger
 

Java Server Faces - JSF

Facelet define Tag
 

Java Beginners

Application Variable
 

Struts Examples

Logic Empty Tag (<logic:empty>...</logic:empty>)
 

Struts Questions

How to check a checkbox - Struts
 

Struts Questions

Multibox property - Struts
 

Blog

Struts Quick Start
 

Ajax Questions

Can I pass a
 

JSF Tutorials & Examples

Managing Bean Example
 

Struts-Tutorials

Aggregating Actions In Struts Revisited
 

JSP Tutorials

Getting a Property value in jsp
 

PHP Questions

define a constant.
 

General

A Message-Driven Bean Example
 

Java Beginners

I don't know how to use counter variable in this Qustion ....:(
 

Struts 1 Tutorials

Struts 1 Tutorial and example programs
 

PHP Tutorial

PHP Variable variables
 

JSP Tutorials

Method in Declaration Tag
 

Struts Questions

how can i get output pls urget tell me
 

PHP Questions

How to Declare Abstract Class in PHP ?
 

Programming Tutorials

Display Current Date using JSP Custom(user define) Tag
 

Struts Questions

struts
 

Struts Examples

Logic Present Tag (<logic:present >...</logic:present >)
 

JSF Tutorials & Examples

Tomahawk inputCalendar tag
 

Struts Questions

jsp request in struts1
 

Struts Questions

Struts - Struts
 

Spring 3

SPEL-System Property
 

PHP Questions

How to Declare fflush() Function in PHP
 

JSP Tutorials

Struts DynaActionForm
 

Flex Questions

MXML variable
 

Blog

Sitemap Struts Tutorial
 

JSP Servlet Questions

I need jsp code for how to write text field value into property file.
 

JSF Tutorials & Examples

Binding Component Instance to a Bean Property
 

Advertisements Advertisements
 

 

 

DMCA.com