Vitaliy Kravchenko

Greenhorn
+ Follow
since Dec 02, 2010
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 Vitaliy Kravchenko

I'm using spring mail service with velocity templates, for user activation


For example I've registered user with username ><
How can I escape html tags in velocity, how should I configure bean



Thanks
11 years ago
I have a problem , let me show what I have:



In such a way I'm calling modal forms



and method in backing bean


when I press on icon delete, confirm window is invoking, after I pressed "Yes" - invoking removeLogFile method, and in this moment modal form with id messageBoxLogFile (this form to show the result of deleting file) filling values from backing bean, but I need to fetch this values when deleteLogFile will be finished, and fill messageBoxLogFile form with values from logManager bean. What can I do? thanks
12 years ago
JSF
I have a jsf like that:




I need to submit form in backing bean and to invoke method commandProtectionManager.update
My code doesn't work
How can I achieve this result? Thanks
12 years ago
JSF
I'm using a maven licence plugin, I have one super pom and four submodules.


when I'm ivoking licence-plugin from super pom everything is ok, but when I'm trying to invoke plugin from submodules, licence could'nt find the header.txt file. How can I define the root path for submodules? any ideas? thanks
12 years ago
I need to execute this command
mvn release:prepare

in pom should be declared scm settings
-read only url to repository
- read and write url

I'm using Git, How maven release will retrieve the Git's branch, or may be I should define branch explicit somewhere. I don't know how to configure scm in pom.xml using Git. Any advise ? thanks
12 years ago
If you have installed mySQL Server as service, check MyComputer -> right click ->control -> and find there Mysql, then check that service is running
Or you can start Client command line, if everything will be ok, then you Server is running
May be your mySQL Server is off? check this
jdbc:mysql://localhost:3306/vinod
I have a problem, with retrieving entity, I'm using Spring MVC + Hibernate.
I have a DAO layer

mapping....


Spring MVC controller


and I have got an error

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.orm.hibernate3.HibernateSystemException: identifier of an instance of jtforum.entites.Rank was altered from 1 to 1; nested exception is org.hibernate.HibernateException: identifier of an instance of jtforum.entites.Rank was altered from 1 to 1
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

org.springframework.orm.hibernate3.HibernateSystemException: identifier of an instance of jtforum.entites.Rank was altered from 1 to 1; nested exception is org.hibernate.HibernateException: identifier of an instance of jtforum.entites.Rank was altered from 1 to 1
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:679)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:912)
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:904)
jtforum.dao.RankDAO.getAllRank(RankDAO.java:21)
ru.jt.forum.web.controller.RegistrationController.populateRank(RegistrationController.java:53)

I don't know what to do, for the first glance everything is ok,thanks
P.s. sorry for my English