Gopakumar Naryanan

Ranch Hand
+ Follow
since Jan 15, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Gopakumar Naryanan

I was trying to display employees who has more experience than their manager using HQL. This is the Exception i'm getting when i try HQL query using joins

Exception in thread "main" java.lang.IllegalStateException: DOT node with no left-hand-side!




Note : I added fully qualified in the join query to avoid the below Exception
org.hibernate.hql.internal.ast.QuerySyntaxException: Path expected for join!

When i modify the query as follows :


It works fine.


would like to know where i'm doing mistake.. Any suggestion is greatly appreciated.

Thanks in advance.
Thanks.. i didn't notice the spelling mistake you specified.
12 years ago
Please check your User class.. is there any specific requirement that it should extend ActionSupport class?
I have not worked on Struts 2.. but i haven't seen anywhere one action class being instance variable of other..


12 years ago




I think you need to make a correction here :



In the above code variable itself holds the "AccountId".. so please change it as follows:



Hope it works fine.
12 years ago
Appreciate your spirit .. Wish you all success .. Keep up the good work.
12 years ago
This could be problem with antlr jar file try using appropriate version.
Please go thru the following link :

https://forum.hibernate.org/viewtopic.php?p=2435893

This link could solve the issue.
Please make sure you have all the required jar files in your buildpath. It seems you are missing a jar file related to ehcache. Please check.
Try using hidden form fields for non-editable fields .. and keep the rest as they are.. hope this works fine for your requirements .
12 years ago

Please try this..
12 years ago

I am not sure whether you are expecting something internal to grid.
12 years ago
<HTML:text property='name' value='${emp.name}></html:text> where property is your formbean property and value is what you were trying to put in bean:write tag emp is bean name and name is the property.
12 years ago
You can use <c:import> tag for this task.
12 years ago
JSP
Does it make any sense using jstl tags like <c:choose ></c:choose> TAGS?
12 years ago
Please share the code or stacktrace you are getting when you run the app.
12 years ago
JSP
Probably this issue must have been resolved . Only change you require is your DTO object that is MyModel class must follow Java Beans naming conventions.
Please use code tag for better readability of the code.
12 years ago