We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
A Custom JSP Tag Library for Dynamic Menus
|
| Subject: |
|
How to add more parameters |
| Date: |
|
2003-06-16 11:43:27 |
| From: |
|
amitdas91
|
|
|
Besides the standard parameters passed to the tag from the jsp page: driverName, driverURL, etc
I want to add another parameter.
I have changed the all applicable lines but I get an error on the main function of JDBCMenuBuilder.java
>>JDBCMenuBuilder builder = new JDBCMenuBuilder("driver", "jdbc", "user", "pass", variableNewParameter);
>>gives an error:
209: non-static variable variableNewParametercannot be referenced from a static context
Error is due to passing a variable instead of a static value, how can I pass a variable:
amit
|