I know I should know this if I'm trying to write java code, but I'm an idiot. I'm setting a session variable and trying to retrieve it as an integer, but that doesn't work. Question 1: Can I set the session var using an integer (this doesn't seem to cause a problem). For example:
int rows_count = 10;
session.putValue("rows",row_count);
Question 2: How can I retrieve it as an int? For example:
if (session.getValue("rows" != null) {
row_count = (int) session.getValue("rows"
}
for (int i=1; i < row_count; i++) {
I get a 'page cannot be displayed' when trying to assign the session variable to the row_count int. Any ides? Thanks.
int rows_count = 10;
session.putValue("rows",row_count);
Question 2: How can I retrieve it as an int? For example:
if (session.getValue("rows" != null) {
row_count = (int) session.getValue("rows"
}
for (int i=1; i < row_count; i++) {
I get a 'page cannot be displayed' when trying to assign the session variable to the row_count int. Any ides? Thanks.