Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using java.lang.System properties in JSP

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Can i use system.getProperty() inside servlets/JSP??

 
Anurag Blore
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use java.lang.System class anywhere wherever you can write Java code. In jsp you should use scriptlets to wrote java codes but its not reccomendd to use java code inside jsp. In servlet you can use.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely you can use it in servlets. Technically you can also use it in JSP, but there it is not for.

What's the problem you having then?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic