This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

embedding style tag in java syntax

 
gradnash nash
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I would like to know whether there is any way for me to embed a style in java like

ifPrint() {
<style> noprint.display:none; </style>
}


Is this possible, please let me know.

Thanks,
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you perhaps talking about *Javascript*?
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or JSP (java server pages)?

you cannot embed anything in your java-code which is not java syntax. but that's obvious ;-)

what you can do is mixing java-code with markup code, which assumes that you are working in a servlet environment. in this case you have to mark the source code (usually a jsp-page) which section contains the markup code (usually html)






[/CODE]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic