• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp to run bash script.

 
jan miller
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been away from programming for a bit - working in middleware. Is there a way to run a bash script from a jsp page? Is there a tutorial anywhere that would lead me in the right direction to do this?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't be putting any Java code into a JSP page at this juncture.

If this must be done under control of a JSP (design red flag), then delegate the Java code to a custom tag or bean, within which you can use the normal Java exec mechanisms.
 
jan miller
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand your answer. I said nothing about java. Do I have this question in the wrong forum?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If all you wanted to hear was whether there were JSP mechanisms to do this, then: no.

If you also want to know how it can be done, that's what I provided.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!