Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners how to put the conditions for empcode in java
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Sandhya.B
how to put the conditions for empcode in java
0 Answer(s)      3 years and 3 months ago
Posted in : Java Beginners


In my project there is an option for updation,to update their details they have to enter their employeecode.i want to put some conditions for that employeecode. The employeecode starts with 'tr' and 'mh' followed by 5digits. ex: tr10700 mh10790

so i want to keep conditions that 1st two positions shud be letters and that too tr and mh,next positions shud be 5digits.if these conditions are not satisfied then it shud display some message like invalid code .....

also the entered employeecode shud match with empcode in database otherwise it shud giv invalid empcode....

how to do put these conditions,plz giv me the code....its urgent.... thk u.....


Advertisement
View Answers

Related Tutorials/Questions & Answers:
how to put the conditions for empcode in java
how to put the conditions for empcode in java  In my project... their employeecode.i want to put some conditions for that employeecode. The employeecode... shud match with empcode in database otherwise it shud giv invalid empcode.... how
How to put an image on a JButton?
How to put an image on a JButton?  How to put an image on a JButton
Advertisements
How to put multiple predictions for one zodiac sign, Java Horoscope!
How to put multiple predictions for one zodiac sign, Java Horoscope!  Hey! I am doing a horoscope program and I want to put few different options for predictions that the program would tell? EXAMPLE: If I put 30.8 the program
how to put php in javascript
how to put php in javascript  How to write a javascript code inside php block
How to put points on a JButton
How to put points on a JButton  I wanted to ask....what am i supposed to do if i wanna set points on my JButton so as to be able to draw arcs... on each side are connected to openings on other sides....how can i get
How to put the image in footer in login form ?
How to put the image in footer in login form ?  Hi, how to put the image in footer in login form ?   Here is an example that shows image on footer along with Login Form in Java Swing. import javax.swing.*; import
How to put Focus on TextField - Design concepts & design patterns
How to put Focus on TextField  Dear Sir..... Once again, I am here... learn JAVA a bit better... I am making two windows In my Swing Application... But when I shift from one Window to another Window... I want to put the Focus
How to put our own wanted thread into running state..?
How to put our own wanted thread into running state..?  How to put our own wanted thread into the running state by stopping already running one
How to put text file numbers to array and check the position of numbers?
How to put text file numbers to array and check the position of numbers?   I have numbers in text file data.txt 12 9 8 3 1
How to put the logo in login form using swings/awt?
How to put the logo in login form using swings/awt?  Hi, How to put... but i want to put the logo in login form plz help   Here is an example that will display logo along with login form in Java Swing. import javax.swing.
connection of java file to excel file and put data from excel file into oracle db
connection of java file to excel file and put data from excel file into oracle db  how to create button on excel sheet using java swing and how we give action to that button excel sheet? how we connect excel file to java file
Conditions In Java Script
Conditions In Java Script   ... of JavaScript and create your first JavaScript program. About JavaScript Java... the user's browser opens the HTML file. JavaScript is different from the Java language
Example Using put() method
that how a put function is used in the program, in this example first time when... : C:\anshu>javac put.java C:\anshu>java put... Example Using put() method     
String st="abc bca cab acb bac cba acb " ; But out put as ab ab ab ab ab ab how to get it?
String st="abc bca cab acb bac cba acb " ; But out put as ab ab ab ab ab ab how to get it?  String st="abc bca cab acb bac cba acb " ; I want print as ab ab ab ab ab ab ab How to do
How to use 'for' loop in jsp page?
How to use 'for' loop in jsp page?       This is detailed java code that shows how to use 'for' loop in jsp page. 'if' statement is used to test conditions while
To put a "close window" link on a page?
To put a "close window" link on a page?  To put a "close window" link on a page
Partial Search from Hash Table in Java
Partial Search from Hash Table in Java       This section illustrates you how to put some... to put some string in the Hash Table of Java and get it for searching. This is done
regarding out put display in html text field
regarding out put display in html text field  how to dispaly the output coming from servlet in a particular text field of html
The PHP file_put_contents() function , file_put_contents php
Learn how to use file_put_contents() function in PHP Example of the PHP file_put_contents() function Description Syntax of file_put_contents() PHP file_put_contents(file_name,data_to_file,[file_mode,[file_context]]) It writes
i want print the following out put
i want print the following out put  Hello sir i want the following out put can u provide the program in c# o/p; HELLOLLEH HELLLEH HELEH HEH H
Setting a Filter on a Logger Handler in Java
Setting a Filter on a Logger Handler in Java       This section illustrates you how to set filter on a logger handler in Java. Generally, Filter is a program that provides
how to create interfaces in java
how to create interfaces in java  HI, Here is my code public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code
Multiple Value initialization and retrieval by put and get method
Multiple Value initialization and retrieval by put and get method... are going to find out the flow of using put and get method of the preferences. After reading, coding, and running you are able to use the get and put method. Here
Java - The switch construct in Java
Java - The switch construct in Java       Switch is the control statement in java which also turns the normal flow control of the program as per conditions. It works
Java Switch Statement
Java Switch Statement       In java, switch is one of the control statement which turns the normal flow control of the program as per conditions. It's like if-else statement but it can
put image on form creating in swing-swing code - Swing AWT
put image on form creating in swing-swing code  i want to display image on swing panel and get the image co ordinate by mouse clicking.and also zoom the image at particular area of image. please give solution on my email id
How to Use Java Functions In EL
How to Use Java Functions In EL          To use a Java Functions in  EL we... of calling method from a jsp page. Put this java file in the /WEB-INF/classes
automatically break line when ever I put enter.
automatically break line when ever I put enter.  code is working fine. but in output Enter is ignored. public void action(int a){ if(a == 0){ OriginalMsg = jTextArea1.getText().toString
I want to put user guide in pdf and word in side WEB-INF and need to give link on the home page
I want to put user guide in pdf and word in side WEB-INF and need to give link on the home page  I want to put user guide in pdf and word formats... explain me how can I achieve this using spring mvc? Thanks
 

 

 

DMCA.com