Thank you very much ..... I am using servlets. Con you give me some
links on which servlets classes and functios are defined ....

Best Regards....
Salman Toor.

On 9/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear Salman,
>
> before anyone can really answer your question you need to decide if you
> are going to use servlets or psp to render your pages / process your
> content.  The webware docs are pretty good about telling you what
> functions do what and I think there is still a pretty good page showing
> you the basics of both psp and servlets.
>
> as for an IDE there are lots of very good python IDE's out there pick
> you favorite, if you don't have one give SPE a try (google SPE and
> python) I think its one of the best out there.
>
> on your form, if you leave the box unchecked I don't think anything will
> be sent in the get/post data for that variable, so you will first have
> to check to see if the variable exists in the get/post data.  I would
> suggest wrapping your variable assignment in either an if statement
> like:
>
> if 'Donit' in self.request().fields():
>     f1 = self.request().field('Donit')
> else:
>     f1 = None
>
> Or using a try statement:
>
> try:
>     f1 = self.request().fields('Donit')
> except:
>     f1 = None
>
>
> Both will work just fine
>
> Jose
>
>
> > -------- Original Message --------
> > Subject: [Webware-discuss] Question......
> > From: "Salman Toor" <[EMAIL PROTECTED]>
> > Date: Tue, September 05, 2006 8:26 am
> > To: webware-discuss@lists.sourceforge.net
> >
> > Hi I am salman Toor and i just started my thesis....... I have to use
> > python with webware ....... can any body guide me like how to i get
> > the information about the basic modules and the methods of python web
> > components ..... what is the good IDE to use Now i have a basic
> > problem ....
> >
> >
> > i want to handle a checkbox in a python script
> >
> > ********************************************************************
> > <form ......>
> > <input type="checkbox" name="Donit" >
> > .......
> > </form>
> >
> >
> > def func(self) :
> >         ................
> >         f1 = self.request().field('Donit')
> >          .......
> >
> > self.write(
> >
> > """<tr><th>Check_Box_Output</th><td>%s</td></tr> """" % (f1))
> >
> > **********************************************************************
> >
> > when i checked the checkbox it dose not give me error but if i do not
> > checked the check box it gives me error msg .....
> >
> > ********************************************
> > f1 = self.request().field('Donit')
> > KeyError: 'Donit'
> > ********************************************
> >
> > I know its a basic problem but i want to learn what function is for
> > what and how many functions are available in the classes that are for
> > this python web programming  ......
> >
> > Thankz in advance
> >
> > Best Regards....
> > Salman Toor..
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Webware-discuss mailing list
> > Webware-discuss@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to