Help coderanch get a
new server
by contributing to the fundraiser

Zain Rizvi

Greenhorn
+ Follow
since Jul 20, 2012
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 Zain Rizvi

Doing inverse="false" for the sets required me to do

in all 3 classes; Participant, Precondition, and Effect.

But running the application gave me the error

I am able to save the objects in the database, but not delete them.

I have the following classes:





Here are the hibernate mapping





When I try to do


I get the following error:


One fix I found was, if I change the cascade values (in the Action hbm) to "save-update", and then delete each component separately. But I don't want to do that.
I think another solution would be if I can tell hibernate the order to delete the components, but I cannot find how to do this.

Any suggestions would be greatly appreciated.
Thank you
Thanks for your help. I guess I got a bit more reading to do before jumping into this. I'll be sure to read those articles when I get a chance.

I did view the page source. The line

was not in there. And

was transformed to

Thanks
Zain
11 years ago
JSP
Well I also had another approach. This seems to be better working for me.



This is using JSTL, is that correct?


I added the try/catch block because at first there was nothing being printed to screen. So I wanted to see if something was going wrong.
11 years ago
JSP
Hi, I am new to jsp and just learning by doing.
I am trying to pass a variable from javascript to my jsp page. From what I've read, I have to set the variable as an attribute so that I can read it using EL.

There is my code:



But when I run that page, I get an the alert message saying

ReferenceError: pageContext is not defined

.
Can anyone help me solve this issue?

Thanks
Zain
11 years ago
JSP