<?xml version="1.0"?> <jsp:root xmlns="http://java.sun.com/JSP/Page" version="1.2"> <jsp:directive.page contentType="text/html"/> <jsp:directive.page import="java.util.Date, java.util.Locale"/> <jsp:directive.page import="java.text.*"/>
<jsp:declaration> String getDateTimeStr(Locale l) { DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, l); return df.format(new Date()); } </jsp:declaration>
<html> <head> <title>Example JSP in XML format</title> </head>
<body> This is the output of a simple JSP using XML format. <br />
<div>Use a jsp:scriptlet to loop from 1 to 10: </div> <jsp:scriptlet> // Note we need to declare CDATA because we don't escape the less than symbol <![CDATA[ for (int i = 1; i<=10; i++) { out.println(i); if (i < 10) { out.println(", "); } } ]]> </jsp:scriptlet>
<!-- Because I omit br's end tag, declare it as CDATA --> <![CDATA[ <br><br> ]]>
<div align="left"> <!-- If we don't use <span> or <jsp:text> or any other tag to enclose the label, then the date/time string is printed BEFORE the label. Is this a Tomcat 4.0.1 bug? --> <div> Use a jsp:expression to write the date and time in the browser's locale: </div> <jsp:expression>getDateTimeStr(request.getLocale())</jsp:expression> </div>
<jsp:text> <p>This sentence is enclosed in a jsp:text element.</p> </jsp:text>
</body> </html> </jsp:root>
produces this output: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Reference to undeclared namespace prefix: 'jsp'. Line 3, Position 17
version="1.2">
Advice?
Martin
From: "Philippe Back (High Octane)" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [AM] Web Services Date: Sat, 19 Jul 2003 17:39:33 +0200 MIME-Version: 1.0 Received: from mail.laconiadatasystems.com ([24.34.177.222]) by mc6-f27.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 19 Jul 2003 08:46:25 -0700 Received: from out004.tpctex.com ([69.24.236.24]) by mail.laconiadatasystems.com (Merak 6.0.3) with SMTP id DEMO for <[EMAIL PROTECTED]>; Sat, 19 Jul 2003 11:46:24 -0700 Received: (qmail 16659 invoked by uid 0); 19 Jul 2003 15:46:15 -0000 Received: from unknown (HELO ns11.mmaweb.net) (64.71.146.200) by 0 with SMTP; 19 Jul 2003 15:46:15 -0000 Received: from gravitation1 (40.19-136-217.adsl.skynet.be [217.136.19.40])by ns11.mmaweb.net (8.12.9/8.11.0) with SMTP id h6JFkESm028781for <[EMAIL PROTECTED]>; Sat, 19 Jul 2003 11:46:14 -0400 (EDT) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-ID: <[EMAIL PROTECTED]> Errors-To: <[EMAIL PROTECTED]> X-Topica-Id: <1058629577.inmta002.28696.1068713> List-Help: <http://topica.com/lists/[EMAIL PROTECTED]/> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> Return-Path: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-OriginalArrivalTime: 19 Jul 2003 15:46:25.0654 (UTC) FILETIME=[E942A960:01C34E0C]
What is good with Web services is that they are simple enough to get momentum. There is nothing new under the sun with them technically speaking. CORBA is more efficient as is COM+. But, they are not easy enough to use for everyone. Webservices appears to be simple. So they win. This sounds like "20% of UML is sufficient for modeling".
/Phil
----- Original Message ----- From: "Iggy E" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, 19 July, 2003 12:58 Subject: Re: [AM] Web Services
> > Hi Sandra, > > I have been using Web services for 18 months now in still-running, > live, real-world apps here in SE Asia. If an application needs to use > the Internet, I see very few cases that I wouldn't use them. > > >From a developer viewpoint, there are many advantages: > 1. It enforces separation of business logic from presentation logic > on development teams. > 2. It acts as a wrapper to the backend data tier. > 3. It is standardized. > 4. It allows for easier re-use. > 5. It gives flexibility for future enhancements. > > A couple of examples: > 1. I did an app for a manufacturing company with a Web browser user > interface. I wrapped the business logic in Web services and use the > security features of the web server to allow only certain IP > addresses in. After the app was up and running, they added some > warehouses and didn't want to retrain the workers who were using > Excel. No problem; I used the MS SOAP toolkit and with a little VBA > elbow grease, I connected to the same Web services and they had an > Excel front end also. > 2. The last year I have been doing mobile app development. For many > mobile apps, there will be a desktop app that does heavy duty like > data entry and command center type of stuff to supplement the mobile > app. With Web services, the desktop app can connect to them, and I > have the flexibility to have a mobile web browser or thick client UI > for Pocket PC. > 3. On one project, the customer wanted to mobilize their existing > in-house Java application. I use .NET but no problem; one of their > developers web-servicized their business logic and I connected to > their Web service. > And I have quite a few more examples. > > The term "Web service" has been hyped, but in any form it's XML, > which is a good thing. > > Where the hype has not met reality is with aggregating Web services > and in the consumer space; i.e. an application that might get weather > info from one provider's web service, GPS info from another, > restaurant info from another, and present it in one application... > but this is just as much because of the Internet bust, world events, > and downturn in the world economy than anything else. And, developers > waiting for the 2nd generation of Web services to take hold like > WS-Security, WS-routing, etc. But, to paraphrase what Don Box, the > father of SOAP, said not long ago: I'm tired of everybody sitting > around debating and moaning and groaning about Web services; just go > out and do it! > > >From a consumer & client viewpoint, if a company said they used Web > services, I would think they were on top of it, active, > forward-thinking, and have a leg up on the competition who aren't > using them. If you have something at stake with them, it might be a > good idea to get a knowledgable developer to drill down one level and > ask details about their web services to make sure it's not all window > dressing. > > This second generation of aggregation web services will come, and the > more experience companies have providing them - even if it's only > internal now - the better off they will be. > > I have been programming computers since it was punch cards and called > Electronic Data Processing in the early 70s, and IMO opinion the > software industry has never been more united in supporting something > than with Web services. For Distributed Computing and > program-to-program communication, APPC from IBM never took off, DCOM > was Microsoft-only shite, and CORBA was a pain in the rear end. All > are on board the Web services train. > > If this topic rankles the Agile Modelites here, we can take this > offline and feel free to email me directly. > > Iggy Evans > Singapore > > > > > --- Sandra Marsden <[EMAIL PROTECTED]> wrote: > > This is completely off-topic to Agile Modeling. I am posting here > > as the posters are experienced and do not take to hype lightly. > > > > Web Services - is this mostly hype with almost no substance? I > > recently started working at a consulting firm where we are > > bombarded by material from companies that claim they provide web > > services. > > > > None of our clients are remotely interested in all the acronyms > > that come with Web Services. There are tons of materials online on > > the merits of Web Services....but it is hard to find concrete > > example of users. > > > > My apologies for the off-topic post. > > > > Sandra > > > > For more information about AM, visit the Agile Modeling Home Page > > at www.agilemodeling.com > > > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > For more information about AM, visit the Agile Modeling Home Page at www.agilemodeling.com >
For more information about AM, visit the Agile Modeling Home Page at www.agilemodeling.com ==^================================================================ This email was sent to: [EMAIL PROTECTED]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrKDA.bVGT8C.d2VibWFz Or send an email to: [EMAIL PROTECTED]
TOPICA - Start your own email discussion group. FREE! http://www.topica.com/partner/tag02/create/index2.html ==^================================================================
Martin Gainty
______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. (cell) 617-852-7822 </DI
_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com