<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import="axis.tutorial.*" import="java.text.SimpleDateFormat" %> Axis tutorial client <% String _id = request.getParameter("id"); %>

Choose an CD ID :

"/>
<% if (_id!=null) { Long id = null; try { id = Long.parseLong(_id); } catch (Exception e) { out.write("Please enter a number...
"); } if (id!=null) { // --- Calling the service AxisTutorialProxy proxy = new AxisTutorialProxy(); CD cd = proxy.getById(id.longValue()); if (cd==null) { out.write("

No CD found with this id

"); } else { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); out.write("

"+cd.getName()+"

"); out.write(""); } } } %>