|
There's a Redbook (or Redpiece?) out there to set up PHP on the iSeries. However, IBM does not support it. I'm using PHP in a Tomcat server running on Windows 2000 machine. The Windows 2000 machine has a LAN connection to our iSeries. The PHP scripts access our iSeries server using IBM Toolbox for Java classes. You can find out more about JSR 223 (which includes PHP as the reference implementation) at http://jcp.org/en/jsr/detail?id=223 And, I guess, we should really move further discussion about PHP to the WEB400 list. I was originally just curious as to whether or not JSR 223 would be supported in WAS and WDSCi. Thanks, Kelly -----Original Message----- From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]On Behalf Of Colin Williams Sent: Friday, September 17, 2004 8:19 AM To: 'Websphere Development Studio Client for iSeries' Subject: RE: [WDSCI-L] JSR 223 Kelly, Does PHP actually run on the Iseries? If so, what do you need to install? cheers Colin.W Extension 5800 Direct dial 0870 429 5800 -----Original Message----- From: Kelly Cookson [mailto:KCookson@xxxxxxxxxxxx] Sent: 17 September 2004 14:16 To: 'Websphere Development Studio Client for iSeries' Subject: RE: [WDSCI-L] JSR 223 That's true. The scripts are similar in that respect. I was just saying you don't need to actually code a Servlet or JSP. The PHP script binds the Java classes directly. I'm absolutely not saying PHP is better than JSPs or Servlets. These are all very useful tools. I just happen to like PHP. Kelly -----Original Message----- From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]On Behalf Of Colin Williams Sent: Friday, September 17, 2004 7:58 AM To: 'Websphere Development Studio Client for iSeries' Subject: RE: [WDSCI-L] JSR 223 Kelly, Sorry if im missing something, but how is this different to a jsp? Just drop the jsp into a Java Web application like an HTML page and it works. cheers Colin.W Extension 5800 Direct dial 0870 429 5800 -----Original Message----- From: Kelly Cookson [mailto:KCookson@xxxxxxxxxxxx] Sent: 17 September 2004 13:50 To: Websphere Development Studio Client for iSeries Subject: [WDSCI-L] JSR 223 Does anyone know if IBM plans to support JSR 223 in the WebSphere Application Server? JSR 223 is a new specification from that Java Community Process that lets scripting languages like PHP use Java classes when run in a Servlet container. For example, here's a test script written in PHP that uses IBM Toolbox for Java classes to authenticate a user on the iSeries: <html> <head></head> <body> <?php try { //Set the network name of the iSeries, the user name, and the user password. $clsSystem = new Java("java.lang.String", "mysystem"); $clsUser = new Java("java.lang.String", "myname"); $clsPassword = new Java("java.lang.String", "mypassowrd"); //Create a connection to the iSeries. $iSeries = new Java("com.ibm.as400.access.AS400", $clsSystem, $clsUser, $clsPassword); //Authenticate the user and respond to the outcome. $uservalid = $iSeries->authenticate($clsUser, $clsPassword); if ($uservalid==true) { echo("valid user"); } else { echo("invalid user"); } } catch (Exception $e) { echo("Error."); } ?> </body> </html> The PHP script could also get the user information from a login form and start a session to remember the user name and password for subsequent interactions with the iSeries. No need to code Servlets or JSPs. Just drop this script in a Java Web application like an HTML page and it works. Right now I'm using a basic text editor and the Tomcat Servlet container (since that was the reference implementation for JSR 223). However, I'd like to be able to code my scripts in WebSphere Development Studio, test them in the WebSphere Application Server bundled with the studio, and install them in WebSphere Application Server Express for production. Anyone know IBM's plans for JSR 223 and WebSphere? Thanks, Kelly _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. This e-mail has been sent by a company of Bertram Group Ltd, whose registered office is 1 Broadland Business Park, Norwich, NR7 0WF. This message, and any attachments, are intended solely for the addressee and may contain privileged or confidential information. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender immediately. Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Bertram Group Ltd company unless confirmed in writing by a director independently of this message. Although we have taken steps to ensure that this email and any attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. This e-mail has been sent by a company of Bertram Group Ltd, whose registered office is 1 Broadland Business Park, Norwich, NR7 0WF. This message, and any attachments, are intended solely for the addressee and may contain privileged or confidential information. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender immediately. Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Bertram Group Ltd company unless confirmed in writing by a director independently of this message. Although we have taken steps to ensure that this email and any attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.