Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Useing Constants in Tag's

Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code in my jsp like this.
<html:select property="releaseName" onchange="setTask(this.form, 'Testing')">
<html ptionsCollection property="releases"
value="releaseName" />
My java scrip sets the value for hidden field as 'Testing'. I am trying to use Constants to replace this.
I tried like this and it is passing whole thing as string 'Constants.TASK_TESTING'.
<html:select property="releaseName" onchange="setTask(this.form, 'Constants.TASK_TESTING')">
Quick! Before anybody notices! Cover it up with this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic