[java ee programming] Re: Hi
Yes I am sorry. its working fine now :) Sadia Butt --- On Tue, 11/10/09, muhiuddin wrote: From: muhiuddin Subject: [java ee programming] Re: Hi To: java-ee-j2ee-programming-with-passion@googlegroups.com, buttsa...@yahoo.com Date: Tuesday, November 10, 2009, 4:43 AM Code is working fine. Check that your JDK or jsp container includes required jar files. jstl-impl.jar and javax.servlet.jsp.jstl.jar <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%> http://www.w3.org/TR/html4/loose.dtd";> Enter your name 1+2+3= Enter your name: --- On Tue, 11/10/09, Sadia Butt wrote: From: Sadia Butt Subject: [java ee programming] Hi To: java-ee-j2ee-programming-with-passion@googlegroups.com Date: Tuesday, November 10, 2009, 4:57 AM Hi Everyone. I was in the Java Programming groun now moving in the Web development i.e. Java EE. I am having a problem. "<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%> http://www.w3.org/TR/html4/loose.dtd";> Enter your name 1+2+3= Enter your name: " can anyone tell me what might be the problem.??? Because when i comment out the "1+2+3= " it works perfectly fine. I am just going through a tutorial & now trying to learn Jstl. Thanks in advance. Regards Sadia Butt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] Re: LAB 4005
Anand, I noticed the same thing. The attributeReplaced method is called before the attributeRemoved method. Does anyone know why this occurs? Thanks, Sparky On Oct 8, 5:29 am, "Anand A. Parikh" wrote: > > When a session attribute is added/replaced/removed the methods will be called > automatically. > The homework asks you to add a session attribute in Greeting and remove it in > Response. > > But, I noticed that the attributeReplaced() was called when the attribute was > removed. > > --- On Wed, 10/7/09, derezone wrote: > > From: derezone > Subject: [java ee programming] LAB 4005 > To: "Java EE (J2EE) Programming with Passion!" > > Date: Wednesday, October 7, 2009, 11:19 PM > > For this homework • Add another event handler Java source file called > MyOwnEventListener that implements Http Session Attribute Listener. > > the code is as follows: > public void attributeAdded(HttpSessionBindingEvent se) > { > servletContext.log("attributeAdded() method is invoked"); > } > > public void attributeRemoved(HttpSessionBindingEvent se) > { > servletContext.log("attributeRemoved() method is > invoked"); > } > > public void attributeReplaced(HttpSessionBindingEvent se) > { > servletContext.log("attributeReplaced() method is > invoked"); > > } > > Now the question is : how do I invoke these methods?? Do I need to > change something in the web pages > or any extra code in the greeting or response java ? ? > I have the getSession() code in place. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] Re: contuining with my lab 4008 question
is giving the error is not a tag is a line break Use ${name} Hope this help Alfredo 2009/11/10 fernando pardo > hello guys . > I continue with my back email relationed with the lab 4008 > > if someone could help me > I send the problem > > the followin sentence in the products.jsp generated the following wrong: > > This is the item: ${name} > HERE netbeans generated the wrong: expresion language not allowed in a > template text body > > thanks a lot > > > > -- Saludos Alfredo Torres Hab.+58 212 9446304 Cel. +58 416 6118599 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] contuining with the lab 4008
hello guys : Someone could help me please about the lab 4008 i have the following products.jsp file and then the mistake generated: <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> JSP 2.0 Examples - Display Products Tag File JSP 2.0 Examples - Display Products Tag File This JSP page invokes a tag file that displays a listing of products. The custom tag accepts two fragments that enable customization of appearance. One for when the product is on sale and one for normal price. The tag is invoked twice, using different styles Products Item: ${name} Price: ${price} Item: ${name} Was: ${origPrice} Now: ${salePrice} This is the item: ${name} Was: ${origPrice} The price now is: ${salePrice} Products (Same tag, alternate style) ${name} @ ${price} ea. ${name} @ ${salePrice} ea. (was: ${origPrice}) Products (Same tag, the 3rd style) My own display format: ${name} ${price} per item My own display format ${name} ${salePrice} per item (Yesterday it was: ${origPrice}) The mistake generated is: Estado de HTTP 500 - -- *type* Informe de excepción *Mensaje* *Descripción*El servidor encontró un error interno () que impide satisfacer la solicitud. *Excepción* org.apache.jasper.JasperException: PWC6033: Imposible compilar clase para JSP PWC6197: Se produjo un error en la línea: 31 del archivo JSP: /jsp2/tagfiles/products.jsp PWC6199: Error en servlet generado: string:///products_jsp.java:92: cannot find symbol symbol : method setMyOwnJSPFragment(javax.servlet.jsp.tagext.JspFragment) location: class org.apache.jsp.tag.web.displayProducts_tag PWC6199: Error en servlet generado: Note: string:///products_jsp.java from uses unchecked or unsafe operations. PWC6199: Error en servlet generado: Note: Recompile with -Xlint:unchecked for details. *nota* *Las causas de los seguimientos de pila completos de la excepción y su root se encuentran disponibles en los Sun GlassFish Enterprise Server v2.1 registros.* -- Sun GlassFish Enterprise Server v2.1 thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] Re: contuining with my lab 4008 question
Hi Fernando, I'm sorry but the only thing I understood in your mail was the status code 500 which means there was an Internal Server Error and it only means there was an error in your code but since the mail was mostly in Spanish(I think) I can't offer more help. I suggest you paste your code in http://www.pastebin.com because it has syntax highlighting. Just add the link to that post. Also it may be helpful to provide a little more of the error stack trace. Finally, translating them to English will definitely help a lot. Regards, Bob On Wed, Nov 11, 2009 at 12:18 AM, fernando pardo wrote: > hello guys . > I continue with my back email relationed with the lab 4008 > > if someone could help me > I send the problem > > the followin sentence in the products.jsp generated the following wrong: > > This is the item: ${name} > HERE netbeans generated the wrong: expresion language not allowed in a > template text body > > thanks a lot > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] problem
hello guys:I run the following files that belong to the lab 4008: productos.jsp: <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> JSP 2.0 Examples - Display Products Tag File JSP 2.0 Examples - Display Products Tag File This JSP page invokes a tag file that displays a listing of products. The custom tag accepts two fragments that enable customization of appearance. One for when the product is on sale and one for normal price. The tag is invoked twice, using different styles Products Item: ${name} Price: ${price} Item: ${name} Was: ${origPrice} Now: ${salePrice} This is the item: ${name} Was: ${origPrice} The price now is: ${salePrice} Products (Same tag, alternate style) ${name} @ ${price} ea. ${name} @ ${salePrice} ea. (was: ${origPrice}) Products (Same tag, the 3rd style) My own display format: ${name} ${price} per item My own display format ${name} ${salePrice} per item (Yesterday it was: ${origPrice}) I added the following two sentences to the displayproducts.tag: <%@ attribute name="another JSPFragment" fragment="true" %> **i obtained this wrong after run: Estado de HTTP 500 - -- *type* Informe de excepción *Mensaje* *Descripción*El servidor encontró un error interno () que impide satisfacer la solicitud. *Excepción* org.apache.jasper.JasperException: /jsp2/tagfiles/products.jsp(42,48) PWC6228: Expression language no se permite en el cuerpo de texto de una plantilla. *nota* *Las causas de los seguimientos de pila completos de la excepción y su root se encuentran disponibles en los Sun GlassFish Enterprise Server v2.1 registros.* -- Sun GlassFish Enterprise Server v2.1 *it will be someone could help me?* thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] contuining with my lab 4008 question
hello guys . I continue with my back email relationed with the lab 4008 if someone could help me I send the problem the followin sentence in the products.jsp generated the following wrong: This is the item: ${name} HERE netbeans generated the wrong: expresion language not allowed in a template text body thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---
[java ee programming] Re: Hi
Code is working fine. Check that your JDK or jsp container includes required jar files. jstl-impl.jar and javax.servlet.jsp.jstl.jar <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%> http://www.w3.org/TR/html4/loose.dtd";> Enter your name 1+2+3= Enter your name: --- On Tue, 11/10/09, Sadia Butt wrote: From: Sadia Butt Subject: [java ee programming] Hi To: java-ee-j2ee-programming-with-passion@googlegroups.com Date: Tuesday, November 10, 2009, 4:57 AM Hi Everyone. I was in the Java Programming groun now moving in the Web development i.e. Java EE. I am having a problem. "<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%> http://www.w3.org/TR/html4/loose.dtd";> Enter your name 1+2+3= Enter your name: " can anyone tell me what might be the problem.??? Because when i comment out the "1+2+3= " it works perfectly fine. I am just going through a tutorial & now trying to learn Jstl. Thanks in advance. Regards Sadia Butt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~--~~~~--~~--~--~---