Aaron Held wrote:
I like actions the way they are - they are very simple to understand.
If you have a hello "Aaron" type app its easy to setup a servlet like

def writeContent(self):
self.write('<form><input type="text" name="username"><submit name="_acctionHello"</form>');


def hello(self):
   self.write('Hello %s' % self.request().value('username','No User Name'))

Where it gets all annoying, though, is preAction and postAction, which are like an anemic form of the writeHTML, writeHead, writeTitle, writeStyleSheet etc. setup that Page has for normal requests. Or, where you don't want to write anything, but way to treat the action as an action (i.e., something that does something, not something that merely changes the display) -- there again preAction and postAction get in the way.


Ian


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to