Re: JSP EL - How to

2023-12-18 Thread Mark Thomas

17 Dec 2023 21:31:10 Chuck Caldarale :




On Dec 16, 2023, at 23:05, Arbol One  wrote:

Hello.

In my NetBeans IDE, I have a ANT web project, to which I have added 
under Libraries the JSTL 1.2.7 - jstl-impl.jar and the JSTL 1.2.7 - 
jstl-api.jar libraries. However, when adding this code :


*
Hello JSP EL!
*



Tags are not allowed inside  elements. The following should 
work:





Hello JSP EL!




  - Chuck


The JARs you added are for JSTL, not EL. And your example uses neither 
JSTL nor EL.


Confused.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



JSP EL - How to

2023-12-16 Thread Arbol One

Hello.

In my NetBeans IDE, I have a ANT web project, to which I have added 
under Libraries the JSTL 1.2.7 - jstl-impl.jar and the JSTL 1.2.7 - 
jstl-api.jar libraries. However, when adding this code :


*
Hello JSP EL!
*


Although it rebuilds properly, I get the following error message :


*Type Exception Report*

*Message Unable to compile class for JSP: *

*Description The server encountered an unexpected condition that 
prevented it from fulfilling the request.*


*Exception*

*org.apache.jasper.JasperException: Unable to compile class for JSP: An 
error occurred at line: [99] in the generated java file: 
[/home/jamiil/opt/tomcat/work/Catalina/localhost/ArbolOneEnterprise/org/apache/jsp/login/sign_005fin_jsp.java] 
Syntax error on token(s), misplaced construct(s)*


*An error occurred at line: [55] in the jsp file: [/login/sign_in.jsp] 
Syntax error on token ":", , expected 52: <% 53: try{ 54: 55:  
56: Hello JSP EL! 57: *



It is my first time trying JSP EL, and I need a bit of guidance using 
this technology.
Can any body tell me what I am missing? Is there a library I need to 
add? (i.e. <%@ page import="something.el.*" %> ).


Thanks in advance.

Note: I got this example from here 



--
ArbolOne.ca
Using Fire Fox and Thunderbird.
ArbolOne is composed of students and volunteers dedicated to providing free 
services to charitable organizations.
ArbolOne on Java Development is in progress [ í ]