15,895,557 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by komali Guntur (Top 13 by date)
komali Guntur
16-Sep-11 1:15am
View
Hi Niral Soni
I modified the code as you send but the problem is it is not even calling the javascript function(reset())when i clicked on the reset button.I kept the alert message just for checking whether the function is calling or not it is not displaying the alert message.I understood that it is not calling the javascript function.What might be the problem
komali Guntur
12-Sep-11 7:52am
View
Hi can you tell me hot to use that length[^] in my code i have the code as follows.
var sub_dept_name = document.getElementById('txt_sub_deptname').value;
if(sub_dept_name == '')
{
alert("please enter sub department name");
document.getElementById('txt_sub_deptname').focus();
return false;
}
i want the same validation for when i enter the space(continuously) also
komali Guntur
5-Sep-11 20:44pm
View
Except this meta tag any other thing is there like onload or any thing like that.I want to refresh the page once onload not every time.
komali Guntur
5-Sep-11 6:39am
View
int hash=hashcode() and i am sending this generated hash code to the image url
komali Guntur
3-Aug-11 4:33am
View
no sir its not working and i can pass any of the month whatever i want to the stored procedure as a paramater
komali Guntur
28-Jul-11 2:11am
View
No sir senderid must be unique in the entire table thats why i kept unique constraint for the senderid.
komali Guntur
27-Jul-11 14:16pm
View
ok Graus for file upload take it easy the same problem is for sender name also the code is as follows.
if (sender_name == "") {
alert("Sender Name is Mandatory Feild !!");
document.getElementById('sender_name').focus();
return false;
}
komali Guntur
18-Jul-11 7:19am
View
Thank You Bhardwaj with this query i am getting the comma seperated values when i execute the query through the query browser in mysql.But when i kept the same query in my code i am getting the exception as org.hibernate.MappingException: No Dialect mapping for JDBC type: -1. My code is like this
session = HibernateSessionFactory.getSession();
String hql = "select GROUP_CONCAT(SenderId) FROM userinfo";
senderIdValue = (String)session.createSQLQuery(hql).list().get(0);
Can you give me any idea about this exception.
komali Guntur
14-Jul-11 3:25am
View
Thank You Abhinav
But i am using the MYISAM engine and i am assigning the unique constraint to the column.When i have done like that the data is not importing into the table if i assign the column as unique and there are no duplicates also.
komali Guntur
13-Jul-11 5:03am
View
Thank You
komali Guntur
13-Jul-11 3:53am
View
No yar My requirement is it must be string type because who ever is sending the message... that person name we can give as SenderId.
komali Guntur
13-Jul-11 3:42am
View
SenderId i defined as String type to the string type Auto Increment is allowed
komali Guntur
13-Jul-11 3:13am
View
Thank You Mr Joan Murt
But my problem is not with the database in database it is updating the value with the given value from the application.After that whenever i am trying to enter the SenderId to the another user through the application then it has to take the all the SenderId's from the database and compare the entered value with all the existed SenderId's in the database if nothing is match then no problem it will update.But if any thing is match then it has to display the message as SenderId already exists.And i am using Mysql 5.1 DB.Am i provided the correct information or not i dont know i am new to java and forums also.If you require any more clarification i am sending my servlet class just go through it.I think you can understand.
public class AddSenderId extends HttpServlet {
public static Logger log ;
String message=null;
public AddSenderId() { }
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Transaction tx = null;
HttpSession sesn = null;
try {
log = Logger.getLogger(this.getClass());
PrintWriter out = response.getWriter();// this can be removed.
sesn = request.getSession(false);
int userid = Integer.parseInt(request.getParameter("userid"));
String senderId = request.getParameter("senderid");
String remarks = request.getParameter("remarks");
List <userinfo> senderid_list = new UserDao().getSenderID();
System.out.println(senderid_list.size());
for(int i=0;i
Show More