Hi List,
its alwasy the same: You write your thoughts in a message for the list
and then, _after_ sending, youve got the righte idea:
Changing the mimetype to text/plan was the right choice:
---------------- snip -----------------------------
<%pre>
</%pre>
<%args>
</%args>
<%cpp>
reply.setContentType("text/plain");
</%cpp>
#!/bin/bash
echo Please choose a menu item
echo from the following points
read
exit
---------------- snip ----------------------------
Now the right result comes in the browser :-)
IMPORTANT NOTE: If you putting some empty lines in your ecpp-code (i.e. for
structuring) between the declaration areas, these line are sent in the
beginning of the file. Normally, this doesnt matter, but if you want to execute
the file (here: a bash script), the leading empty lines prevent execution,
because the needed shabang "#!" isnt in the first line as needed, so this wont
work:
---------------- snip -----------------------------
<%pre>
</%pre>
<%args>
</%args>
# here a empty line for better reading destroys "executionability" of script
<%cpp>
reply.setContentType("text/plain");
</%cpp>
#!/bin/bash
echo Please choose a menu item
echo from the following points
read
exit
---------------- snip ----------------------------
@Tommi: Maybe you want to enhance tntnet the stuctruring text wont be sent.
I.e. you could implement another tag in the kind of <%output> and </%output> or
<%html> </%html> for starting the html-area?
Regards,
Oliver
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general