This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See <jsp:param name="password" value="123456"/>
<jsp:param name="servername" value="example.com"/>
<jsp:param name="noCache" value="0900getobjecttest"/>
<jsp:param name="user" value="dmadmin"/>
What is actually being passed to the command shell is
C:\tomcat\apache-tomcat-7.0.25\plink.exe -pw 123456 email@example.com ". ~/.bash_profile ; echo -e 'dump,c,3d12d68a80000102' | iapi repo -Udmadmin -P"
If I run that from the command line the contents are displayed as expected. If I call the test-getunixobject.jsp from the browser nothing much happens... is there something very obvious here that I am missing?
Many thanks in advance...
It's not a servlet because java isn't my bag and doing it in jsp is easier for someone like me :)
I'll look into putting it into a class.
Apart from debugging.. I would like to know what you mean by "where it belongs"...
The problem was that since Tomcat was running as Default User, the remote server challenged for an RSA key - which it wouldn't normally do if Default User had previously logged into the Unix server. So I had to copy the rsa registry keys from
to bypass a challenge.
Unfortunately my Java skills are not exactly my "selling point" but I still had to solve an admin problem in the short term.
In the longer term, can you just advise me:
I had a look at servlet/RequestParamExample code and it seems to be a good starting point for building the class
Could I use my jsp forward to call the class with some params? I'm currently calling the JSP with Adobe FlashBuilder's HTTPService.