chets patel wrote:can you please post your full jsp and javascript code. I am facing same issue and not able to solve.
Thanks in advance.
Robin John wrote:Hey Sankey...
I think it should work.
You can also set the variable first and then use it in your script using ognl.
I'll not be able to confirm the above as I can't test...
Joe Ess wrote:
sankey jain wrote:
missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';
I would take that error to indicate that the problem occurs before the line you indicate. What comes before this line?
Robin John wrote:THANKS !! SIR it worked fine. "value" i had missed !! Thanks again.
madhur taneja wrote:Thanks Paul , my problem has been figured .
The insert into Team is working , but entry in players table is not coming .
when i run the hibernate code , the following thing comes on console :
Inserting Records
Hibernate:
insert
into
teams
(team_name, city, team_id)
values
(?, ?, ?)
Hibernate:
update
players
set
first_name=?,
last_name=?,
team_id=?
where
player_id=?
org.hibernate.StaleStateException: Unexpected row count: 0 expected: 1
at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:27)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2204)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2118)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2374)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at abc.hiber.teamexample.main(teamexample.java:43)
insert into teams is fine , but why update in players and not insert , does it has to take something from - inverse="true" that i used in team.hbm.xml.
Also , why this stale state exception is coming ?
Thanks.
sankey jain wrote:
Jaikiran Pai wrote:Sankey, is that complete web.xml?
i am accessing the application via https://10.20.169.170:8081/conflict/monitoring
Assuming "conflict" is the context of your deployed web application, I don't see a servlet-mapping for "monitoring" in your web.xml.
Hi JaiKiran,
Yes, you were right. we fixed that. now melody is up.
but we now have another challenge, the sql transactions are not being recorded, table remains empty all the time
we are using hibernate with c3po pooling. are there any exclusive configurations to be made for hibernate ?
David Newton wrote:Yes. If you can't retrieve it, then it isn't being set.
David Newton wrote:Obviously your first attempt won't work, because it's a new request on form submission.
If the hidden field is set to a value, and the form is submitted, it's a parameter, not an attribute.
Prasad Krishnegowda wrote:Are you sure, cname itself is not null..
sankey jain wrote:Unable to receive the String parameter value set through request.setAttribute(...) method in the immediate action class
The above code is to set the value in the attribute called Att
Retrieving the same in the immediate action class as:
The output is displaying as "From Attributenull"
Please help me in this