pfc-prolog-cvs Mailing List for pfc-prolix (Page 15)
Status: Beta
Brought to you by:
ivanfrade
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(77) |
Jun
(37) |
Jul
(152) |
Aug
(180) |
Sep
(45) |
Oct
|
Nov
|
Dec
|
---|
From: <iva...@us...> - 2003-07-09 17:59:57
|
Update of /cvsroot/pfc-prolog/prolix/web In directory sc8-pr-cvs1:/tmp/cvs-serv32638 Removed Files: cliente.jsp Log Message: FIXED 768377: removed cliente.jsp --- cliente.jsp DELETED --- |
From: <iva...@us...> - 2003-07-09 17:50:41
|
Update of /cvsroot/pfc-prolog/prolix/web In directory sc8-pr-cvs1:/tmp/cvs-serv31000/web Modified Files: consult.jsp errorInProgram.jsp solutions.jsp Log Message: Removed README files to remove empty dirs Index: consult.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/consult.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** consult.jsp 9 Jul 2003 12:59:54 -0000 1.2 --- consult.jsp 9 Jul 2003 17:50:36 -0000 1.3 *************** *** 13,16 **** --- 13,20 ---- <ejb:useBean id="interpreter" type="org.asturlinux.frade.prolix.ejb.interfaces.ProlixMain"/> + <%! + String writedProgram = ""; + String currentConsult = ""; + %> <html> *************** *** 21,33 **** <body bgcolor="#768FDD"> <% ! boolean programLoaded = (boolean)session.getAttribute("loaded"); ! if (!programLoaded) ! { ! String writedProgram = (String)request.getParameter("programa"); interpreter.loadProgram(writedProgram); - session.setAttribute("loaded",true); - } - - String currentConsult = ""; %> --- 25,31 ---- <body bgcolor="#768FDD"> <% ! writedProgram = (String)request.getParameter("programa"); ! session.setAttribute("program",writedProgram); interpreter.loadProgram(writedProgram); %> *************** *** 38,42 **** <td> <hr align="left" size="1"> ! <%= interpreter.getProgram() %> <br><br><br><br> <hr align="left" size="1"> --- 36,40 ---- <td> <hr align="left" size="1"> ! <%= writedProgram %><br><br><br><br> <hr align="left" size="1"> *************** *** 45,49 **** <font size="+3">?</font> <input type="text" name="consulta" size="0" maxlength="100" ! value=" <%= currentConsult %> "> <br><br> <input type="submit" name="consult" value="Consultar"> <input type="submit" name="consult" value="Cargar otro programa"> --- 43,47 ---- <font size="+3">?</font> <input type="text" name="consulta" size="0" maxlength="100" ! value="Aqui la consulta "> <br><br> <input type="submit" name="consult" value="Consultar"> <input type="submit" name="consult" value="Cargar otro programa"> Index: errorInProgram.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/errorInProgram.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** errorInProgram.jsp 9 Jul 2003 12:59:54 -0000 1.2 --- errorInProgram.jsp 9 Jul 2003 17:50:36 -0000 1.3 *************** *** 1,25 **** <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <%@ page IsErrorPage="yes" %> ! <html> ! <head> ! <title>Error loading program</title> ! </head> - <body> - <h1>Error loading program</h1> - <% - String writedProgram = (String)request.getParameter("programa"); - %> - <jsp:forward page="index.jsp"> - <jsp:param name="program" value=" <%=writedProgram%> "/> - <jsp:param name="error" value=" <%=exception.getMessage()%>" /> - </jsp:forward> ! <hr> ! <address><a href="mailto:iv...@as...">Ivan Frade</a></address> ! <!-- Created: Tue Jul 8 21:34:29 CEST 2003 --> ! <!-- hhmts start --> ! Last modified: Wed Jul 9 12:40:01 CEST 2003 ! <!-- hhmts end --> ! </body> ! </html> --- 1,7 ---- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <%@ page isErrorPage="true" %> ! <jsp:forward page="index.jsp"> ! <jsp:param name="error" value=" <%= exception.getMessage() %> " /> ! </jsp:forward> \ No newline at end of file Index: solutions.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/solutions.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** solutions.jsp 9 Jul 2003 12:59:54 -0000 1.2 --- solutions.jsp 9 Jul 2003 17:50:36 -0000 1.3 *************** *** 13,20 **** <% ! String userConsult = (String)request.getParameter("consulta"); ! interpreter.loadConsult(userConsult); ! String currentProgram = interpreter.getProgram(); ! String currentConsult = interpreter.getCurrentConsult(); %> --- 13,23 ---- <% ! String action = (String) request.getParameter("action"); ! ! if (action.equals("consult")) ! { ! String userConsult = (String)request.getParameter("consulta"); ! interpreter.loadConsult(userConsult); ! } %> *************** *** 30,34 **** <hr align="left" size="10"> ! consulta: ?<%= currentConsult %> <hr align="left" size="10"> <% String resultInXml = interpreter.step(); %> --- 33,37 ---- <hr align="left" size="10"> ! consulta: ?<%= interpreter.getCurrentConsult() %> <hr align="left" size="10"> <% String resultInXml = interpreter.step(); %> *************** *** 45,50 **** <hr align="left" size="10"> <form action="solutions.jsp"> ! <input name="moreResult" value="Siguiente solucion" ! type="submit"> </form> </body> --- 48,52 ---- <hr align="left" size="10"> <form action="solutions.jsp"> ! <input name="moreResult" value="Siguiente solucion" type="submit"> </form> </body> |
From: <iva...@us...> - 2003-07-09 17:50:41
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv31000 Modified Files: build.xml Log Message: Removed README files to remove empty dirs Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** build.xml 9 Jul 2003 15:17:36 -0000 1.20 --- build.xml 9 Jul 2003 17:50:36 -0000 1.21 *************** *** 95,99 **** <property name="dist.dir" value="${basedir}/dist"/> ! <property name="client.conf" value="${build.generate.dir}/WEB-INF"/> <property name="src.web.dir" value="${basedir}/web"/> --- 95,100 ---- <property name="dist.dir" value="${basedir}/dist"/> ! <property name="client.conf" value="${build.generate.dir}/web/WEB-INF"/> ! <property name="client.generated" value="${build.generate.dir}/web"/> <property name="src.web.dir" value="${basedir}/web"/> *************** *** 341,345 **** </fileset> <fileset ! dir="${build.generate.dir}" includes="**/*.xml" > --- 342,346 ---- </fileset> <fileset ! dir="${client.generated}" includes="**/*.xml" > *************** *** 360,364 **** </fileset> <fileset ! dir="${build.generate.dir}" includes="**/*.xml" > --- 361,365 ---- </fileset> <fileset ! dir="${client.generated}" includes="**/*.xml" > |
From: <iva...@us...> - 2003-07-09 17:50:41
|
Update of /cvsroot/pfc-prolog/prolix/ejb-conf In directory sc8-pr-cvs1:/tmp/cvs-serv31000/ejb-conf Removed Files: README Log Message: Removed README files to remove empty dirs --- README DELETED --- |
From: <iva...@us...> - 2003-07-09 17:50:41
|
Update of /cvsroot/pfc-prolog/prolix/web-conf In directory sc8-pr-cvs1:/tmp/cvs-serv31000/web-conf Removed Files: README Log Message: Removed README files to remove empty dirs --- README DELETED --- |
From: <iva...@us...> - 2003-07-09 15:17:44
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv9340 Modified Files: build.xml Log Message: Fixed new .war creation process in compile-web target Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** build.xml 9 Jul 2003 15:09:28 -0000 1.19 --- build.xml 9 Jul 2003 15:17:36 -0000 1.20 *************** *** 353,364 **** <target name="compile-web" depends="xdoclet-generate"> - <copy todir="${src.web.dir}/WEB-INF"> - <fileset dir="${client.conf}" includes="**/*.xml"/> - </copy> - <jar jarfile="${dist.dir}/${war.file}"> <fileset dir="${src.web.dir}" includes="**/**" > </fileset> --- 353,365 ---- <target name="compile-web" depends="xdoclet-generate"> <jar jarfile="${dist.dir}/${war.file}"> <fileset dir="${src.web.dir}" includes="**/**" + > + </fileset> + <fileset + dir="${build.generate.dir}" + includes="**/*.xml" > </fileset> |
From: <iva...@us...> - 2003-07-09 15:09:31
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv7263 Modified Files: build.xml Log Message: XML client conf files packed directly from generated directory to war Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** build.xml 9 Jul 2003 12:59:54 -0000 1.18 --- build.xml 9 Jul 2003 15:09:28 -0000 1.19 *************** *** 95,99 **** <property name="dist.dir" value="${basedir}/dist"/> ! <property name="client.conf" value="${build.generate.dir}/web-conf"/> <property name="src.web.dir" value="${basedir}/web"/> --- 95,99 ---- <property name="dist.dir" value="${basedir}/dist"/> ! <property name="client.conf" value="${build.generate.dir}/WEB-INF"/> <property name="src.web.dir" value="${basedir}/web"/> *************** *** 334,345 **** <!-- Client web war --> - <copy todir="${src.web.dir}/WEB-INF"> - <fileset dir="${client.conf}" includes="**/*.xml"/> - </copy> - <jar jarfile="${dist.dir}/${war.file}"> <fileset dir="${src.web.dir}" includes="**/**" > </fileset> --- 334,346 ---- <!-- Client web war --> <jar jarfile="${dist.dir}/${war.file}"> <fileset dir="${src.web.dir}" includes="**/**" + > + </fileset> + <fileset + dir="${build.generate.dir}" + includes="**/*.xml" > </fileset> |
From: <iva...@us...> - 2003-07-09 14:04:13
|
Update of /cvsroot/pfc-prolog/prolix/web In directory sc8-pr-cvs1:/tmp/cvs-serv21831/web Modified Files: consult.jsp errorInProgram.jsp index.jsp solutions.jsp Log Message: Fixed some errors with new directory to generated .xml Index: consult.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/consult.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** consult.jsp 8 Jul 2003 22:27:42 -0000 1.1 --- consult.jsp 9 Jul 2003 12:59:54 -0000 1.2 *************** *** 21,33 **** <body bgcolor="#768FDD"> <% ! String hardCodedConsult = "hermano(X,Y)"; ! String currentConsult; ! String programSource = "hermano(X,Y):=padre(X,Z),padre(Y,Z).padre(Felipe,JC).padre(Helena,JC)"; ! ! String writedProgram = (String)request.getParameter("programa"); ! interpreter.loadProgram(programSource); ! interpreter.loadConsult(hardCodedConsult); ! currentConsult = interpreter.getCurrentConsult(); %> --- 21,33 ---- <body bgcolor="#768FDD"> <% ! boolean programLoaded = (boolean)session.getAttribute("loaded"); ! if (!programLoaded) ! { ! String writedProgram = (String)request.getParameter("programa"); ! interpreter.loadProgram(writedProgram); ! session.setAttribute("loaded",true); ! } ! String currentConsult = ""; %> Index: errorInProgram.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/errorInProgram.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** errorInProgram.jsp 8 Jul 2003 22:27:42 -0000 1.1 --- errorInProgram.jsp 9 Jul 2003 12:59:54 -0000 1.2 *************** *** 9,14 **** <h1>Error loading program</h1> <% ! String writedProgram = request.getParameter("programa"); ! %> <jsp:forward page="index.jsp"> --- 9,13 ---- <h1>Error loading program</h1> <% ! String writedProgram = (String)request.getParameter("programa"); %> <jsp:forward page="index.jsp"> *************** *** 21,25 **** <!-- Created: Tue Jul 8 21:34:29 CEST 2003 --> <!-- hhmts start --> ! Last modified: Tue Jul 8 22:50:52 CEST 2003 <!-- hhmts end --> </body> --- 20,24 ---- <!-- Created: Tue Jul 8 21:34:29 CEST 2003 --> <!-- hhmts start --> ! Last modified: Wed Jul 9 12:40:01 CEST 2003 <!-- hhmts end --> </body> Index: index.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/index.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.jsp 8 Jul 2003 22:27:42 -0000 1.1 --- index.jsp 9 Jul 2003 12:59:54 -0000 1.2 *************** *** 34,38 **** --- 34,41 ---- String exceptionError = (String)request.getParameter("error"); if (exceptionError != null) + { out.println(exceptionError); + out.println("<hr align=\"left\" size=\"1\">"); + } String program = (String)request.getParameter("program"); *************** *** 41,45 **** %> ! <hr align="left" size="1"> --- 44,48 ---- %> ! Index: solutions.jsp =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/web/solutions.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** solutions.jsp 8 Jul 2003 22:27:42 -0000 1.1 --- solutions.jsp 9 Jul 2003 12:59:54 -0000 1.2 *************** *** 3,6 **** --- 3,7 ---- java.io.*,javax.ejb.*,org.asturlinux.frade.prolix.ejb.interfaces.*, org.asturlinux.frade.prolix.interpreter.exceptions.*" %> + <%@ page error="errorInConsult.jsp" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> *************** *** 12,15 **** --- 13,18 ---- <% + String userConsult = (String)request.getParameter("consulta"); + interpreter.loadConsult(userConsult); String currentProgram = interpreter.getProgram(); String currentConsult = interpreter.getCurrentConsult(); *************** *** 32,36 **** <c:set var="xsl"> ! <c:import url="solution.xslt" /> </c:set> --- 35,39 ---- <c:set var="xsl"> ! <c:import url="xsl/solution.xslt" /> </c:set> |
From: <iva...@us...> - 2003-07-09 13:57:35
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv21831 Modified Files: build.xml Log Message: Fixed some errors with new directory to generated .xml Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** build.xml 9 Jul 2003 09:29:28 -0000 1.17 --- build.xml 9 Jul 2003 12:59:54 -0000 1.18 *************** *** 95,99 **** <property name="dist.dir" value="${basedir}/dist"/> ! <property name="client.conf" value="${basedir}/web-conf"/> <property name="src.web.dir" value="${basedir}/web"/> --- 95,99 ---- <property name="dist.dir" value="${basedir}/dist"/> ! <property name="client.conf" value="${build.generate.dir}/web-conf"/> <property name="src.web.dir" value="${basedir}/web"/> *************** *** 335,339 **** <!-- Client web war --> <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${dist.dir}" includes="**/*.xml"/> </copy> --- 335,339 ---- <!-- Client web war --> <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${client.conf}" includes="**/*.xml"/> </copy> *************** *** 353,357 **** <target name="compile-web" depends="xdoclet-generate"> <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${dist.dir}" includes="**/*.xml"/> </copy> --- 353,357 ---- <target name="compile-web" depends="xdoclet-generate"> <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${client.conf}" includes="**/*.xml"/> </copy> *************** *** 442,445 **** --- 442,448 ---- <delete> <fileset dir="." includes="**/*~" defaultexcludes="no" /> + </delete> + <delete> + <fileset dir="web-conf" includes="**/*.xml" /> </delete> <delete |
From: <iva...@us...> - 2003-07-09 13:57:17
|
Update of /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb In directory sc8-pr-cvs1:/tmp/cvs-serv21831/src/org/asturlinux/frade/prolix/ejb/sessionjb Modified Files: ProlixMainBean.java Log Message: Fixed some errors with new directory to generated .xml Index: ProlixMainBean.java =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMainBean.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ProlixMainBean.java 8 Jul 2003 22:27:42 -0000 1.15 --- ProlixMainBean.java 9 Jul 2003 12:59:54 -0000 1.16 *************** *** 45,49 **** * @web:ejb-ref * description="Prolix Main EJB" ! * name="ejb/ProlixMain" * type="Session" * home="org.asturlinux.frade.prolix.ejb.sessionjb.ProlixMainHome" --- 45,49 ---- * @web:ejb-ref * description="Prolix Main EJB" ! * name="ProlixMain" * type="Session" * home="org.asturlinux.frade.prolix.ejb.sessionjb.ProlixMainHome" |
From: <iva...@us...> - 2003-07-09 09:54:32
|
Update of /cvsroot/pfc-prolog/prolix/web/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv31251 Removed Files: jboss-web.xml web.xml Log Message: Removed .xml conf files in web/WEB-INF --- jboss-web.xml DELETED --- --- web.xml DELETED --- |
From: <iva...@us...> - 2003-07-09 09:29:31
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv28795 Modified Files: build.xml Log Message: Added compile-web target in build.xml to pack and deploy ONLY client side Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** build.xml 9 Jul 2003 09:22:12 -0000 1.16 --- build.xml 9 Jul 2003 09:29:28 -0000 1.17 *************** *** 348,371 **** <!-- =================================================================== --> ! <!-- Compiles the WEB source code --> <!-- =================================================================== --> ! <!-- ! <target name="compile-web" depends="compile" if="servlet-lib.path"> ! <mkdir dir="${build.war.dir}"/> ! <path id="web.path"> ! <path refid="base.path"/> ! <pathelement location="${servlet-lib.path}"/> ! </path> ! <javac ! destdir="${build.war.dir}" ! debug="on" ! deprecation="off" ! optimize="on" ! classpathref="web.path" ! > ! <src path="${src.servlet.dir}"/> ! </javac> </target> ! --> <!-- =================================================================== --> --- 348,369 ---- <!-- =================================================================== --> ! <!-- Used when only changes the web part (don't need to recompile server side) --> <!-- =================================================================== --> ! ! <target name="compile-web" depends="xdoclet-generate"> ! <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${dist.dir}" includes="**/*.xml"/> ! </copy> ! ! <jar jarfile="${dist.dir}/${war.file}"> ! <fileset ! dir="${src.web.dir}" ! includes="**/**" ! > ! </fileset> ! </jar> ! <copy file="${dist.dir}/${war.file}" todir="${jboss.deploy}" /> </target> ! <!-- =================================================================== --> |
From: <iva...@us...> - 2003-07-09 09:22:15
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv27923 Modified Files: build.xml Log Message: FIXED 768318. Corrected property name. now build and deploy right Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** build.xml 8 Jul 2003 22:27:42 -0000 1.15 --- build.xml 9 Jul 2003 09:22:12 -0000 1.16 *************** *** 335,342 **** <!-- Client web war --> <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${dist}" includes="**/*.xml"/> </copy> ! <jar jarfile="${dist}/${war.file}"> <fileset dir="${src.web.dir}" --- 335,342 ---- <!-- Client web war --> <copy todir="${src.web.dir}/WEB-INF"> ! <fileset dir="${dist.dir}" includes="**/*.xml"/> </copy> ! <jar jarfile="${dist.dir}/${war.file}"> <fileset dir="${src.web.dir}" |
From: <iva...@us...> - 2003-07-08 22:30:31
|
Update of /cvsroot/pfc-prolog/prolix/web/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv980 Added Files: fmt-rt.tld Log Message: file forgeted last commit --- NEW FILE: fmt-rt.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>fmt_rt</short-name> <uri>http://java.sun.com/jstl/fmt_rt</uri> <display-name>JSTL fmt RT</display-name> <description>JSTL 1.0 i18n-capable formatting library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlFmtTLV </validator-class> <description> Provides core validation features for JSTL tags. </description> </validator> <tag> <name>requestEncoding</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag</tag-class> <body-content>empty</body-content> <description> Sets the request character encoding </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>setLocale</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag</tag-class> <body-content>empty</body-content> <description> Stores the given locale in the locale configuration variable </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>variant</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>timeZone</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag</tag-class> <body-content>JSP</body-content> <description> Specifies the time zone for any time formatting or parsing actions nested in its body </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>setTimeZone</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag</tag-class> <body-content>empty</body-content> <description> Stores the given time zone in the time zone configuration variable </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>bundle</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.BundleTag</tag-class> <body-content>JSP</body-content> <description> Loads a resource bundle to be used by its tag body </description> <attribute> <name>basename</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>prefix</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>setBundle</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag</tag-class> <body-content>empty</body-content> <description> Loads a resource bundle and stores it in the named scoped variable or the bundle configuration variable </description> <attribute> <name>basename</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>message</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.MessageTag</tag-class> <body-content>JSP</body-content> <description> Maps key to localized message and performs parametric replacement </description> <attribute> <name>key</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>bundle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParamTag</tag-class> <body-content>JSP</body-content> <description> Supplies an argument for parametric replacement to a containing <message> tag </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatNumber</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag</tag-class> <body-content>JSP</body-content> <description> Formats a numeric value as a number, currency, or percentage </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>currencyCode</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>currencySymbol</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>groupingUsed</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>maxIntegerDigits</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>minIntegerDigits</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>maxFractionDigits</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>minFractionDigits</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>parseNumber</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag</tag-class> <body-content>JSP</body-content> <description> Parses the string representation of a number, currency, or percentage </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>parseLocale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>integerOnly</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>formatDate</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag</tag-class> <body-content>empty</body-content> <description> Formats a date and/or time using the supplied styles and pattern </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>dateStyle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>timeStyle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>timeZone</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>parseDate</name> <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParseDateTag</tag-class> <body-content>JSP</body-content> <description> Parses the string representation of a date and/or time </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>dateStyle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>timeStyle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>timeZone</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>parseLocale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> |
From: <iva...@us...> - 2003-07-08 22:27:47
|
Update of /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb In directory sc8-pr-cvs1:/tmp/cvs-serv387/src/org/asturlinux/frade/prolix/ejb/sessionjb Modified Files: ProlixMainBean.java Log Message: Added web client to proyect Index: ProlixMainBean.java =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMainBean.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ProlixMainBean.java 4 Jul 2003 13:06:37 -0000 1.14 --- ProlixMainBean.java 8 Jul 2003 22:27:42 -0000 1.15 *************** *** 40,43 **** --- 40,56 ---- * jndi-name="org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMain" * + * @ejb:ejb-ref ejb-name="ProlixMain" + * view-type="remote" + * ref-name="ProlixMain" + * @web:ejb-ref + * description="Prolix Main EJB" + * name="ejb/ProlixMain" + * type="Session" + * home="org.asturlinux.frade.prolix.ejb.sessionjb.ProlixMainHome" + * remote="org.asturlinux.frade.prolix.ejb.sessionjb.ProlixMain" + * + * @jboss:ejb-ref-jndi + * ref-name="ProlixMain" + * jndi-name="org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMain" **/ |
From: <iva...@us...> - 2003-07-08 22:27:47
|
Update of /cvsroot/pfc-prolog/prolix/web/xsl In directory sc8-pr-cvs1:/tmp/cvs-serv387/web/xsl Added Files: solution.xslt Log Message: Added web client to proyect --- NEW FILE: solution.xslt --- <xslt:stylesheet xmlns:xslt="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xslt:template match="result"> <xslt:choose> <xslt:when test="@number"> <h2> Solucion <xslt:value-of select="@number"/> </h2> <xslt:if test="substitution" > <UL> <xslt:apply-templates select="substitution"/> </UL> </xslt:if> </xslt:when> <xslt:otherwise> <h2> Solucion </h2> No </xslt:otherwise> </xslt:choose> </xslt:template> <xslt:template match="substitution"> <LI><TT> <xslt:value-of select="@variable"/> | <xslt:value-of select="@value"/> </TT></LI> </xslt:template> </xslt:stylesheet> |
From: <iva...@us...> - 2003-07-08 22:27:47
|
Update of /cvsroot/pfc-prolog/prolix In directory sc8-pr-cvs1:/tmp/cvs-serv387 Modified Files: build.xml Log Message: Added web client to proyect Index: build.xml =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/build.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** build.xml 2 Jul 2003 19:33:06 -0000 1.14 --- build.xml 8 Jul 2003 22:27:42 -0000 1.15 *************** *** 7,29 **** <project name="prolix" default="main" basedir="."> ! <property environment="env"/> ! <property name="jboss.home" value="${env.JBOSS_HOME}" /> ! <property file=".ant.properties" /> ! <property name="Name" value="Prolix"/> ! <property name="version" value="1.1"/> ! <property name="interpreter" value="prolix-dummy-interpreter.jar"/> ! ! <target name="check-jboss" unless="jboss.home"> ! <fail> ! Property "jboss.home" is not set. Please use the file ! ".ant.properties" in this directory ${basedir} to ! set this property. It must point to the directory which ! contains the following directory: "deploy", "conf", "tmp" ! etc. ! </fail> ! </target> ! <target name="wrong-jboss" unless="jboss.present"> ! <fail> Property "jboss.home" is set but it does not seem to point to the right directory. The file "run.jar" --- 7,30 ---- <project name="prolix" default="main" basedir="."> ! <property environment="env"/> ! <property name="jboss.home" value="${env.JBOSS_HOME}" /> ! <property file=".ant.properties" /> ! <property name="Name" value="Prolix"/> ! <property name="version" value="1.1"/> ! <property name="interpreter" value="prolix-dummy-interpreter.jar"/> ! <property name="war.file" value="prolixjsp.war"/> ! ! <target name="check-jboss" unless="jboss.home"> ! <fail> ! Property "jboss.home" is not set. Please use the file ! ".ant.properties" in this directory ${basedir} to ! set this property. It must point to the directory which ! contains the following directory: "deploy", "conf", "tmp" ! etc. ! </fail> ! </target> ! <target name="wrong-jboss" unless="jboss.present"> ! <fail> Property "jboss.home" is set but it does not seem to point to the right directory. The file "run.jar" *************** *** 94,97 **** --- 95,100 ---- <property name="dist.dir" value="${basedir}/dist"/> + <property name="client.conf" value="${basedir}/web-conf"/> + <property name="src.web.dir" value="${basedir}/web"/> <!-- Removed properties *************** *** 102,106 **** <property name="build.bin.dir" value="${build.dir}/bin"/> <property name="src.servlet.dir" value="${src.main.dir}/servlet"/> - <property name="src.web.dir" value="${src.dir}/web"/> <property name="src.resources.dir" value="${src.dir}/resources"/> <property name="build.javadocs.dir" value="${build.dir}/docs/api"/> --- 105,108 ---- *************** *** 184,190 **** validateXml="false" /> </ejbdoclet> </target> ! <!-- =================================================================== --> <!-- Compiles the source code --> --- 186,269 ---- validateXml="false" /> + </ejbdoclet> + <taskdef + name="webdoclet" + classname="xdoclet.web.WebDocletTask" + > + <classpath refid="xdoclet.path"/> + </taskdef> + + <webdoclet + sourcepath="${src.ejb.dir}" + destdir="${client.conf}" + classpathref="base.path" + excludedtags="@version,@author" + force="${xdoclet.force}" + mergedir="${src.resources.dir}/xdoclet" + > + <fileset dir="${src.ejb.dir}"> + <include name="**/*Bean.java"/> + </fileset> + + <deploymentdescriptor + displayname="ProlixWebClient" + description="Second approach to web client" + sessiontimeout="30"> + <contextparam + name="ProlixMain" + value="org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMain"> + </contextparam> + + <taglib + uri="http://java.sun.com/jstl/fmt" + location="/WEB-INF/fmt.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/fmt-rt" + location="/WEB-INF/fmt-rt.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/core" + location="/WEB-INF/c.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/core-rt" + location="/WEB-INF/c-rt.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/sql" + location="/WEB-INF/sql.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/sql-rt" + location="/WEB-INF/sql-rt.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/x" + location="/WEB-INF/x.tld"> + </taglib> + + <taglib + uri="http://java.sun.com/jstl/x-rt" + location="/WEB-INF/x-rt.tld"> + </taglib> + + <taglib + uri="ejbtags" + location="/WEB-INF/lib/ejbtags.jar"> + </taglib> + + </deploymentdescriptor> + <jbosswebxml/> + </webdoclet> </target> ! <!-- =================================================================== --> <!-- Compiles the source code --> *************** *** 254,257 **** --- 333,348 ---- </jar> + <!-- Client web war --> + <copy todir="${src.web.dir}/WEB-INF"> + <fileset dir="${dist}" includes="**/*.xml"/> + </copy> + + <jar jarfile="${dist}/${war.file}"> + <fileset + dir="${src.web.dir}" + includes="**/**" + > + </fileset> + </jar> </target> *************** *** 287,290 **** --- 378,382 ---- <target name="deploy-server" depends="jar"> <copy file="${dist.dir}/prolix-beans.jar" todir="${jboss.deploy}"/> + <copy file="${dist.dir}/${war.file}" todir="${jboss.deploy}" /> </target> |
Update of /cvsroot/pfc-prolog/prolix/web/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv387/web/WEB-INF Added Files: c-rt.tld c.tld fmt.tld jboss-web.xml sql-rt.tld sql.tld web.xml x-rt.tld x.tld Log Message: Added web client to proyect --- NEW FILE: c-rt.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>c_rt</short-name> <uri>http://java.sun.com/jstl/core_rt</uri> <display-name>JSTL core RT</display-name> <description>JSTL 1.0 core library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlCoreTLV </validator-class> <description> Provides core validation features for JSTL tags. </description> </validator> <tag> <name>catch</name> <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> <body-content>JSP</body-content> <description> Catches any Throwable that occurs in its body and optionally exposes it. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>choose</name> <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> <body-content>JSP</body-content> <description> Simple conditional tag that establishes a context for mutually exclusive conditional operations, marked by <when> and <otherwise> </description> </tag> <tag> <name>if</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class> <body-content>JSP</body-content> <description> Simple conditional tag, which evalutes its body if the supplied condition is true and optionally exposes a Boolean scripting variable representing the evaluation of this condition </description> <attribute> <name>test</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>boolean</type> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>import</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class> <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> <body-content>JSP</body-content> <description> Retrieves an absolute or relative URL and exposes its contents to either the page, a String in 'var', or a Reader in 'varReader'. </description> <attribute> <name>url</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varReader</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>context</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>charEncoding</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>forEach</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class> <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> <body-content>JSP</body-content> <description> The basic iteration tag, accepting many different collection types and supporting subsetting and other functionality </description> <attribute> <name>items</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.Object</type> </attribute> <attribute> <name>begin</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>int</type> </attribute> <attribute> <name>end</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>int</type> </attribute> <attribute> <name>step</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>int</type> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varStatus</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>forTokens</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class> <body-content>JSP</body-content> <description> Iterates over tokens, separated by the supplied delimeters </description> <attribute> <name>items</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>delims</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>begin</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>int</type> </attribute> <attribute> <name>end</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>int</type> </attribute> <attribute> <name>step</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>int</type> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varStatus</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>out</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class> <body-content>JSP</body-content> <description> Like <%= ... >, but for expressions. </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>default</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>escapeXml</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>otherwise</name> <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> <body-content>JSP</body-content> <description> Subtag of <choose> that follows <when> tags and runs only if all of the prior conditions evaluated to 'false' </description> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class> <body-content>JSP</body-content> <description> Adds a parameter to a containing 'import' tag's URL. </description> <attribute> <name>name</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>redirect</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class> <body-content>JSP</body-content> <description> Redirects to a new URL. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>url</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>context</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>remove</name> <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> <body-content>empty</body-content> <description> Removes a scoped variable (from a particular scope, if specified). </description> <attribute> <name>var</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>set</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class> <body-content>JSP</body-content> <description> Sets the result of an expression evaluation in a 'scope' </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>target</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>property</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>url</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class> <body-content>JSP</body-content> <description> Creates a URL with optional query parameters. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>context</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>when</name> <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class> <body-content>JSP</body-content> <description> Subtag of <choose> that includes its body if its condition evalutes to 'true' </description> <attribute> <name>test</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>boolean</type> </attribute> </tag> </taglib> --- NEW FILE: c.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>c</short-name> <uri>http://java.sun.com/jstl/core</uri> <display-name>JSTL core</display-name> <description>JSTL 1.0 core library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlCoreTLV </validator-class> <init-param> <param-name>expressionAttributes</param-name> <param-value> out:value out:default out:escapeXml if:test import:url import:context import:charEncoding forEach:items forEach:begin forEach:end forEach:step forTokens:items forTokens:begin forTokens:end forTokens:step param:encode param:name param:value redirect:context redirect:url set:property set:target set:value url:context url:value when:test </param-value> <description> Whitespace-separated list of colon-separated token pairs describing tag:attribute combinations that accept expressions. The validator uses this information to determine which attributes need their syntax validated. </description> </init-param> </validator> <tag> <name>catch</name> <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> <body-content>JSP</body-content> <description> Catches any Throwable that occurs in its body and optionally exposes it. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>choose</name> <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> <body-content>JSP</body-content> <description> Simple conditional tag that establishes a context for mutually exclusive conditional operations, marked by <when> and <otherwise> </description> </tag> <tag> <name>out</name> <tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class> <body-content>JSP</body-content> <description> Like <%= ... >, but for expressions. </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>default</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>escapeXml</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>if</name> <tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class> <body-content>JSP</body-content> <description> Simple conditional tag, which evalutes its body if the supplied condition is true and optionally exposes a Boolean scripting variable representing the evaluation of this condition </description> <attribute> <name>test</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>import</name> <tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class> <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> <body-content>JSP</body-content> <description> Retrieves an absolute or relative URL and exposes its contents to either the page, a String in 'var', or a Reader in 'varReader'. </description> <attribute> <name>url</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varReader</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>context</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>charEncoding</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>forEach</name> <tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class> <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> <body-content>JSP</body-content> <description> The basic iteration tag, accepting many different collection types and supporting subsetting and other functionality </description> <attribute> <name>items</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>begin</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>end</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>step</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varStatus</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>forTokens</name> <tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class> <body-content>JSP</body-content> <description> Iterates over tokens, separated by the supplied delimeters </description> <attribute> <name>items</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>delims</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>begin</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>end</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>step</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varStatus</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>otherwise</name> <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> <body-content>JSP</body-content> <description> Subtag of <choose> that follows <when> tags and runs only if all of the prior conditions evaluated to 'false' </description> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class> <body-content>JSP</body-content> <description> Adds a parameter to a containing 'import' tag's URL. </description> <attribute> <name>name</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>redirect</name> <tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class> <body-content>JSP</body-content> <description> Redirects to a new URL. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>url</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>context</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>remove</name> <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> <body-content>empty</body-content> <description> Removes a scoped variable (from a particular scope, if specified). </description> <attribute> <name>var</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>set</name> <tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class> <body-content>JSP</body-content> <description> Sets the result of an expression evaluation in a 'scope' </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>target</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>property</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>url</name> <tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class> <body-content>JSP</body-content> <description> Prints or exposes a URL with optional query parameters (via the c:param tag). </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>value</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>context</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>when</name> <tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class> <body-content>JSP</body-content> <description> Subtag of <choose> that includes its body if its condition evalutes to 'true' </description> <attribute> <name>test</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: fmt.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>fmt</short-name> <uri>http://java.sun.com/jstl/fmt</uri> <display-name>JSTL fmt</display-name> <description>JSTL 1.0 i18n-capable formatting library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlFmtTLV </validator-class> <init-param> <param-name>expressionAttributes</param-name> <param-value> requestEncoding:value setLocale:value setLocale:variant timeZone:value setTimeZone:value bundle:basename bundle:prefix setBundle:basename message:key message:bundle param:value formatNumber:value formatNumber:pattern formatNumber:currencyCode formatNumber:currencySymbol formatNumber:groupingUsed formatNumber:maxIntegerDigits formatNumber:minIntegerDigits formatNumber:maxFractionDigits formatNumber:minFractionDigits parseNumber:value parseNumber:pattern parseNumber:parseLocale parseNumber:integerOnly formatDate:value formatDate:pattern formatDate:timeZone parseDate:value parseDate:pattern parseDate:timeZone parseDate:parseLocale </param-value> <description> Whitespace-separated list of colon-separated token pairs describing tag:attribute combinations that accept expressions. The validator uses this information to determine which attributes need their syntax validated. </description> </init-param> </validator> <tag> <name>requestEncoding</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.RequestEncodingTag</tag-class> <body-content>empty</body-content> <description> Sets the request character encoding </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>setLocale</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetLocaleTag</tag-class> <body-content>empty</body-content> <description> Stores the given locale in the locale configuration variable </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>variant</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>timeZone</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.TimeZoneTag</tag-class> <body-content>JSP</body-content> <description> Specifies the time zone for any time formatting or parsing actions nested in its body </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>setTimeZone</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetTimeZoneTag</tag-class> <body-content>empty</body-content> <description> Stores the given time zone in the time zone configuration variable </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>bundle</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.BundleTag</tag-class> <body-content>JSP</body-content> <description> Loads a resource bundle to be used by its tag body </description> <attribute> <name>basename</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>prefix</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>setBundle</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetBundleTag</tag-class> <body-content>empty</body-content> <description> Loads a resource bundle and stores it in the named scoped variable or the bundle configuration variable </description> <attribute> <name>basename</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>message</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.MessageTag</tag-class> <body-content>JSP</body-content> <description> Maps key to localized message and performs parametric replacement </description> <attribute> <name>key</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>bundle</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.ParamTag</tag-class> <body-content>JSP</body-content> <description> Supplies an argument for parametric replacement to a containing <message> tag </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>formatNumber</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatNumberTag</tag-class> <body-content>JSP</body-content> <description> Formats a numeric value as a number, currency, or percentage </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>currencyCode</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>currencySymbol</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>groupingUsed</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>maxIntegerDigits</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>minIntegerDigits</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>maxFractionDigits</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>minFractionDigits</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>parseNumber</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag</tag-class> <body-content>JSP</body-content> <description> Parses the string representation of a number, currency, or percentage </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>parseLocale</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>integerOnly</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>formatDate</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatDateTag</tag-class> <body-content>empty</body-content> <description> Formats a date and/or time using the supplied styles and pattern </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dateStyle</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>timeStyle</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>timeZone</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>parseDate</name> <tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseDateTag</tag-class> <body-content>JSP</body-content> <description> Parses the string representation of a date and/or time </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dateStyle</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>timeStyle</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>timeZone</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>parseLocale</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: jboss-web.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web.dtd"> <jboss-web> <!-- Resource references --> <!-- EJB References --> <ejb-ref> <ejb-ref-name>ProlixMain</ejb-ref-name> <jndi-name>org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMain</jndi-name> </ejb-ref> </jboss-web> --- NEW FILE: sql-rt.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>sql_rt</short-name> <uri>http://java.sun.com/jstl/sql_rt</uri> <display-name>JSTL sql RT</display-name> <description>JSTL 1.0 sql library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlSqlTLV </validator-class> <description> Provides core validation features for JSTL tags. </description> </validator> <tag> <name>transaction</name> <tag-class>org.apache.taglibs.standard.tag.rt.sql.TransactionTag</tag-class> <body-content>JSP</body-content> <description> Provides nested database action elements with a shared Connection, set up to execute all statements as one transaction. </description> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>isolation</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>query</name> <tag-class>org.apache.taglibs.standard.tag.rt.sql.QueryTag</tag-class> <body-content>JSP</body-content> <description> Executes the SQL query defined in its body or through the sql attribute. </description> <attribute> <name>var</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>sql</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>startRow</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>maxRows</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>update</name> <tag-class>org.apache.taglibs.standard.tag.rt.sql.UpdateTag</tag-class> <body-content>JSP</body-content> <description> Executes the SQL update defined in its body or through the sql attribute. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>sql</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.rt.sql.ParamTag</tag-class> <body-content>JSP</body-content> <description> Sets a parameter in an SQL statement to the specified value. </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>dateParam</name> <tag-class>org.apache.taglibs.standard.tag.rt.sql.DateParamTag</tag-class> <body-content>empty</body-content> <description> Sets a parameter in an SQL statement to the specified java.util.Date value. </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>setDataSource</name> <tag-class>org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag</tag-class> <body-content>empty</body-content> <description> Creates a simple DataSource suitable only for prototyping. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>driver</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>url</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>user</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>password</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: sql.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>sql</short-name> <uri>http://java.sun.com/jstl/sql</uri> <display-name>JSTL sql</display-name> <description>JSTL 1.0 sql library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlSqlTLV </validator-class> <init-param> <param-name>expressionAttributes</param-name> <param-value> transaction:dataSource transaction:isolation query:sql query:dataSource query:startRow query:maxRows update:sql update:dataSource param:value dateParam:value dateParam:type setDataSource:dataSource setDataSource:driver setDataSource:url setDataSource:user setDataSource:password </param-value> <description> Whitespace-separated list of colon-separated token pairs describing tag:attribute combinations that accept expressions. The validator uses this information to determine which attributes need their syntax validated. </description> </init-param> </validator> <tag> <name>transaction</name> <tag-class>org.apache.taglibs.standard.tag.el.sql.TransactionTag</tag-class> <body-content>JSP</body-content> <description> Provides nested database action elements with a shared Connection, set up to execute all statements as one transaction. </description> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>isolation</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>query</name> <tag-class>org.apache.taglibs.standard.tag.el.sql.QueryTag</tag-class> <body-content>JSP</body-content> <description> Executes the SQL query defined in its body or through the sql attribute. </description> <attribute> <name>var</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>sql</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>startRow</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>maxRows</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>update</name> <tag-class>org.apache.taglibs.standard.tag.el.sql.UpdateTag</tag-class> <body-content>JSP</body-content> <description> Executes the SQL update defined in its body or through the sql attribute. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>sql</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.el.sql.ParamTag</tag-class> <body-content>JSP</body-content> <description> Sets a parameter in an SQL statement to the specified value. </description> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>dateParam</name> <tag-class>org.apache.taglibs.standard.tag.el.sql.DateParamTag</tag-class> <body-content>empty</body-content> <description> Sets a parameter in an SQL statement to the specified java.util.Date val ue. </description> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>type</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>setDataSource</name> <tag-class>org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag</tag-class> <body-content>empty</body-content> <description> Creates a simple DataSource suitable only for prototyping. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>driver</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>url</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>user</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>password</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: web.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>ProlixWebClient</display-name> <description>Second approach to web client</description> <context-param> <param-name>ProlixMain</param-name> <param-value>org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMain</param-value> <description></description> </context-param> <!-- To use non XDoclet filters, create a filters.xml file that contains the additional filters (eg Sitemesh) and place it in your projects merge dir. Don't include filter-mappings in this file, include them in a file called filter-mappings.xml and put that in the same directory. --> <!-- To use non XDoclet servlets, create a servlets.xml file that contains the additional servlets (eg Struts) and place it in your projects merge dir. Don't include servlet-mappings in this file, include them in a file called servlet-mappings.xml and put that in the same directory. --> <session-config> <session-timeout>30</session-timeout> </session-config> <!-- To specify mime mappings, create a file named mime-mappings.xml, put it in your project's mergedir. Organize mime-mappings.xml following this DTD slice: <!ELEMENT mime-mapping (extension, mime-type)> --> <!-- To specify error pages, create a file named error-pages.xml, put it in your project's mergedir. Organize error-pages.xml following this DTD slice: <!ELEMENT error-page ((error-code | exception-type), location)> --> <!-- To add taglibs by xml, create a file called taglibs.xml and place it in your merge dir. --> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri> <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri> <taglib-location>/WEB-INF/c-rt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri> <taglib-location>/WEB-INF/sql.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri> <taglib-location>/WEB-INF/sql-rt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/x</taglib-uri> <taglib-location>/WEB-INF/x.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri> <taglib-location>/WEB-INF/x-rt.tld</taglib-location> </taglib> <taglib> <taglib-uri>ejbtags</taglib-uri> <taglib-location>/WEB-INF/lib/ejbtags.jar</taglib-location> </taglib> <!-- To set up security settings for your web app, create a file named web-security.xml, put it in your project's mergedir. Organize web-security.xml following this DTD slice: <!ELEMENT security-constraint (display-name?, web-resource-collection+, auth-constraint?, user-data-constraint?)> <!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)> <!ELEMENT web-resource-name (#PCDATA)> <!ELEMENT url-pattern (#PCDATA)> <!ELEMENT http-method (#PCDATA)> <!ELEMENT user-data-constraint (description?, transport-guarantee)> <!ELEMENT transport-guarantee (#PCDATA)> <!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)> <!ELEMENT auth-method (#PCDATA)> <!ELEMENT realm-name (#PCDATA)> <!ELEMENT form-login-config (form-login-page, form-error-page)> <!ELEMENT form-login-page (#PCDATA)> <!ELEMENT form-error-page (#PCDATA)> --> <ejb-ref> <description>Prolix Main EJB</description> <ejb-ref-name>ProlixMain</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>org.asturlinux.frade.prolix.ejb.sessionjb.ProlixMainHome</home> <remote>org.asturlinux.frade.prolix.ejb.sessionjb.ProlixMain</remote> </ejb-ref> </web-app> --- NEW FILE: x-rt.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>x_rt</short-name> <uri>http://java.sun.com/jstl/xml_rt</uri> <display-name>JSTL XML RT</display-name> <description>JSTL 1.0 XML library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlXmlTLV </validator-class> <description> Provides validation features for JSTL XML tags. </description> </validator> <tag> <name>choose</name> <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> <body-content>JSP</body-content> <description> Simple conditional tag that establishes a context for mutually exclusive conditional operations, marked by <when> and <otherwise> </description> </tag> <tag> <name>out</name> <tag-class>org.apache.taglibs.standard.tag.rt.xml.ExprTag</tag-class> <body-content>empty</body-content> <description> Like <%= ... >, but for XPath expressions. </description> <attribute> <name>select</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>escapeXml</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>if</name> <tag-class>org.apache.taglibs.standard.tag.common.xml.IfTag</tag-class> <body-content>JSP</body-content> <description> XML conditional tag, which evalutes its body if the supplied XPath expression evalutes to 'true' as a boolean </description> <attribute> <name>select</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>forEach</name> <tag-class>org.apache.taglibs.standard.tag.common.xml.ForEachTag</tag-class> <body-content>JSP</body-content> <description> XML iteration tag. </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>select</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>otherwise</name> <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> <body-content>JSP</body-content> <description> Subtag of <choose> that follows <when> tags and runs only if all of the prior conditions evaluated to 'false' </description> </tag> <tag> <name>param</name> <tag-class>org.apache.taglibs.standard.tag.rt.xml.ParamTag</tag-class> <body-content>JSP</body-content> <description> Adds a parameter to a containing 'transform' tag's Transformer </description> <attribute> <name>name</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>parse</name> <tag-class>org.apache.taglibs.standard.tag.rt.xml.ParseTag</tag-class> <tei-class>org.apache.taglibs.standard.tei.XmlParseTEI</tei-class> <body-content>JSP</body-content> <description> Parses XML content from 'source' attribute or 'body' </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>varDom</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scopeDom</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>xml</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>systemId</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>filter</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>set</name> <tag-class>org.apache.taglibs.standard.tag.common.xml.SetTag</tag-class> <body-content>empty</body-content> <description> Saves the result of an XPath expression evaluation in a 'scope' </description> <attribute> <name>var</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>select</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>transform</name> <tag-class>org.apache.taglibs.standard.tag.rt.xml.TransformTag</tag-class> <tei-class>org.apache.taglibs.standard.tei.XmlTransformTEI</tei-class> <body-content>JSP</body-content> <description> Conducts a transformation given a source XML document and an XSLT stylesheet </description> <attribute> <name>var</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>result</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>xml</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>xmlSystemId</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>xslt</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>xsltSystemId</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>when</name> <tag-class>org.apache.taglibs.standard.tag.common.xml.WhenTag</tag-class> <body-content>JSP</body-content> <description> Subtag of <choose> that includes its body if its expression evalutes to 'true' </description> <attribute> <name>select</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: x.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>x</short-name> <uri>http://java.sun.com/jstl/xml</uri> <display-name>JSTL XML</display-name> <description>JSTL 1.0 XML library</description> <validator> <validator-class> org.apache.taglibs.standard.tlv.JstlXmlTLV </validator-class> <init-param> <param-name>expressionAttributes</param-name> <param-value> out:escapeXml parse:xml parse:systemId parse:filter transform:xml transform:xmlSystemId transform:xslt transform:xsltSystemId transform:result </param-value> <description> Whitespace-separated list of colon-separated token pairs describing tag:attribute combinations that accept expressions. The validator uses this information to determine which attributes need their syntax validated. </description> </init-param> </validator> <tag> <name>choose</name> <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> <body-content>JSP</body-content> <description> Simple conditional tag that establishes a context for mutually exclusive conditional operations, marked by <when> and <otherwise> </description> </tag> <tag> <name>out</name> <tag-class>org.apache.taglibs.standard.tag.el.xml.ExprTag</tag-class> <body-content>empty</body-content> <description> Like <%= ... >, but for XPath expressions. </description> <attribute> <name>select</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>escapeXml</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>if</name> <tag-class>org.apache.taglibs.standard.tag.common.xml.IfTag</tag-class> <body-content>JSP</body-content> <description> XML conditio... [truncated message content] |
From: <iva...@us...> - 2003-07-08 22:27:46
|
Update of /cvsroot/pfc-prolog/prolix/web In directory sc8-pr-cvs1:/tmp/cvs-serv387/web Added Files: cliente.jsp consult.jsp errorInProgram.jsp index.jsp solutions.jsp Log Message: Added web client to proyect --- NEW FILE: cliente.jsp --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ page import="java.util.*,java.rmi.*,javax.naming.*,javax.rmi.*, java.io.*,javax.ejb.*,org.asturlinux.frade.prolix.ejb.interfaces.*, org.asturlinux.frade.prolix.interpreter.exceptions.*" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> <html> <head> <title>Cliente prolix online</title> </head> <body> <h1>Cliente prolix online</h1> <%! private String hardCodedProgram = "hermano(X,Y):=padre(X,Z),padre(Y,Z).padre(Felipe,JC).padre(Helena,JC)"; private String hardCodedConsult = "hermano(X,Y)"; private ProlixMain interpreter; %> <% InitialContext ctx = new InitialContext(); ProlixMainHome home = (ProlixMainHome)ctx.lookup(ProlixMainHome.JNDI_NAME); // Create the interpreter bean interpreter = home.create(); interpreter.loadProgram(hardCodedProgram); interpreter.loadConsult(hardCodedConsult); %> Aqui el programa(nuevo): <br> <% out.println(interpreter.getProgram()); %> <br> Aqui la consulta: <br> <% out.println(interpreter.getCurrentConsult()); %> <br> Aqui el resultado de un step: <br> <% String resultInXml = interpreter.step(); %> <c:set var="xsl"> <c:import url="solution.xslt" /> </c:set> <x:transform xslt="${xsl}"> <% out.println(resultInXml); %> </x:transform> <br> Aqui el resultado de 2 step: <br> <% resultInXml = interpreter.step(); %> <x:transform xslt="${xsl}"> <% out.println(resultInXml); %> </x:transform> <hr> <address><a href="mailto:iv...@as...">Ivan Frade</a></address> <!-- Created: Fri Jul 4 17:51:23 CEST 2003 --> <!-- hhmts start --> Last modified: Sun Jul 6 21:03:22 CEST 2003 <!-- hhmts end --> </body> </html> --- NEW FILE: consult.jsp --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page import="java.util.*,java.rmi.*,javax.naming.*,javax.rmi.*, java.io.*,javax.ejb.*,org.asturlinux.frade.prolix.ejb.interfaces.*, org.asturlinux.frade.prolix.interpreter.exceptions.*" %> <%@ page errorPage="errorInProgram.jsp" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> <%@ taglib uri="ejbtags" prefix="ejb" %> <ejb:useBean id="interpreter" type="org.asturlinux.frade.prolix.ejb.interfaces.ProlixMain"/> <html> <head> <title>Program ready to consult</title> </head> <body bgcolor="#768FDD"> <% String hardCodedConsult = "hermano(X,Y)"; String currentConsult; String programSource = "hermano(X,Y):=padre(X,Z),padre(Y,Z).padre(Felipe,JC).padre(Helena,JC)"; String writedProgram = (String)request.getParameter("programa"); interpreter.loadProgram(programSource); interpreter.loadConsult(hardCodedConsult); currentConsult = interpreter.getCurrentConsult(); %> <h1>Prolix </h1> <table> <tr> <td> <hr align="left" size="1"> <%= interpreter.getProgram() %> <br><br><br><br> <hr align="left" size="1"> <form method="GET" enctype="text/plain" action="solutions.jsp"> consulta: <br> <font size="+3">?</font> <input type="text" name="consulta" size="0" maxlength="100" value=" <%= currentConsult %> "> <br><br> <input type="submit" name="consult" value="Consultar"> <input type="submit" name="consult" value="Cargar otro programa"> </form> </td> <td valign="top"> <form method="GET" enctype="text/plain"> Ultimas consultas:<br> <input TYPE="radio" NAME="old-consult" VALUE="ditu1" checked>hermano(carlos,X).<br> <input TYPE="radio" NAME="old-consult" VALUE="ditu2">padre(carlos,X).<br> <input TYPE="radio" NAME="old-consult" VALUE="ditu3">hermano(M,N).<br> </form> </td> </tr> </table> </body> </html> --- NEW FILE: errorInProgram.jsp --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ page IsErrorPage="yes" %> <html> <head> <title>Error loading program</title> </head> <body> <h1>Error loading program</h1> <% String writedProgram = request.getParameter("programa"); %> <jsp:forward page="index.jsp"> <jsp:param name="program" value=" <%=writedProgram%> "/> <jsp:param name="error" value=" <%=exception.getMessage()%>" /> </jsp:forward> <hr> <address><a href="mailto:iv...@as...">Ivan Frade</a></address> <!-- Created: Tue Jul 8 21:34:29 CEST 2003 --> <!-- hhmts start --> Last modified: Tue Jul 8 22:50:52 CEST 2003 <!-- hhmts end --> </body> </html> --- NEW FILE: index.jsp --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page import="java.util.*,java.rmi.*,javax.naming.*,javax.rmi.*, java.io.*,javax.ejb.*,org.asturlinux.frade.prolix.ejb.interfaces.*, org.asturlinux.frade.prolix.interpreter.exceptions.*" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> <%@ taglib uri="ejbtags" prefix="ejb" %> <!-- Obtain Home reference--> <ejb:useHome id="prolixHome" type="org.asturlinux.frade.prolix.ejb.interfaces.ProlixMainHome" location="org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMain" /> <!-- Obtain Bean reference. If don't exist, create new one --> <ejb:useBean id="interpreter" type="org.asturlinux.frade.prolix.ejb.interfaces.ProlixMain" scope="session"> <ejb:createBean instance="<%= prolixHome.create() %>" /> </ejb:useBean> <html> <head> <title>Prolix main</title> </head> <body bgcolor="#768FDD"> <h1>Prolix </h1> <hr align="left" size="1"> <% String exceptionError = (String)request.getParameter("error"); if (exceptionError != null) out.println(exceptionError); String program = (String)request.getParameter("program"); if (program == null) program = ""; %> <hr align="left" size="1"> <!-- FIXME action. This is only a prototype --> <form method="POST" enctype="text/plain" action="consult.jsp"> <textarea name="programa" rows="20" cols="60"> <% out.println(program); %> </textarea> <br> <input name="loadGood" value="Load" type="submit"> <input name="clear" value="Clean" type="reset"> </form> </body> </html> --- NEW FILE: solutions.jsp --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page import="java.util.*,java.rmi.*,javax.naming.*,javax.rmi.*, java.io.*,javax.ejb.*,org.asturlinux.frade.prolix.ejb.interfaces.*, org.asturlinux.frade.prolix.interpreter.exceptions.*" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> <%@ taglib uri="ejbtags" prefix="ejb" %> <ejb:useBean id="interpreter" type="org.asturlinux.frade.prolix.ejb.interfaces.ProlixMain"/> <% String currentProgram = interpreter.getProgram(); String currentConsult = interpreter.getCurrentConsult(); %> <html> <head> <title>Prolix consultado</title> </head> <body bgcolor="#768FDD"> <h1>Prolix </h1> <hr align="left" size="10"> <%= currentProgram %> <hr align="left" size="10"> consulta: ?<%= currentConsult %> <hr align="left" size="10"> <% String resultInXml = interpreter.step(); %> <c:set var="xsl"> <c:import url="solution.xslt" /> </c:set> <x:transform xslt="${xsl}"> <% out.println(resultInXml); %> </x:transform> <br> <hr align="left" size="10"> <form action="solutions.jsp"> <input name="moreResult" value="Siguiente solucion" type="submit"> </form> </body> </html> |
From: <iva...@us...> - 2003-07-08 22:22:45
|
Update of /cvsroot/pfc-prolog/prolix/web/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv32264/WEB-INF Log Message: Directory /cvsroot/pfc-prolog/prolix/web/WEB-INF added to the repository |
From: <iva...@us...> - 2003-07-08 22:19:43
|
Update of /cvsroot/pfc-prolog/prolix/web/xsl In directory sc8-pr-cvs1:/tmp/cvs-serv31912/xsl Log Message: Directory /cvsroot/pfc-prolog/prolix/web/xsl added to the repository |
From: <iva...@us...> - 2003-07-08 11:02:44
|
Update of /cvsroot/pfc-prolog/prolix-doc/pfc-es/introduccion In directory sc8-pr-cvs1:/tmp/cvs-serv16470/introduccion Added Files: motivacion.tex objetivos.tex softexistente.tex solo_intro.tex Log Message: Added files in introduction. No content at moment --- NEW FILE: motivacion.tex --- (This appears to be a binary file; contents omitted.) --- NEW FILE: objetivos.tex --- % % Introduccion::objetivos % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{objetivos} Prolix se desarrolla con la intención de facilitar el aprendizaje de Prolog. La idea básica del proyecto consiste en desarrollar una herramienta con la que observar el proceso de resolución de un lenguaje de estas características. Aunque la primera aplicación práctica sera para los alumnos de informática. --- NEW FILE: softexistente.tex --- % % Introduccion::software existente % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- NEW FILE: solo_intro.tex --- \documentclass [a4paper,10pt] {book} \usepackage[spanish]{babel} \usepackage[latin1]{inputenc} \usepackage{enumerate} %\usepackage[T1]{fontenc} \usepackage{pst-uml} \begin{document} \chapter{Introduccion} %\input{introduccion/motivacion.tex} %\input{introduccion/objetivos.tex} %\input{introduccion/softexistente.tex} \end{document} |
From: <iva...@us...> - 2003-07-08 11:00:58
|
Update of /cvsroot/pfc-prolog/prolix-doc/pfc-es/introduccion In directory sc8-pr-cvs1:/tmp/cvs-serv16306/introduccion Log Message: Directory /cvsroot/pfc-prolog/prolix-doc/pfc-es/introduccion added to the repository |
From: <iva...@us...> - 2003-07-04 13:06:40
|
Update of /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb In directory sc8-pr-cvs1:/tmp/cvs-serv19750/src/org/asturlinux/frade/prolix/ejb/sessionjb Modified Files: ProlixMainBean.java Log Message: Moved hardcoded program and consult code from bean to client Index: ProlixMainBean.java =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMainBean.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ProlixMainBean.java 2 Jul 2003 19:33:06 -0000 1.13 --- ProlixMainBean.java 4 Jul 2003 13:06:37 -0000 1.14 *************** *** 47,52 **** { ! private String _program = "hermano(X,Y):=padre(X,Z),padre(Y,Z).padre(Felipe,JC).padre(Helena,JC)"; ! private String _consult = "hermano(X,Y)"; private PrologContextDummy prologCtx; --- 47,52 ---- { ! private String _program; ! private String _consult; private PrologContextDummy prologCtx; *************** *** 60,65 **** throws LexicalException, SyntaxException { ! //Don't needed in simulation ! //_program = program; try --- 60,64 ---- throws LexicalException, SyntaxException { ! _program = program; try *************** *** 94,97 **** --- 93,97 ---- * Some format operations to obtain a pretty output * FIXME Delete last "." + * FIXME What happend if "loadProgram" is not previously called? */ StringBuffer result = new StringBuffer(_program); *************** *** 115,120 **** throws LexicalException, SyntaxException, ProgramNotLoadedException { ! // Don't needed in simulation ! //_consult = consult; //FIXME Could be prologCtx == null? --- 115,119 ---- throws LexicalException, SyntaxException, ProgramNotLoadedException { ! _consult = consult; //FIXME Could be prologCtx == null? |
From: <iva...@us...> - 2003-07-04 13:06:40
|
Update of /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/consoleclient In directory sc8-pr-cvs1:/tmp/cvs-serv19750/src/org/asturlinux/frade/prolix/consoleclient Modified Files: ConsoleClient.java Log Message: Moved hardcoded program and consult code from bean to client Index: ConsoleClient.java =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/consoleclient/ConsoleClient.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ConsoleClient.java 28 Jun 2003 17:23:23 -0000 1.6 --- ConsoleClient.java 4 Jul 2003 13:06:37 -0000 1.7 *************** *** 41,44 **** --- 41,47 ---- private ProlixMain interpreter; + private String hardCodedProgram = "hermano(X,Y):=padre(X,Z),padre(Y,Z).padre(Felipe,JC).padre(Helena,JC)"; + private String hardCodedConsult = "hermano(X,Y)"; + public static void main(String args[]) { ConsoleClient console = new ConsoleClient(); *************** *** 128,132 **** { String input = new String(in.readLine()); ! interpreter.loadProgram(input); } catch (LexicalException le) --- 131,135 ---- { String input = new String(in.readLine()); ! interpreter.loadProgram(hardCodedProgram); } catch (LexicalException le) *************** *** 163,167 **** { String input = new String(in.readLine()); ! interpreter.loadConsult(input); } catch (LexicalException le) --- 166,170 ---- { String input = new String(in.readLine()); ! interpreter.loadConsult(hardCodedConsult); } catch (LexicalException le) |