> > This has always been one of my biggest complaints with aolserver.
> When you have to output html conditionally in adp pages, you have to
> > backslash everything to keep tcl from choking on it.
>
> Or, you can use [subst].
>
> > It's just this sort of problem that makes me wonder if the people
> > building aolserver ever actually USE aolserver to build web
> > applications. It seems like not that big of a deal . . . until you
> > realize that we do this ALL THE TIME.
>
> What, use AOLserver to build web applications? :-)
First off, let me apologize for choosing such a bad example---obviously,
this could have and should have been refactored. I chose the first
example I found and didn't take a close look at it.
My point remains every bit as valid though--I think we can all agree
that keeping html and tcl code separate as much as possible is a good
idea. Of course, there are multiple ways to do that, but the
convention I described is a VERY commonly accepted way to do that and
it's supported by almost every other web server out there. If you
don't like it personally, that's fine, but I'm not automatically evil or
incompetent for wanting to do so.
In my particular case, the syntax I've described would be very useful.
I don't want to have to write a whole library of tag shortcuts, nor do
I want a whole templating language. I just want to minimize the amount
of tcl code in my html pages.
I believe strongly that a good tool supports the way you work and that a
bad tool forces you to do things "it's way". IMHO, AOLserver tends to
fall more in the latter camp.
As it happens, no, I don't have as much experience in TCL as I do in
other languages, and quite frankly, I use AOLserver because I'm forced
to, not because I want to. But having said that---isn't it better for
AOLserver to support more standardized ways of doing things? I've been
building web apps for 7 years now and built a number of sites that
handle millions of users a day---I'm no tcl expert, but I'm hardly an
amateur. (And no, just for the record, I do NOT come from an ASP
background--I'd slit my wrists first.)
Finally, I do apologize if I offended anyone with my comment about the
developers not using aolserver . . . but I do stand by it. I've spent
the past year working with AOLserver after years of working in other
environments, and quite frankly, it hasn't been very much fun. The
documentation is incomplete, AOLserver has numerous idiosyncracies,
there are quite a few features I miss from other platforms . . . and God
help you if you voice a contrary opinion on this listserv.
:-)
My 2cents--
IRA
>
> > Here's an example from our code:
> >
> > if {$vlCountryCode == "DE"} {
> > ns_puts "<td background=\"$imageDir/hdr_bg.gif\"
> valign=\"top\"
> > align=\"right\"><a
> >
> href=\"http://www.aol.de/action_templates/globalhelp_1.jsp?cid=1041541\"
> > target=\"top\"><img src=\"$imageDir/btn_helptop.gif\" width=$img2w
> > height=$img2h border=0 alt=\"$str6\"></a></td>"
> > } elseif {$vlCountryCode == "FR"} {
> > ns_puts "<td background=\"$imageDir/hdr_bg.gif\"
> valign=\"top\"
> > align=\"right\"><a
> > href=\"http://aolaide.aol.fr/version4/topic/theme6.htm\"
> > target=\"top\"><img src=\"$imageDir/btn_helptop.gif\" width=$img2w
> > height=$img2h border=0 alt=\"$str6\"></a></td>"
> > } else {
> > ns_puts "<td background=\"$imageDir/hdr_bg.gif\"
> valign=\"top\"
> > align=\"right\"><a
> > href=\"javascript:pop=prntPack('help/help.adp',530,500);\"><img
> > src=\"$imageDir/btn_helptop.gif\" width=$img2w height=$img2h border=0
> > alt=\"$str6\"></a></td>"
> > }
>
> if {$vlCountryCode == "DE"} {
> ns_puts [subst {<td background="$imageDir/hdr_bg.gif"
> valign="top"
> align="right"><a
> href="http://www.aol.de/action_templates/globalhelp_1.jsp?cid=1041541"
> target="top"><img src="$imageDir/btn_helptop.gif" width=$img2w
> height=$img2h border=0 alt="$str6"></a></td>}]
> } elseif {$vlCountryCode == "FR"} {
> ns_puts [subst {<td background="$imageDir/hdr_bg.gif"
> valign="top"
> align="right"><a
> href="http://aolaide.aol.fr/version4/topic/theme6.htm"
> target="top"><img src="$imageDir/btn_helptop.gif" width=$img2w
> height=$img2h border=0 alt="$str6"></a></td>}]
> } else {
> ns_puts [subst {<td background="$imageDir/hdr_bg.gif"
> valign="top"
> align="right"><a
> href="javascript:pop=prntPack('help/help.adp',530,500);"><img
> src="$imageDir/btn_helptop.gif" width=$img2w height=$img2h border=0
> alt="$str6"></a></td>}]
> }
>
> That at least eliminates the escaping of double-quotes issue. There's
> even more ways of refactoring your example to condense it further:
>
> switch $vlCountryCode {
> DE { set tag {<a
> href="http://www.aol.de/action_templates/globalhelp_1.jsp?cid=1041541"
> target="top">} }
> FR { set tag {<a
> href="http://aolaide.aol.fr/version4/topic/theme6.htm" target="top">} }
> default { set tag {<a
> href="javascript:pop=prntPack('help/help.adp',530,500);">} }
> }
>
> ns_adp_puts [subst {<td background="$imageDir/hdr_bg.gif"
> valign="top"
> align="right">$tag<img src="$imageDir/btn_helptop.gif" width=$img2w
> height=$img2h border=0 alt="$str6"></a></td>}]
>
> > Whereas in darn near any other language/appserver out there
> > (php,npe,jsp,asp), it would look something like this (syntax varies a
> > bit, of course):
> >
> > <% if $vlCountryCode == "DE" %>
> >
> > <td background="<%=$imageDir%>/hdr_bg.gif" valign="top"
> align="right">
> > <a
> > href="http://www.aol.de/action_templates/globalhelp_1.jsp?cid=1041541"
> > target="top"><img src="$imageDir/btn_helptop.gif" width=<%=$img2w%>
> > height=<%=$img2h%> border=0 alt="<%=$str6%>"></a></td>
> >
> > <% elseif $vlCountryCode == "FR" %>
> >
> > <td background="<%=$imageDir%>/hdr_bg.gif" valign="top"
> align="right">
> > <a href="http://aolaide.aol.fr/version4/topic/theme6.htm"
> > target="top"><img src="<%=$imageDir%>/btn_helptop.gif"
> width=<%=$img2w%>
> > height=<%=$img2h%> border=0 alt="<%=$str6%>"></a></td>
> >
> >
> > <% else %>
> > <td background="<%=$imageDir%>/hdr_bg.gif" valign="top"
> > align="right"><a
> > href="javascript:pop=prntPack('help/help.adp',530,500);"><img
> > src="<%=$imageDir%>/btn_helptop.gif" width=<%=$img2w%>
> > height=<%=$img2h%> border=0 alt="<%=$str6%>"></a></td>
> >
> > <% endif %>
>
> Matter of preference. I, personally, prefer the second refactoring I
> provided above.
>
> > The readability difference may not be so apparent given the lack of
> > formatting in this email, but the difference in my text editor (using
> > syntax coloring) is tremendous.
>
> Use a better text editor? :-)
>
> -- Dossy
>
> --
> Dossy Shiobara mail: [EMAIL PROTECTED]
> Panoptic Computer Network web: http://www.panoptic.com/
> "He realized the fastest way to change is to laugh at your own
> folly -- then you can let go and quickly move on." (p. 70)
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 16:23:00 -0400
> From: Dossy Shiobara <[EMAIL PROTECTED]>
> Subject: Re: differences between AOLserver 3.x and 4.x?
>
> On 2004.08.12, IRA <[EMAIL PROTECTED]> wrote:
> > Is there a document anywhere listing the changes between AOLserver 3.x
> > and 4.x? We're still running 3.4.2 and we'd like to upgrade to 4.x,
> > but I have no good way of predicting how much of our code we'll need to
> > modify.
>
> Why predict? Set up a dev 4.0.7 instance and exercise your code and see
> what breaks. Another compelling reason to have QA build automated tests
> which exercise the important code paths in the application ...
>
> However, there IS a module porting guide:
>
> http://aolserver.com/docs/devel/c/as4_moduleportingguide.html
>
> But it doesn't speak to overall changes across the server.
>
> -- Dossy
>
> --
> Dossy Shiobara mail: [EMAIL PROTECTED]
> Panoptic Computer Network web: http://www.panoptic.com/
> "He realized the fastest way to change is to laugh at your own
> folly -- then you can let go and quickly move on." (p. 70)
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 16:23:28 -0400
> From: Jamie Rasmussen <[EMAIL PROTECTED]>
> Subject: Re: AOLserver Win32, PostgeSQL driver, tdom
>
> The installer at http://empoweringminds.mle.ie/openacs/ is old and has
> some
> bugs that were fixed in later AOLserver 4 betas, though it should be
> sufficient to get you started if I don't create a newer one first. The
> binaries there were compiled with MS VC++ 6.0 I'm currently using MS
> VS.NET
> 2003, which I think has the exact same compiler as the free download
> Dossy
> uses. I will hopefully get an installer built for 4.1's release and get
> permission to add it to the SourceForge download section. I currently
> build
> about 20 AOLserver modules plus the core with project files; adding
> support
> for the extra ones you need to Dossy's TCL based make should also be
> pretty
> easy.
>
> >> I assume this is for OpenACS
> >Actualy, it's not.
>
> This has hopefully taught me to not assume. :-)
>
> Jamie
>
>
> On Thu, 12 Aug 2004 11:33:57 +0200, Bas Scheffers <[EMAIL PROTECTED]>
> wrote:
>
> >Jamie Rasmussen said:
> >> tDOM works with AOLserver on Windows, you can download the Win32 dll
> >> version from tdom.org. (I haven't tried yesterday's 0.8.0 release
> yet.)
> >Cool, will give it a go.
> >
> >> nspostgres compiles on Windows against libpq from PostgreSQL 7.4
> with no
> >> modifications, though IIRC you need a small change to make some of the
> >What compiler did you use? This free VC++ toolkit Dossy used to
> create the
> >nsd binaries?
> >
> >> the Win32 build got broken. I can send you binaries from an
> earlier build
> >I think those are still downloadable, aren't they?
> >
> >> PostgreSQL install myself in the next few days, if you keep track
> of the
> >> steps you take and problems you encounter during an install,
> perhaps we
> >> can put some documentation up on the AOLserver Wiki.
> >Sounds good. My efforts won't be untill next week, I am afraid. Need to
> >download a lot of stuff onto my laptop. The Germans don't seem to
> believe
> >in free wireless access points and the locked down XP boxes in the
> office
> >won't take a USB memory stick nor do they have CD burners. Ahrg! Will
> have
> >to do it at home on the weekend...
> >
> >> I assume this is for OpenACS - you may run into some problems
> that are
> >Actualy, it's not. It's a from scratch project. (too specific to use
> >something like ACS, I'd spend as much time customizing, let alone the
> >inital learning curve!)
> >
> >Will keep you (and everyone else) updated on my efforts.
> >
> >Bas.
> >
> >
> >--
> >AOLserver - http://www.aolserver.com/
> >
> >To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> >body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 16:36:20 -0400
> From: Andrew Piskorski <[EMAIL PROTECTED]>
> Subject: Re: AOLSERVER Digest - 10 Aug 2004 to 11 Aug 2004 (#2004-171)
>
> On Thu, Aug 12, 2004 at 02:00:06PM -0500, IRA wrote:
>
> > It's just this sort of problem that makes me wonder if the people
> > building aolserver ever actually USE aolserver to build web
> > applications. It seems like not that big of a deal . . . until you
> > realize that we do this ALL THE TIME.
>
> > Here's an example from our code:
> >
> > if {$vlCountryCode == "DE"} {
> > ns_puts "<td background=\"$imageDir/hdr_bg.gif\"
> valign=\"top\"
> > align=\"right\"><a
> >
> href=\"http://www.aol.de/action_templates/globalhelp_1.jsp?cid=1041541\"
> > target=\"top\"><img src=\"$imageDir/btn_helptop.gif\" width=$img2w
> > height=$img2h border=0 alt=\"$str6\"></a></td>"
> > } elseif {$vlCountryCode == "FR"} {
> > ns_puts "<td background=\"$imageDir/hdr_bg.gif\"
> valign=\"top\"
> > align=\"right\"><a
>
> I'm rather astonished that you'd ever be writing code like that at
> all. Using ns_puts to conditionally write slightly different big
> hunks of HTML, all hard-coded inline? Yuck.
>
> If I was limited to just the stock Tcl and AOLserver code, and
> couldn't even write my own little helper procs, I'd probably either
> use 'subst' or assemble the HTML chunks a bit at a time with 'append'
> and curly braces, e.g.:
>
> set td_html {<td background="}
> if { [string equal $vlCountryCode "DE"] } {
> append td_html $imageDir
> append td_html {"/hdr_bg.gif" valign="top" align="right">
> <a
> href="http://www.aol.de/action_templates/globalhelp_1.jsp?cid=1041541"
> target="top"><img src="}
> # TODO: Etc.
>
> But in practice I probably wouldn't do that either. Constants like
> "hdr_bg.gif" repeated several times in different branches of the if
> statement? More yuck.
>
> This is why tools like the OpenACS Templating System exist. But if
> you, say, really want to use something like ns_write and thus don't
> want to use the Templating System, OpenACS has plenty of smaller,
> lower level helper procs to help you out with dynamically generated
> HTML.
>
> I don't even know what they call it, but I've long heard that the AOL
> guys (the Digital City team?) have their own internally developed
> toolkit to do more or less the same sort of stuff as OpenACS. Don't
> you AOL folks use it?
>
> And if I didn't have OpenACS (or something like it) available, I would
> at least whip up a few of my own simple procs to help refactor and
> de-obfuscate the code.
>
> --
> Andrew Piskorski <[EMAIL PROTECTED]>
> http://www.piskorski.com/
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 17:20:25 -0400
> From: Dossy Shiobara <[EMAIL PROTECTED]>
> Subject: Dossy's nsopenssl 3 beta testing
>
> OK, so after all the buzz, I started doing some testing of nsopenssl 3
> beta and here's what I've learned so far:
>
> I'm using "OpenSSL 0.9.7d 17 Mar 2004" and the latest checkout of
> nsopenssl 3 beta from CVS HEAD.
>
> 1. If the certificate and key .pem files aren't in the modules/nsopenssl
> dir, the server will still start up (and logs an error) and will
> accept SSL connections, but causes the server to spin with the
> following error:
>
> [12/Aug/2004:16:41:49][5459.1088261040][-nsopenssl:reader-] Debug:
> SSLOp(19-0): SSL_ERROR_SSL: bytes = 199; total = 0; rc = -1
> [12/Aug/2004:16:41:49][5459.1088261040][-nsopenssl:reader-] Error:
> nsopenssl (server1): SSL error on reading data
>
> Is it ever possible to service a SSL request if you don't have the
> server certificate loaded? If we can't load the cert, perhaps we
> shouldn't open the socket for listening and accept connections on it.
>
> 2. The example nsd.tcl that's provided in the nsopenssl specifies
> "SSLv3, TLSv1" for the server protocols. An SSLv2 client connection
> causes a similar SSL error as above. Adding "SSLv2" to the list seems
> to make SSLv2 requests work just fine.
>
>
> Janine and others: do you have "SSLv2" in the list of protocols
> configured in your server context for the nsopenssl module? If not,
> when you DO get an SSLv2 connection, your server will spin throwing lots
> of noise in the server log.
>
> If you do have SSLv2 in the protocols list and are still seeing the
> problem, then I don't know what's wrong. Once I set up the certificate
> and key .pem files so that nsopenssl could load them, and added "SSLv2"
> to the list, and configure the "maxinput" parameter correctly, I haven't
> been able to reproduce the error.
>
> For details on how to configure maxinput, see:
>
> TIP: configuring "maxinput" for nsopenssl
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg07365.html
>
>
> I'm now looking around for SSL protocol testing software -- not plain
> load generation software, there's plenty of that around. I want a
> package that specifically sends a mix of good SSL connections as well as
> bad ones: "defects" in the SSL handshake process, bad payload data,
> hard connection drops in mid-send or mid-receive. If anyone knows of
> such a tool, please let me know their names and vendors. Thanks.
>
> -- Dossy
>
> --
> Dossy Shiobara mail: [EMAIL PROTECTED]
> Panoptic Computer Network web: http://www.panoptic.com/
> "He realized the fastest way to change is to laugh at your own
> folly -- then you can let go and quickly move on." (p. 70)
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 23:20:25 +0100
> From: Steve <[EMAIL PROTECTED]>
> Subject: Re: ADP/Javascript issue
>
> --=-lVqtWuUfvltiWUS+6fok
> Content-Type: text/plain
> Content-Transfer-Encoding: 7bit
>
> There is a fundamental difference between GET and POST in that the
> former encodes your data into the URL whilst the latter incorporates the
> data into the message and posts it. If your submitting a lot of data
> then you could run into problems of url length with GET.
>
> The following self-posting test page work for me with the method set to
> post or get:
>
> test1.adp
>
> <html>
> <head>
> <title>test1</title>
> <script language="javascript" type="text/javascript">
> function saveSelected(inMethod) {
> document.forms.theForm.rid.value = "TESTING TESTING 123";
> document.forms.theForm.action="test1.adp";
> document.forms.theForm.method=inMethod;
> document.forms.theForm.submit();
> }
> </script>
> </head>
> <body>
> <form name="theForm">
> <input type="hidden" name="rid" value="">
> </form>
> <a href="javascript:saveSelected('post');">Post</a>
> <a href="javascript:saveSelected('get');">Get</a>
> <hr>
> <%
> set form_data [ns_getform]
> if ![string equal $form_data {}] {
> set rid [ns_set get $form_data rid]
> }
> %>
>
> Method: <%=[ns_conn method]%><br>
> Query: <%=[ns_conn query]%><br>
> RID Value: [<%=$rid%>]<br>
>
> </body>
> </html>
>
> Hope that helps.
>
> Steve
>
>
> On Thu, 2004-08-12 at 19:09, Nishant Asthana wrote:
>
> > Hi,
> > I thought I would send my problem on this list and see if someone can
> > help me out.
> > I am working on Address Book on the Web (webmail.aol.com), and it has
> > a UI where you can select addresses to send mail to.
> > Its a paged UI in the sense that addresses are grouped into alpha
> > buckets, ABC, DEF etc. So if you click on ABC bucket, you see
> > addresses whose last names begin with A or B or C. User can select
> > addresses on one page and can then go to another bucket and select
> > addresses there, then can go back to previous
> > page, select/deselect address, or go to other page etc. What we need
> > to do is to save all user's selections till he clicks on send mail
> > button.
> >
> > ADP page has an HTML form with POST and hidden fields. I use a hidden
> > fld to pass list of selected records to other buckets. I am using the
> > following code in the page for links to alphabets
> > (main.adp) ns_adp_puts
> > "<ahref=\"\"onclick=\"javascript:saveSelectedAndSubmitForm();return
> > false;\">ABC</a> \;"
> > The Javascript method saveSelectedAndSubmitForm() iterates over
> > selected checkboxes and adds it to the hidden variable, and finally
> > calls document.submit()
> >
> > In the adp file, I try to get the value of hidden form field and here
> > is what happens. When I use GET, I am able to see that hidden form
> > fld, however, when I use POST, it seems no form data is submitted to
> > the server.
> > Here is the sample code
> >
> > (main.adp)
> > <%
> > set theformdata [ns_getform]
> > set rid ""
> > if {$theformdata != ""} {
> > set rididx [ns_set find $theformdata rid]
> > if {$rididx != -1} {
> > set rid [ns_set value $theformdata $rididx]
> > }
> > }
> > %>
> > <form>
> > <input type="hidden" name="rid" value="<%=$rid%>">
> > </form>
> >
> > $theformdata is null when POST is used.
> >
> > Is there a difference between the way data is posted with GET and POST
> > ? I think not, but then how can one explain such behavior. I think I
> > am using the correct JS code. Heres a snapshot.
> > function saveSelected..() {
> > document.forms.theForm.rid.value = prevList; // rid is the hidden
> > form fld. prevList is the value assigned to this fld
> > document.forms.theForm.action="main.adp";
> > document.forms.theForm.submit();
> > }
> >
> > --
> > Software Engineer
> > America Online Inc
> > Mountain View,CA
>
>
> ________________________________________________________________________
> Steve Manning - Mandrake Linux 10.0 - Gnome 2.4
> East Goscote - Leicester - UK +44 (0)116 260 5457
> E-Mail: [EMAIL PROTECTED] - Web: www.festinalente.co.uk
> AIM: verbomania - Public Key: 25665CAF from: wwwkeys.pgp.net
>
> ________________________________________________________________________
> There are only 10 types of people in this world
> Those who understand binary and those who don't
>
> ________________________________________________________________________
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> --=-lVqtWuUfvltiWUS+6fok
> Content-Type: text/html; charset=utf-8
> Content-Transfer-Encoding: 7bit
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
> <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
> </HEAD>
> <BODY>
> There is a fundamental difference between GET and POST in that the
> former encodes your data into the URL whilst the latter incorporates
> the data into the message and posts it. If your submitting a lot of
> data then you could run into problems of url length with GET.<BR>
> <BR>
> The following self-posting test page work for me with the method set
> to post or get:<BR>
> <BR>
> <B><TT>test1.adp</B><BR>
> <BR>
> <html><BR>
> <head><BR>
> <title>test1</title><BR>
> <script language="javascript"
> type="text/javascript"><BR>
> function saveSelected(inMethod) {<BR>
> document.forms.theForm.rid.value = "TESTING TESTING
> 123";<BR>
> document.forms.theForm.action="test1.adp";<BR>
> document.forms.theForm.method=inMethod;<BR>
> document.forms.theForm.submit();<BR>
> }<BR>
> </script><BR>
> </head><BR>
> <body><BR>
> <form name="theForm"><BR>
> <input type="hidden" name="rid"
> value=""><BR>
> </form><BR>
> <a
> href="javascript:saveSelected('post');">Post</a> <BR>
> <a href="javascript:saveSelected('get');">Get</a> <BR>
> <hr><BR>
> <%<BR>
> set form_data [ns_getform]<BR>
> if ![string equal $form_data {}] {<BR>
> set rid [ns_set get $form_data rid]<BR>
> }<BR>
> %><BR>
> <BR>
> Method: <%=[ns_conn method]%><br><BR>
> Query: <%=[ns_conn query]%><br><BR>
> RID Value: [<%=$rid%>]<br><BR>
> <BR>
> </body><BR>
> </html></TT><BR>
> <BR>
> Hope that helps.<BR>
> <BR>
> Steve<BR>
> <BR>
> <BR>
> On Thu, 2004-08-12 at 19:09, Nishant Asthana wrote:
> <BLOCKQUOTE TYPE=CITE>
> <FONT COLOR="#2129a8" SIZE="2"><I>Hi,<BR>
> I thought I would send my problem on this list and see if someone
> can help me out.<BR>
> I am working on Address Book on the Web (webmail.aol.com), and it
> has a UI where you can select addresses to send mail to. <BR>
> Its a paged UI in the sense that addresses are grouped into alpha
> buckets, ABC, DEF etc. So if you click on ABC bucket, you see
> addresses whose last names begin with A or B or C. User can select
> addresses on one page and can then go to another bucket and select
> addresses there, then can go back to previous<BR>
> page, select/deselect address, or go to other page etc. What we
> need to do is to save all user's selections till he clicks on send
> mail button.<BR>
> <BR>
> ADP page has an HTML form with POST and hidden fields. I use a
> hidden fld to pass list of selected records to other buckets. I am
> using the following code in the page for links to alphabets <BR>
> (main.adp) ns_adp_puts
> "<ahref=\"\"onclick=\</FONT><A
> HREF="javascript:saveSelectedAndSubmitForm();returnfalse;\"><FONT
> SIZE="2"><U>"javascript:saveSelectedAndSubmitForm();return
> false;\"</U></FONT></A><FONT COLOR="#2129a8"
> SIZE="2">>ABC</a> \;"<BR>
> The Javascript method saveSelectedAndSubmitForm() iterates over
> selected checkboxes and adds it to the hidden variable, and finally
> calls document.submit()<BR>
> <BR>
> In the adp file, I try to get the value of hidden form field and
> here is what happens. <B>When I use GET, I am able to see that hidden
> form fld, however, when I use POST, it seems no form data is submitted
> to the server. </B><BR>
> Here is the sample code<BR>
> <BR>
> (main.adp)<BR>
> <%<BR>
> set theformdata [ns_getform]<BR>
> set rid ""<BR>
> if {$theformdata != ""} {<BR>
> set rididx [ns_set find $theformdata rid]<BR>
> if {$rididx != -1} {<BR>
> set rid [ns_set value $theformdata $rididx]<BR>
> }<BR>
> }<BR>
> %><BR>
> <form><BR>
> <input type="hidden" name="rid"
> value="<%=$rid%>"><BR>
> </form><BR>
> <BR>
> <B>$theformdata is null when POST is used.</B><BR>
> <BR>
> Is there a difference between the way data is posted with GET and
> POST ? I think not, but then how can one explain such behavior. I
> think I am using the correct JS code. Heres a snapshot.<BR>
> function saveSelected..() {<BR>
> document.forms.theForm.rid.value = prevList; // rid is the
> hidden form fld. prevList is the value assigned to this fld<BR>
> document.forms.theForm.action="main.adp";<BR>
> document.forms.theForm.submit();<BR>
> }<BR>
> <BR>
> -- <BR>
> Software Engineer<BR>
> America Online Inc<BR>
> Mountain View,CA</I></FONT>
> </BLOCKQUOTE>
> <PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
> <TR>
> <TD>
>
> <HR>
> Steve Manning - Mandrake Linux 10.0 - Gnome 2.4<BR>
> East Goscote - Leicester - UK +44 (0)116 260 5457<BR>
> E-Mail: <A
> HREF="mailto:[EMAIL PROTECTED]"><U>[EMAIL PROTECTED]</U></A> - Web: <A
>
HREF="http://www.festinalente.co.uk"><U>www.festinalente.co.uk</U></A><BR>
>
> AIM: verbomania - Public Key: 25665CAF from: wwwkeys.pgp.net<BR>
>
> <HR>
> <BR>
> There are only 10 types of people in this world<BR>
> Those who understand binary and those who don't<BR>
>
> <HR>
>
> </TD>
> </TR>
> </TABLE>
> </PRE>
> </BODY>
> </HTML>
> <pre>
> <p>
> --
> AOLserver - http://www.aolserver.com/
> <p>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
> </pre>
>
> --=-lVqtWuUfvltiWUS+6fok--
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 17:25:30 -0600
> From: Nathaniel Haggard <[EMAIL PROTECTED]>
> Subject: Re: Dossy's nsopenssl 3 beta testing
>
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: modload: loading
> '/sm/aolserver4.0.7/bin/nsopenssl.so'
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): loading SSL context 'users'
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): 'users' ciphers loaded successfully
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): 'users' using SSLv2 protocol
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): 'users' using SSLv3 protocol
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): 'users' using TLSv1 protocol
> [12/Aug/2004:17:17:17][17642.1024][-main-] Debug: KeyFile =
> /sm/aolserver/servers/server1/modules/nsopenssl/key.pem; CertFile
> = /sm/aolserver/servers/server1/modules/nsopenssl/certificate.pem
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): 'users' certificate and key loaded successfully
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): 'users' failed to load CA certificate file
> '/sm/aolserver/servers/server1/modules/nsopenssl/ca-client/ca-client.crt'
> [12/Aug/2004:17:17:17][17642.1024][-main-] Error: nsopenssl (server1):
> 'users' CA certificate file is not readable or does not exist
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: users (nsopenssl):
> session cache is turned on for sslcontext 'server1'
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): default SSL context for server is users
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: default server SSL
> context: users
> [12/Aug/2004:17:17:17][17642.1024][-main-] Notice: nsopenssl
> (server1): loading 'users_drv' SSL driver
>
> What is ca-client.crt? The certificate and key .pem files are there.
> I continue to get errors like this:
>
> [12/Aug/2004:17:20:32][17642.9226][-conn:server1::4] Debug:
> SSLOp(21-0): SSL_ERROR_SSL: bytes = 16000; total = 0; rc = -1
> [12/Aug/2004:17:20:32][17642.9226][-conn:server1::4] Error: nsopenssl
> (server1): SSL error on reading data
>
> I suspect that some browser is causing the crashing problems. The
> above was the error was the last one in the log before the server
> died.
>
> Nate
>
> On Thu, 12 Aug 2004 17:20:25 -0400, Dossy Shiobara
> <[EMAIL PROTECTED]> wrote:
> > OK, so after all the buzz, I started doing some testing of nsopenssl 3
> > beta and here's what I've learned so far:
> >
> > I'm using "OpenSSL 0.9.7d 17 Mar 2004" and the latest checkout of
> > nsopenssl 3 beta from CVS HEAD.
> >
> > 1. If the certificate and key .pem files aren't in the
> modules/nsopenssl
> > dir, the server will still start up (and logs an error) and will
> > accept SSL connections, but causes the server to spin with the
> > following error:
> >
> > [12/Aug/2004:16:41:49][5459.1088261040][-nsopenssl:reader-] Debug:
> SSLOp(19-0): SSL_ERROR_SSL: bytes = 199; total = 0; rc = -1
> > [12/Aug/2004:16:41:49][5459.1088261040][-nsopenssl:reader-] Error:
> nsopenssl (server1): SSL error on reading data
> >
> > Is it ever possible to service a SSL request if you don't have the
> > server certificate loaded? If we can't load the cert, perhaps we
> > shouldn't open the socket for listening and accept connections on it.
> >
> > 2. The example nsd.tcl that's provided in the nsopenssl specifies
> > "SSLv3, TLSv1" for the server protocols. An SSLv2 client connection
> > causes a similar SSL error as above. Adding "SSLv2" to the list
> seems
> > to make SSLv2 requests work just fine.
> >
> > Janine and others: do you have "SSLv2" in the list of protocols
> > configured in your server context for the nsopenssl module? If not,
> > when you DO get an SSLv2 connection, your server will spin throwing
> lots
> > of noise in the server log.
> >
> > If you do have SSLv2 in the protocols list and are still seeing the
> > problem, then I don't know what's wrong. Once I set up the certificate
> > and key .pem files so that nsopenssl could load them, and added "SSLv2"
> > to the list, and configure the "maxinput" parameter correctly, I
> haven't
> > been able to reproduce the error.
> >
> > For details on how to configure maxinput, see:
> >
> > TIP: configuring "maxinput" for nsopenssl
> >
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg07365.html
> >
> > I'm now looking around for SSL protocol testing software -- not plain
> > load generation software, there's plenty of that around. I want a
> > package that specifically sends a mix of good SSL connections as
> well as
> > bad ones: "defects" in the SSL handshake process, bad payload data,
> > hard connection drops in mid-send or mid-receive. If anyone knows of
> > such a tool, please let me know their names and vendors. Thanks.
> >
> > -- Dossy
> >
> > --
> > Dossy Shiobara mail: [EMAIL PROTECTED]
> > Panoptic Computer Network web: http://www.panoptic.com/
> > "He realized the fastest way to change is to laugh at your own
> > folly -- then you can let go and quickly move on." (p. 70)
> >
> > --
> > AOLserver - http://www.aolserver.com/
> >
> > To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> > body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
> >
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
> ------------------------------
>
> Date: Thu, 12 Aug 2004 17:20:44 -0700
> From: Nishant Asthana <[EMAIL PROTECTED]>
> Subject: Re: ADP/Javascript issue
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title></title>
> </head>
> <body>
> <font face="Arial,sans-serif"><font size="2">Steve,<br>
> I know the difference between GET and POST. My actual problem is that
> POST is not posting form to the server, so I am unable to extract
> hidden fields from the request.<br>
> Because of limitations on URL length, I dont want to implement it using
> GET, but POST is not working. GET works fine, I have no clue were is my
> code going wrong (or is it adp that is the problem ?)<br>
> A form submission with JS submit() function should submit user data to
> the server, which I can get either by ns_queryget or by ns_getform, but
> my problem is, if I use POST, I get null value for the query string
> using both methods :-((<br>
> <br>
> <span type="cite">Steve wrote on 8/12/2004, 3:20 PM:</span>
> </font></font>
> <p><font face="Arial,sans-serif" size="2"></font></p>
> <blockquote type="cite" style="border-left: thin solid blue;
> padding-left: 10px; margin-left: 0pt;"><font face="Arial,sans-serif"
> size="2">There is a fundamental difference
> between GET and POST in that the former encodes your data into the URL
> whilst the latter incorporates the data into the message and posts it.
> If your submitting a lot of data then you could run into problems of
> url length with GET.<br>
> <br>
> The following self-posting test page work for me with the method set to
> post or get:<br>
> <br>
> <b><font face="Courier New">test1.adp</font></b></font><font
> face="Courier New" size="2"><br>
> <br>
> <html><br>
> <head><br>
> <title>test1</title><br>
> <script language="javascript" type="text/javascript"><br>
> function saveSelected(inMethod) {<br>
> document.forms.theForm.rid.value = "TESTING TESTING 123";<br>
> document.forms.theForm.action="test1.adp";<br>
> document.forms.theForm.method=inMethod;<br>
> document.forms.theForm.submit();<br>
> }<br>
> </script><br>
> </head><br>
> <body><br>
> <form name="theForm"><br>
> <input type="hidden" name="rid" value=""><br>
> </form><br>
> <a
> href=<a class="moz-txt-link-rfc2396E"
>
href="javascript:saveSelected('post');">"javascript:saveSelected('post');"</a>>Post</a> <br>
>
> <a href=<a class="moz-txt-link-rfc2396E"
>
href="javascript:saveSelected('get');">"javascript:saveSelected('get');"</a>>Get</a>
> <br>
> <hr><br>
> <%<br>
> set form_data [ns_getform]<br>
> if ![string equal $form_data {}] {<br>
> set rid [ns_set get $form_data rid]<br>
> }<br>
> %><br>
> <br>
> Method: <%=[ns_conn method]%><br><br>
> Query: <%=[ns_conn query]%><br><br>
> RID Value: [<%=$rid%>]<br><br>
> <br>
> </body><br>
> </html></font><font face="Arial,sans-serif" size="2"><br>
> <br>
> Hope that helps.<br>
> <br>
> Steve<br>
> <br>
> <br>
> On Thu, 2004-08-12 at 19:09, Nishant Asthana wrote:
> </font>
> <blockquote type="CITE"><font face="Arial,sans-serif" size="2">
> </font><font color="#2129a8" size="2" face="Arial,sans-serif"><i>Hi,<br>
> I thought I would send my problem on this list and see if someone can
> help me out.<br>
> I am working on Address Book on the Web (webmail.aol.com), and it has a
> UI where you can select addresses to send mail to. <br>
> Its a paged UI in the sense that addresses are grouped into alpha
> buckets, ABC, DEF etc. So if you click on ABC bucket, you see addresses
> whose last names begin with A or B or C. User can select addresses on
> one page and can then go to another bucket and select addresses there,
> then can go back to previous<br>
> page, select/deselect address, or go to other page etc. What we need to
> do is to save all user's selections till he clicks on send mail
> button.<br>
> <br>
> ADP page has an HTML form with POST and hidden fields. I use a hidden
> fld to pass list of selected records to other buckets. I am using the
> following code in the page for links to alphabets <br>
> (main.adp) ns_adp_puts "<ahref=\"\"onclick=\</i></font><font
> face="Arial,sans-serif" size="2"><i><a
> href="javascript:saveSelectedAndSubmitForm();returnfalse;\"><font
> size="2"><u>"javascript:saveSelectedAndSubmitForm();return
> false;\"</u></font></a><font color="#2129a8"
> size="2">>ABC</a> \;"<br>
> The Javascript method saveSelectedAndSubmitForm() iterates over
> selected checkboxes and adds it to the hidden variable, and finally
> calls document.submit()<br>
> <br>
> In the adp file, I try to get the value of hidden form field and here
> is what happens. <b>When I use GET, I am able to see that hidden form
> fld, however, when I use POST, it seems no form data is submitted to
> the server. </b><br>
> Here is the sample code<br>
> <br>
> (main.adp)<br>
> <%<br>
> set theformdata [ns_getform]<br>
> set rid ""<br>
> if {$theformdata != ""} {<br>
> set rididx [ns_set find $theformdata rid]<br>
> if {$rididx != -1} {<br>
> set rid [ns_set value $theformdata $rididx]<br>
> }<br>
> }<br>
> %><br>
> <form><br>
> <input type="hidden" name="rid" value="<%=$rid%>"><br>
> </form><br>
> <br>
> <b>$theformdata is null when POST is used.</b><br>
> <br>
> Is there a difference between the way data is posted with GET and POST
> ? I think not, but then how can one explain such behavior. I think I am
> using the correct JS code. Heres a snapshot.<br>
> function saveSelected..() {<br>
> document.forms.theForm.rid.value = prevList; // rid is the hidden
> form fld. prevList is the value assigned to this fld<br>
> document.forms.theForm.action="main.adp";<br>
> document.forms.theForm.submit();<br>
> }<br>
> <br>
> -- <br>
> Software Engineer<br>
> America Online Inc<br>
> Mountain View,CA</font></i> </font></blockquote>
> <font face="Arial,sans-serif" size="2"> </font>
> <pre><table cellspacing="0" cellpadding="0" width="100%">
> <tbody><tr> <td> <hr> Steve Manning - Mandrake Linux 10.0 - Gnome
> 2.4<br> East Goscote - Leicester - UK +44 (0)116 260 5457<br>
> E-Mail: <a
> href="mailto:[EMAIL PROTECTED]"><u>[EMAIL PROTECTED]</u></a> - Web:
> <a
>
href="http://www.festinalente.co.uk"><u>www.festinalente.co.uk</u></a><br>
> AIM: verbomania - Public Key: 25665CAF from: wwwkeys.pgp.net<br>
> <hr> <br> There are only 10 types of people in this world<br> Those
> who understand binary and those who don't<br> <hr> </td> </tr>
> </tbody></table> </pre>
> <font face="Arial,sans-serif" size="2"> </font></blockquote>
> <font face="Arial,sans-serif"><font size="2"><br>
> <span>-- <br>
> Software Engineer<br>
> America Online Inc<br>
> Mountain View,CA<br>
> </span></font></font>
> </body>
> </html>
> <pre>
> <p>
> --
> AOLserver - http://www.aolserver.com/
> <p>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
> </pre>
>
> ------------------------------
>
> End of AOLSERVER Digest - 11 Aug 2004 to 12 Aug 2004 (#2004-172)
> ****************************************************************
>
--
Sr. Software Engineer
Parental Controls Web
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.