sebastian pettersson

Greenhorn
+ Follow
since Apr 08, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sebastian pettersson

Tried a few approaches. Fetching the URL with java.net.URL didn't work since the session management performed by the web-app prevented me from getting the page.

I settled for creating an XML object in javascript that fetched the JSP generated page content and then e-mailing it.

Thanks for the tips though.
16 years ago
Matter resolved:

18 years ago
JSP
I am trying to create a custom tag that generates the code for an HTML table in this manner:


Here the tag draws a table of no more than 3 coloumns and as many rows as it takes to include all items. And in each cell of the table the value of currentBean.aProperty is printed.

The tag is defined through a tag file:



So the table generating code works, i've come that far. What doesn't work is the line: "${currentBean.aProperty}" in the jsp code. This Exception is thrown:


javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to find a value for "aProperty" in object of class "java.lang.String" using operator "."



So apparently the container sees currentBean as a String object instead of a bean. If I change the EL expression to "${currentBean}" no exception is thrown and it evaluates to the fully specified classname of currentBean.

Can anyone help to get it working like i want it too with code like the first code snippet?

Thanks in advance,

Sebastian
[ April 10, 2005: Message edited by: sebastian pettersson ]
18 years ago
JSP