Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 57549 invoked from network); 11 Jan 2010 06:20:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 06:20:13 -0000 Received: (qmail 28318 invoked by uid 500); 11 Jan 2010 06:20:13 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 28228 invoked by uid 500); 11 Jan 2010 06:20:13 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 28210 invoked by uid 99); 11 Jan 2010 06:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 06:20:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,HS_INDEX_PARAM X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 06:20:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6E3CF23889E9; Mon, 11 Jan 2010 06:19:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r897763 [2/3] - in /geronimo/samples/branches/2.2/samples: DataCDInfo/ DataCDInfo/DataCDInfo-JTA-ear/ DataCDInfo/DataCDInfo-JTA-ear/src/ DataCDInfo/DataCDInfo-JTA-ear/src/main/ DataCDInfo/DataCDInfo-JTA-ear/src/main/resources/ DataCDInfo/Da... Date: Mon, 11 Jan 2010 06:19:49 -0000 To: scm@geronimo.apache.org From: delos@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100111061950.6E3CF23889E9@eris.apache.org> Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/ListOwnerServlet.java URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/ListOwnerServlet.java?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/ListOwnerServlet.java (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/ListOwnerServlet.java Mon Jan 11 06:19:47 2010 @@ -0,0 +1,108 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.geronimo.samples.datacdinfo.web; + +import java.io.IOException; +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; +import javax.persistence.EntityManager; +import javax.persistence.EntityManagerFactory; +import javax.persistence.PersistenceUnit; +import javax.persistence.Query; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.transaction.UserTransaction; + +/** + * Servlet implementation class ListOwnerServlet + * + * This servlet demo how to use application-managed persistence context + * to access database. Note that there must inject an UserTransaction resource + * to manually manage transaction before using EntityManager to query database. + */ +public class ListOwnerServlet extends HttpServlet { + private static final long serialVersionUID = 1L; + + @PersistenceUnit(unitName="DataCDInfoUnit") + private EntityManagerFactory emf; + @Resource + private UserTransaction utx; + + /** + * @see HttpServlet#HttpServlet() + */ + public ListOwnerServlet() { + super(); + // TODO Auto-generated constructor stub + } + + /** + * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + service(request,response); + } + + /** + * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + service(request,response); + } + + protected void service(HttpServletRequest req, HttpServletResponse res) + throws ServletException, IOException { + + List owners = new ArrayList(); + + EntityManager em = emf.createEntityManager(); + try { + utx.begin(); + Query query = em.createNativeQuery("select * from OWNER_TABLE"); + owners = query.getResultList(); + utx.commit(); + } catch (Exception e){ + e.printStackTrace(); + } + + res.setContentType("text/html"); + PrintWriter out = res.getWriter(); + + out.print(""); + out.print("Registered Owners"); + out.print(""); + + for (Object[] owner : owners) + { + out.print(owner[0].toString() + "/" + owner[1].toString() + "
"); + } + + //out.print(System.getProperties()); + out.print(""); + out.print(""); + } + +} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDForm.java URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDForm.java?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDForm.java (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDForm.java Mon Jan 11 06:19:47 2010 @@ -0,0 +1,86 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.geronimo.samples.datacdinfo.web.struts1; + +import org.apache.struts.action.ActionMapping; +import org.apache.struts.validator.ValidatorActionForm; +import java.sql.Date; + +import javax.servlet.http.HttpServletRequest; + +public class DataCDForm extends ValidatorActionForm { + /** + * + */ + private static final long serialVersionUID = -2878208025571945031L; + + private Integer cdID = null; + private String cdLabel = null; + private String cdDescription = null; + private Integer cdSize = null; + private Date cdArchiveDate = null; + private OwnerForm owner = new OwnerForm(); + + public Integer getCdID() { + return cdID; + } + public void setCdID(Integer cdID) { + this.cdID = cdID; + } + public String getCdLabel() { + return cdLabel; + } + public void setCdLabel(String cdLabel) { + this.cdLabel = cdLabel; + } + public String getCdDescription() { + return cdDescription; + } + public void setCdDescription(String cdDescription) { + this.cdDescription = cdDescription; + } + public Integer getCdSize() { + return cdSize; + } + public void setCdSize(Integer cdSize) { + this.cdSize = cdSize; + } + public Date getCdArchiveDate() { + return cdArchiveDate; + } + public void setCdArchiveDate(Date cdArchiveDate) { + this.cdArchiveDate = cdArchiveDate; + } + public OwnerForm getOwner() { + return owner; + } + public void setOwner(OwnerForm owner) { + this.owner = owner; + } + + public void reset(ActionMapping mapping, HttpServletRequest request) { + cdID = null; + cdLabel = null; + cdDescription = null; + cdSize = null; + cdArchiveDate = null; + owner = new OwnerForm(); + } + +} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDInfoContextListener.java URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDInfoContextListener.java?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDInfoContextListener.java (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/DataCDInfoContextListener.java Mon Jan 11 06:19:47 2010 @@ -0,0 +1,53 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.geronimo.samples.datacdinfo.web.struts1; + + +import javax.servlet.ServletContext; +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; + +import javax.ejb.EJB; + +import org.apache.geronimo.samples.datacdinfo.core.DataCDInfoRemote; + +public class DataCDInfoContextListener implements ServletContextListener { + private ServletContext ctx = null; + @EJB + private DataCDInfoRemote logic = null; + + + public void contextDestroyed(ServletContextEvent event) { + ctx = event.getServletContext(); + ctx.removeAttribute("logic"); + } + + + public void contextInitialized(ServletContextEvent event) { + ctx = event.getServletContext(); + + if (logic instanceof DataCDInfoRemote) { + ctx.setAttribute("logic", logic); + System.out.println(">>>>>>>>>>>>>>>>>>>>> Injected ejb DataCDInfoJTAImpl!"); + } else { + System.out.println(">>>>>>>>>>>>>>>>>>>>> Cannot inject ejb DataCDInfoJTAImpl!"); + } + } + +} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/OwnerForm.java URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/OwnerForm.java?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/OwnerForm.java (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/java/org/apache/geronimo/samples/datacdinfo/web/struts1/OwnerForm.java Mon Jan 11 06:19:47 2010 @@ -0,0 +1,70 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.geronimo.samples.datacdinfo.web.struts1; + +import java.util.Collection; + +import org.apache.struts.validator.ValidatorForm; + +public class OwnerForm extends ValidatorForm { + + /** + * + */ + private static final long serialVersionUID = 8367551067568662573L; + private String username; + private String password; + private String password2; + + + private Collection DataCDs; + + public Collection getDataCDs() { + return DataCDs; + } + + public void setDataCDs(Collection dataCDs) { + DataCDs = dataCDs; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getUsername() { + return username; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getPassword() { + return password; + } + + public String getPassword2() { + return password2; + } + + public void setPassword2(String password2) { + this.password2 = password2; + } + +} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_en_US.properties URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_en_US.properties?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_en_US.properties (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_en_US.properties Mon Jan 11 06:19:47 2010 @@ -0,0 +1,60 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +logon.title=DataCDInfo Logon +register.title=Register A New User +prompt.username=Username +prompt.password=Password +prompt.password2=Retype Password +errors.invalid.owner=Invalid owner! +errors.incorrect.password=Incorrect password! +errors.existing.owner=Owner existed! +errors.invalid.password=Invalid password! +datacd.cdlabel=CD Label +datacd.cddescription=Content Description +datacd.cdsize=Size(Mbytes) +datacd.cdarchivedate=Archive Date +datacd.operations=Operations +datacd.operation.add=Add +datacd.operation.edit=Update +datacd.operation.remove=Remove +datacd.operation.logout=Log Out +datacd.operation.back=Return to list +general.welcome=Welcome +general.register=Register? +general.administration=Administration +button.submit=Submit +button.reset=Reset +button.update=Update +button.remove=Confirm to remove +button.add=Add +errors.duplicated.cdlabel=Duplicated CD Label! + +# Standard error messages for validator framework checks +errors.required={0} is required. +errors.minlength={0} cannot be less than {1} characters. +errors.maxlength={0} cannot be greater than {1} characters. +errors.invalid={0} is invalid. +errors.byte={0} must be an byte. +errors.short={0} must be an short. +errors.integer={0} must be an integer. +errors.long={0} must be an long. +errors.float={0} must be an float. +errors.double={0} must be an double. +errors.date={0} is not a date. +errors.range={0} is not in the range {1} through {2}. +errors.creditcard={0} is not a valid credit card number. +errors.email={0} is an invalid e-mail address. +errors.literal={0} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh.properties.template URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh.properties.template?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh.properties.template (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh.properties.template Mon Jan 11 06:19:47 2010 @@ -0,0 +1,60 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +logon.title=Êý¾ÝÅÌÐÅÏ¢µÇ¼ÇϵͳµÇ¼ +register.title=×¢²áÒ»¸öеÄÓû§ +prompt.username=Óû§Ãû +prompt.password=ÃÜÂë +prompt.password2=ÔÙ´ÎÊäÈëÃÜÂë +errors.invalid.owner=ÎÞЧÓû§£¡ +errors.incorrect.password=ÃÜÂë´íÎó£¡ +errors.existing.owner=Óû§ÒÑ´æÔÚ£¡ +errors.invalid.password=ÎÞЧÃÜÂ룡 +datacd.cdlabel=Êý¾ÝÅ̱êÇ© +datacd.cddescription=ÄÚÈÝÃèÊö +datacd.cdsize=´óС(Õ××Ö½Ú) +datacd.cdarchivedate=´æµµÈÕÆÚ +datacd.operations=²Ù×÷ +datacd.operation.add=Ìí¼Ó +datacd.operation.edit=¸üР+datacd.operation.remove=ɾ³ý +datacd.operation.logout=µÇ³ö +datacd.operation.back=·µ»ØÁбí +general.welcome=»¶Ó­ +general.register=×¢²á£¿ +general.administration=¹ÜÀí +button.submit=Ìá½» +button.reset=ÖØÖà +button.update=¸üР+button.remove=È·ÈÏɾ³ý +button.add=Ìí¼Ó +errors.duplicated.cdlabel=Öظ´µÄÊý¾ÝÅ̱êÇ©! + +# Standard error messages for validator framework checks +errors.required={0} ÊDZØÐëµÄ¡£ +errors.minlength={0} ²»ÄÜÉÙÓÚ {1} ¸öÓ¢ÎÄ×Ö·û¡£ +errors.maxlength={0} ²»ÄÜ´óÓÚ {1} ¸öÓ¢ÎÄ×Ö·û¡£ +errors.invalid={0} ÊÇÎÞЧµÄ¡£ +errors.byte={0} ±ØÐëÊÇÒ»¸ö×Ö½Ú¡£ +errors.short={0} ±ØÐëÊǶÌÕûÊý¡£ +errors.integer={0} ±ØÐëÊÇÕûÊý¡£ +errors.long={0} ±ØÐëÊdz¤ÕûÊý¡£ +errors.float={0} ±ØÐëÊǸ¡µãÊý¡£ +errors.double={0} ±ØÐëÊÇË«¾«¶È¸¡µãÊý¡£ +errors.date={0} ²»ÊÇÒ»¸öÓÐЧµÄÈÕÆÚ¡£ +errors.range={0} ²»ÔÚ {1} ºÍ {2} Ö®¼ä¡£ +errors.creditcard={0} ²»ÊÇÒ»¸öÓÐЧµÄÐÅÓÿ¨Õʺš£ +errors.email={0} ²»ÊÇÒ»¸öÓÐЧµÄµç×ÓÓʼþµØÖ·¡£ +errors.literal={0} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh_CN.properties URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh_CN.properties?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh_CN.properties (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/resources/DataCDInfoResources_zh_CN.properties Mon Jan 11 06:19:47 2010 @@ -0,0 +1,60 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +logon.title=\u6570\u636e\u76d8\u4fe1\u606f\u767b\u8bb0\u7cfb\u7edf\u767b\u5f55 +register.title=\u6ce8\u518c\u4e00\u4e2a\u65b0\u7684\u7528\u6237 +prompt.username=\u7528\u6237\u540d +prompt.password=\u5bc6\u7801 +prompt.password2=\u518d\u6b21\u8f93\u5165\u5bc6\u7801 +errors.invalid.owner=\u65e0\u6548\u7528\u6237\uff01 +errors.incorrect.password=\u5bc6\u7801\u9519\u8bef\uff01 +errors.existing.owner=\u7528\u6237\u5df2\u5b58\u5728\uff01 +errors.invalid.password=\u65e0\u6548\u5bc6\u7801\uff01 +datacd.cdlabel=\u6570\u636e\u76d8\u6807\u7b7e +datacd.cddescription=\u5185\u5bb9\u63cf\u8ff0 +datacd.cdsize=\u5927\u5c0f(\u5146\u5b57\u8282) +datacd.cdarchivedate=\u5b58\u6863\u65e5\u671f +datacd.operations=\u64cd\u4f5c +datacd.operation.add=\u6dfb\u52a0 +datacd.operation.edit=\u66f4\u65b0 +datacd.operation.remove=\u5220\u9664 +datacd.operation.logout=\u767b\u51fa +datacd.operation.back=\u8fd4\u56de\u5217\u8868 +general.welcome=\u6b22\u8fce +general.register=\u6ce8\u518c\uff1f +general.administration=\u7ba1\u7406 +button.submit=\u63d0\u4ea4 +button.reset=\u91cd\u7f6e +button.update=\u66f4\u65b0 +button.remove=\u786e\u8ba4\u5220\u9664 +button.add=\u6dfb\u52a0 +errors.duplicated.cdlabel=\u91cd\u590d\u7684\u6570\u636e\u76d8\u6807\u7b7e! + +# Standard error messages for validator framework checks +errors.required={0} \u662f\u5fc5\u987b\u7684\u3002 +errors.minlength={0} \u4e0d\u80fd\u5c11\u4e8e {1} \u4e2a\u82f1\u6587\u5b57\u7b26\u3002 +errors.maxlength={0} \u4e0d\u80fd\u5927\u4e8e {1} \u4e2a\u82f1\u6587\u5b57\u7b26\u3002 +errors.invalid={0} \u662f\u65e0\u6548\u7684\u3002 +errors.byte={0} \u5fc5\u987b\u662f\u4e00\u4e2a\u5b57\u8282\u3002 +errors.short={0} \u5fc5\u987b\u662f\u77ed\u6574\u6570\u3002 +errors.integer={0} \u5fc5\u987b\u662f\u6574\u6570\u3002 +errors.long={0} \u5fc5\u987b\u662f\u957f\u6574\u6570\u3002 +errors.float={0} \u5fc5\u987b\u662f\u6d6e\u70b9\u6570\u3002 +errors.double={0} \u5fc5\u987b\u662f\u53cc\u7cbe\u5ea6\u6d6e\u70b9\u6570\u3002 +errors.date={0} \u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u65e5\u671f\u3002 +errors.range={0} \u4e0d\u5728 {1} \u548c {2} \u4e4b\u95f4\u3002 +errors.creditcard={0} \u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u4fe1\u7528\u5361\u5e10\u53f7\u3002 +errors.email={0} \u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002 +errors.literal={0} Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/LICENSE URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/LICENSE?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/LICENSE (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/LICENSE Mon Jan 11 06:19:47 2010 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/MANIFEST.MF URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/MANIFEST.MF?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/MANIFEST.MF (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/META-INF/MANIFEST.MF Mon Jan 11 06:19:47 2010 @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: forrestxm +Build-Jdk: 1.6.0 + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/geronimo-web.xml URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/geronimo-web.xml (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/geronimo-web.xml Mon Jan 11 06:19:47 2010 @@ -0,0 +1,23 @@ + + + + + org.apache.geronimo.samples + DataCDInfo + 1.0 + car + + + + /DataCDInfo + geronimo-admin + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/validation.xml URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/validation.xml?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/validation.xml (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/validation.xml Mon Jan 11 06:19:47 2010 @@ -0,0 +1,132 @@ + + + + + + + + +
+ + + + + + + + + + + + + maxlength + + + 16 + + + + + minlength + + + 6 + + + + + +
+
+ + + + + + + maxlength + + + 18 + + + + + + + + + + maxlength + + + 255 + + + + + + + + + + maxlength + + + 3 + + + + + + + + datePattern + yyyy-MM-dd + + + +
+ + +
+
Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/web.xml?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/web.xml (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/WEB-INF/web.xml Mon Jan 11 06:19:47 2010 @@ -0,0 +1,96 @@ + + + + DataCDInfo + + index.html + index.jsp + + + org.apache.geronimo.samples.datacdinfo.web.struts1.DataCDInfoContextListener + + + action + org.apache.struts.action.ActionServlet + + config + + /WEB-INF/struts-config.xml + + + 1 + + + action + *.do + + + + ListOwnerServlet + ListOwnerServlet + org.apache.geronimo.samples.datacdinfo.web.ListOwnerServlet + + + ListOwnerServlet + /admin/ListOwners + + + + DataCDInfoAdminServlet + DataCDInfoAdminServlet + org.apache.geronimo.samples.datacdinfo.web.DataCDInfoAdminServlet + + + DataCDInfoAdminServlet + /admin/adminServlet + + + + + DataCDInfo Administration Resources + /admin/* + GET + POST + PUT + + + admin + superadmin + + + + + + + + + + + + + BASIC + geronimo-admin + + + + admin + + + + superadmin + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showCDs.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showCDs.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showCDs.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showCDs.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,45 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Show CDs Page + + +<% String contextpath = request.getContextPath(); %> + + + + + + + + + + +
DataCDInfo Home

+<% + String[] cds = (String[])request.getAttribute("cds"); + for (int i = 0 ; i < cds.length ; i ++) { +%> +<%= cds[i] %>
+<% } %> +
Admin Home
+ + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showOwners.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showOwners.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showOwners.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showOwners.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,49 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Show Owners Page + + +<% String contextpath = request.getContextPath(); %> + + + + + + + + + + + + + +
DataCDInfo Home

+<% + String servletpath = contextpath + "/" + request.getServletPath(); + String[] owners = (String[])request.getAttribute("owners"); + for (int i = 0 ; i < owners.length ; i ++) { +%> +<%= owners[i] %>
+<% } %> +
    
Admin Home
+ + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showPasswd.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showPasswd.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showPasswd.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/admin/showPasswd.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,48 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Show Password Page + + +<% String contextpath = request.getContextPath(); %> + + + + + + + + + + + + + +
DataCDInfo Home

+<% + String ownername = (String)request.getAttribute("ownername"); + String passwd = (String)request.getAttribute("passwd"); + +%> +<%= ownername %>=<%= passwd %>
+
    
Admin Home
+ + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/auth/logonError.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/auth/logonError.html?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/auth/logonError.html (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/auth/logonError.html Mon Jan 11 06:19:47 2010 @@ -0,0 +1,23 @@ + + +Authentication Error Page + + +

Authentication ERROR

+

Username, password or role incorrect.

+ + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/header.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/header.html?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/header.html (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/header.html Mon Jan 11 06:19:47 2010 @@ -0,0 +1,57 @@ + + + + + + + + Apache Geronimo Sample Applications + + + + + + + + + + + + +
+ + +   +
+ + + + + + + + +
+  Apache Geronimo Home | Documentation + | Sample Applications + + +
+ + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/index.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/index.html?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/index.html (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/index.html Mon Jan 11 06:19:47 2010 @@ -0,0 +1,30 @@ + + + + + Apache Geronimo Sample Application + + + + + + + + + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/AddCD.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/AddCD.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/AddCD.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/AddCD.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,92 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> +<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> +<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> +<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %> + + + + +Add CD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ : + + +
+ : + + +
+ : + + +
+ : + +  (yyyy-MM-dd) +
+ + + + + + + +   +
+ +
+ + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/ListCDs.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/ListCDs.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/ListCDs.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/ListCDs.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,102 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ page + import="org.apache.geronimo.samples.datacdinfo.web.struts1.DataCDForm"%> +<%@ page + import="org.apache.geronimo.samples.datacdinfo.web.struts1.OwnerForm"%> +<%@ page import="java.util.Collection"%> +<%@ page import="java.text.SimpleDateFormat"%> +<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> +<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%> +<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%> + + + + +ListCDs Page + + + + + + +! +
+ + + + + +
+  
+
+


+

+ + + + + + + + +<% + OwnerForm thisowner = (OwnerForm) session.getAttribute("owner"); + Collection datacds = thisowner.getDataCDs(); + if (datacds != null && !datacds.isEmpty()) { +%> + + + + + + + + + + + + + + + + <% } %> +
 (yyyy-MM-dd)
+ <% + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + String date = sdf.format(cdArchiveDate); + %> <%=date%> +   +
+ + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logon.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logon.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logon.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logon.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,81 @@ +<%-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> +<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+ : + + +
+ : + + +
+ + + + + + +   +
+ + + +
+ +
+ + + + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logout.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logout.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logout.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Logout.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,29 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> + + + + +logout + + +<% session.removeAttribute("owner"); %> + + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Register.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Register.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Register.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/Register.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,82 @@ +<%-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> +<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ : + + +
+ : + + +
+ : + + +
+ + + + + + + +
+ +
+ + + + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/UpdateCD.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/UpdateCD.jsp?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/UpdateCD.jsp (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/DataCDInfo-JTA-war/src/main/webapp/view/jsp/UpdateCD.jsp Mon Jan 11 06:19:47 2010 @@ -0,0 +1,92 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> +<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> +<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> + + + + +View/Update CD Details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ : + + +
+ : + + +
+ : + + +
+ : + +  (yyyy-MM-dd) +
+ + + + + + + +   +
+ +
+ + + + + Added: geronimo/samples/branches/2.2/samples/DataCDInfo/pom.xml URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.2/samples/DataCDInfo/pom.xml?rev=897763&view=auto ============================================================================== --- geronimo/samples/branches/2.2/samples/DataCDInfo/pom.xml (added) +++ geronimo/samples/branches/2.2/samples/DataCDInfo/pom.xml Mon Jan 11 06:19:47 2010 @@ -0,0 +1,61 @@ + + + + + + + + 4.0.0 + + + org.apache.geronimo.samples + samples + 2.2-SNAPSHOT + + + DataCDInfo + Geronimo Samples :: DataCDInfo + pom + ${geronimoVersion} + + + Geronimo DataCDInfo sample created from an archetype. + + + + DataCDInfo-JTA-ejb + DataCDInfo-JTA-war + DataCDInfo-JTA-ear + DataCDInfo-JTA-jetty + DataCDInfo-JTA-tomcat + + + + + + maven-site-plugin + false + + ${project.basedir}/docs + + + + +