Kondal reddy

Greenhorn
+ Follow
since Sep 23, 2003
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 Kondal reddy

while loading my web module in my application Iam getting error is "java.util.MissingResourceException: Can't find bundle for base name log4j, locale en_US"?.
12 years ago
Hi,
I am getting String like this format String str="103-OATSW-1100.00"

I have to write one common validator for that string,
that validator have to check for that string like first three are 'Numeric' , fourth is 'alphaNumeric', 5th to 9th 'Characters' ,10th is alphaNumeric ,11th to 14 numeric and last tow with Decimal.

any body can help to write code for that string

JK
13 years ago
Hi EveryOne,

I would like to know how to create swift messages and validating through WIFE Api. Can you please help me in technically using java coding.

Regards
JK
Hi Guys I am lerning Swings. I want default value in my Swings Text field Like "####.##".when onfocus that field should be blank and it allow numeric value format like "5000.50".please help me how to write code.

this is my code related to that part..

salaryEditMask = new EditMask();
//salaryEditMask.setMaskType("all");
//salaryEditMask.setMaskText("####.##");
//salaryEditMask.setMaskPattern("####.##");
salaryEditMask.setMaskType(EditMask.NUMERIC_MASK);

JK.

[ November 13, 2007: Message edited by: Kondal reddy ]

[ November 13, 2007: Message edited by: Kondal reddy ]

[ November 13, 2007: Message edited by: Kondal reddy ]
[ November 13, 2007: Message edited by: Kondal reddy ]
13 years ago
how can I write code in Jsf and backing been for use <odc:tree></odc:tree>

any body used IBM Faces please give me code.
14 years ago
JSF
this is my JSP:


<h:selectOneMenu styleClass="selectOneMenu" id="menu1" value="#{deemListBean.tempState}" onchange="submit();" valueChangeListener="#{deemListBean.listenerStateName}" >

<f:selectItems value = "#{deemListBean.getState}" />
</h:selectOneMenu>

<h:selectOneMenu styleClass="selectOneMenu" id="menu2" value="#{deemListBean.tempCity}" >

<f:selectItems value = "#{deemListBean.getCity}" />
</h:selectOneMenu>

<hx:commandExButton type="submit" value="Submit"
styleClass="commandExButton" id="button1"></hx:commandExButton>


And my Backing Bean is:


public void listenerStateName(ValueChangeEvent vce){


System.out.println("inside listenerStateName");
String value = "";

value = (String)vce.getNewValue();

System.out.println("********* The new Value is = "+value);
FacesContext fc = FacesContext.getCurrentInstance();
fc.renderResponse();
deemListBO= this.serviceLocator.getConcreteDeemListService().getCity(value);
setCity(deemListBO.getCity());
System.out.println("********* The new Value is = "+city);



}

any body can help.
14 years ago
JSF
this is my JSP:


<h:selectOneMenu styleClass="selectOneMenu" id="menu1" value="#{deemListBean.tempState}" onchange="submit();" valueChangeListener="#{deemListBean.listenerStateName}" >

<f:selectItems value = "#{deemListBean.getState}" />
</h:selectOneMenu>

<h:selectOneMenu styleClass="selectOneMenu" id="menu2" value="#{deemListBean.tempCity}" >

<f:selectItems value = "#{deemListBean.getCity}" />
</h:selectOneMenu>

<hx:commandExButton type="submit" value="Submit"
styleClass="commandExButton" id="button1"></hx:commandExButton>


And my Backing Bean is:


public void listenerStateName(ValueChangeEvent vce){


System.out.println("inside listenerStateName");
String value = "";

value = (String)vce.getNewValue();

System.out.println("********* The new Value is = "+value);
FacesContext fc = FacesContext.getCurrentInstance();
fc.renderResponse();
deemListBO= this.serviceLocator.getConcreteDeemListService().getCity(value);
setCity(deemListBO.getCity());
System.out.println("********* The new Value is = "+city);



}

any body can help.
14 years ago
JSF
hi Iam trying to do onchange selectOneMenu is not working but if I put submit button it is working?(I am using valueChangeListener).
any body can help ...when I onchange my combo box, I want to change value in down side combo box ....actually when I select state combobox, only it has to disply cities in my down combobox.
14 years ago
JSF
Hi, I read there is about clustering Server using with Spring.
If any body know about this please give me proper information.
How can I find day from the week using date format like 27/02/2006. from this date format I have to find that day is Monday.
I mean using date format how we can find day(like monday, or tuesday or wednus day) from week.
15 years ago
How can I found small value from my array?

like {20.30.40.45,50,80.90} from of this how can find 20 is small value in this array.
15 years ago
How can I compare adate, that is between two exist date feilds?
Like 02/03/2006 is in between like two existing 01/03/2006 and 03/03/2006.
If any one know plz give that code.
15 years ago
Actually I am storing my Jpg files in a single column as multiple rows. So how can I retrieve as JPG files with same names of before stored jpg file names.(I am rertriving as a single file )

lSbrqry.append("SELECT IMAGE FROM CLWF_IMG_FTP ORDER BY IMG_ID");
UTIL_LOGGER.fnWriteLog("CLWF_ejbIMG_FTPBean","CLWF_ejbIMG_FTPBean(fnRetrieveImage)","lSbrqry="+lSbrqry);

lpstmtretdet=lcnret.prepareStatement(lSbrqry.toString());
lrsret=lpstmtretdet.executeQuery();
while (lrsret.next()){
System.out.println("got record");
Blob image = lrsret.getBlob("IMAGE");
System.out.println("inside ejb image = "+image.toString());

InputStream input = image.getBinaryStream();

//if(image.equals("Winter")){
//FileOutputStream output = new FileOutputStream(lStrFtpImage+"Winter.xml");
FileOutputStream output = new FileOutputStream("c:/jk/Winter.jpg");
//}else{

//System.out.println("in EJB else");
//}
System.out.println("inside ejb after putting image = "+image.toString());

// set read buffer size
byte[] rb = new byte[1024];
int ch = 0;
// process blob
while ((ch=input.read(rb)) != -1) {
output.write(rb, 0, ch);

so any one can help how can I retrieve with my old names when I am storing that file names.
15 years ago
how can I read and list files in my Jsp List, from my C:/Folder/

anybody can help
15 years ago
JSP