feres

Registered
Mar 28, 2013
1
0
1
cPanel Access Level
Website Owner
Hello everyone,

While using ManagedBean and more specifically in the methods, parameter passing is not allowed with the EL (expression language) at the HMI:

<h: commandButton id = "testButton" value = "Test Button"
actionListener = "# {testBean.someMethod ('someString')}" />
level ManagedBean
public void someMethod (String param) {
System.out.println ("param:" + param);
}
But from the EL version 2.2, you can pass a parameter to a method in a ManagedBean.

The problem is that Tomcat does not allow this. I found a solution that speaks of the jar el-impl-2.2.jar but I can not put in place.

Could someone tell me how to make Tomcat uses this jar?

Thank you in advance for your help.
 

cPanelKevinS

Member
Staff member
Mar 7, 2013
8
0
1
Hi feres,

While I don't have a confirmed solution for you, here's something you might try:

Bring down Tomcat, and move or rename the commons-el.jar file in /usr/local/jakarta/tomcat/common/lib; and drop your el-impl-2.2.jar into the same directory. You may also need el-api-2.2.jar in the same directory.

You might have a look at this Stack Overflow page for further ideas. Just keep in mind that they are using Tomcat 6, which stores libraries in $CATALINA_HOME/lib; the Tomcat 5.5 equivalent would be $CATALINA_HOME/common/lib.

While it may not help with your immediate problem, we are currently working on supporting Tomcat 7, which includes support for EL 2.2.
 
Last edited:

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
Hi feres,

Infopro posted a link to our blog post about implementing Tomcat 7 in EasyApache which discusses our interest in working with customers to learn about their Tomcat 5.5 setups. Discussing Tomcat 5.5 setups will help us greatly with our Tomcat 7 development and testing. Please let us know if you would like to discuss your Tomcat infrastructure!

I also hope that Kevin's suggestion above helps to resolve the issue you're currently experiencing with Tomcat :)

Thank you,
 

tizoo

Well-Known Member
Jan 6, 2004
77
3
158
cPanel Access Level
DataCenter Provider
Hi !

A request that we see regularly from customers, is to have tomcat process more than /servlets/* and /*.jsp.

It would be nice if the customers could manage the mappings themselves.

Thanks for your work !
Kind regards,
Florian
 

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
Hi Florian,

In order to best help you out the EasyApache team is wondering if you are currently able to deploy WAR files? Deploying WAR files should allow users to specify the URL-to-servlet mapping if that is in fact the issue. Please let us know if that helps at all and if you have any additional questions.

Also feel free to submit a Feature Request which can be voted on by the cPanel&WHM community. That's a great place to find out if other EasyApache users are looking for the same kind of Tomcat functionality you are: cPanel Feature Requests

Thank you!