Nandlal Prajapati

Greenhorn
+ Follow
since May 25, 2012
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 Nandlal Prajapati

Is it possible to get the id's that has inserted by @SqlBatch in JDBI.
@GetGeneratedKeys results only count of keys inserted, need collection of ids.

thanks
Hi Everybody

Thanks for the responses.

Its a product code in which i am working on maintenance to enhance the existing functionality.
Due to the number of variables,i felt like posting it here.

Its only if statement.there is no else if.

variable a and b are always related.(like wise c and d and so on)(one gives the value of service and the other gives the status ..)
i am getting these values from another application. the code actually attaches offer to the subscriber as per a,b,c,d...(if prev a=y and current a=y then dont add if preva=n and currenta=y then add)

a,c,e and g are always different value.
9 years ago
i have like more than 200 lines of check statement i.e

if(a.equals("y")&&(b.equals("y"))){then do this}
if(c.equals("y")&&(d.equals("y"))){then do this}
if(e.equals("y")&&(f.equals("y"))){then do this}
if(g.equals("y")&&(h.equals("y"))){then do this}
if(i.equals("y")&&(j.equals("y"))){then do this}
...................................

then again in another page

if(a.equals("y")&&(b.equals("N"))){then do this}
if(c.equals("y")&&(d.equals("N"))){then do this}
if(e.equals("y")&&(f.equals("N"))){then do this}
if(g.equals("y")&&(h.equals("N"))){then do this}
if(i.equals("y")&&(j.equals("N"))){then do this}
....................................

please can anybody suggest me ,how to avoid multiple if statement by using objects.
or a way to improve the performance??

9 years ago
does anyone have any idea about this exception ..it is happening while clicking opening the web application.it seems obvious to answer as class loader is not able to load the given class file into memory ,but after webserver restart it is working properly untill the peek situation comes.

Error 500: Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFact

please help
Thanks
11 years ago
try doing this...
give full control to the conf folder which is in the Apache folder by right clicking and selecting security tab.
11 years ago
go to
run->services.msc->disable the Apache Tomcat
thats all ,it was happening because during your windows startup tomcat server used to start automatically.
11 years ago