Ram naveen

Greenhorn
+ Follow
since Sep 10, 2008
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 Ram naveen

futher it shows this type of error

WARNING: SQL Error: 0, SQLState: 42P01
Oct 6, 2008 12:56:05 PM org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: ERROR: relation "login" does not exist
Hi ,
i am using struts 2 with hibernate 3.0 for inserting data in to a table called Login.

this is the code.

sessionFactory = new Configuration().configure("/hibernate.cfg.xml").buildSessionFactory();

Session session= sessionFactory.openSession();
Transaction tx = null;
try {
tx=session.beginTransaction();
Login loginfile = new Login();
loginfile.setId(56);
loginfile.setName("Guru Ragavendra");
session.save(loginfile);
tx.commit();
}catch (RuntimeException e) {
if(tx != null) tx.rollback();
throw e;
} finally {
session.close();
}


but while inserting it throws an exception of this kind

Caused by: org.postgresql.util.PSQLException: ERROR: relation "login" does not exist

could any one guide me to overcome this problem
regards,
Ram
hi,
<script type="text/javascript" language="javascript">
dojo.event.topic.subscribe("/request", function(data, type, request) {
//cancel request
request.cancel= true;
});
</script>

<s:url
id="ajaxTest"
value="/AjaxTest.action" />

<s:submit
type="submit"
theme="ajax"
value="submit"
notifyTopics="/request"
href="%{ajaxTest}"/>

the above code uses struts 2 ajax theme submit and url .
i am new to struts2 .i find it difficult to understand the purpose of notifytopics and publishtopics .can anyone give a brief explanation of these attributes.
thank you.
Regards
Ram
15 years ago
hi ,
I have been using Register.java and Register-validation.xml file for validation.all the other tags have been validating.but the below tag is also validating but it never throws any error message that is used in the message tag below.if it finds an error.can anyone help me
<validator type="expression">
<param name="expression">username != password</param>
<message>Username and password can't be the same.</message>
</validator>

Regards
Ram
15 years ago
hi ,
i have to do pagination with struts 2 .but i cannot find any mock examples for this.could anyone can suggest me how to do pagination in struts 2. or do any one have any materials for this.
regards
ram
15 years ago
hi ,
i need some examples of using ajax with struts 2 .can anyone help me
regards
ram
15 years ago
hi,
i am new to struts 2. i feel difficult in package tag in struts.xml.
can anyone have any good document on namespace ,package,extends.
please do the needful
Ram
15 years ago