I want to create a cron job, which executes a .jar every week. This jar is supposed to query a MySQL server and save the values. That's the easy part which i can easily do. But now I need to open a web page and enter 2 values in text boxes and after that press a button. Can it be done without any need of GUI? Is it possible to accomplish this with pure java? If yes, any suggestions on how to insert the values? Which library would simplify that task? Thanks in advance. (I would prefer to use no library if its possible). I have to enter these 2 textfields and then press the send test email to
button
Or would a PHP-Script be better suited for this?
Code of the webpage:
<body>
<form id="j_id2" name="j_id2" method="post" action="/SchnitzelDB/app/mail;jsessionid=BCF1C0890EE83C0C7A4B7B916F4360A2?execution=e1s4" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_id2" value="j_id2" />
<table>
<tbody>
<tr>
<td><input type="text" name="j_id2:j_id4" value="9" /></td>
<td><input type="submit" name="j_id2:j_id5" value="Send Email" /></td>
</tr>
<tr>
<td><input type="text" name="j_id2:j_id6" value="email" style="width:200px;" /></td>
<td><input type="submit" name="j_id2:j_id7" value="Send Test Email To" /></td>
</tr>
</tbody>
</table>
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="e1s4" />
</form>
</body>