Mufaddal Khumri wrote:

There are some cases where this is unavoidable and I was wondering if there was a way to do something like below in a .java file:

public class MyServlet extends ....
{
    ....
    ....

    doPost( ... )
    {
        .....
        .....

<Some kind of tag that signals to the compiler that whatever follows is to be "out.println(... )" >

If you just want to keep your doPost and doGet methods clean, why not create a static method that simply returns a giant string and then use that method in your doGet or doPost method. Doing this has its own overhead, however, since there's extra processing going on, but it's probably not that bad if you really need this convenience.



Erik



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to