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.
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..
<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.
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.