DG page has the following:
CI
SI
RI
DG
When user changes a value in RI user shud be brought back to RI, instead of the beginning of the page where he will have to scroll into the apt section.
here is how we'll do id:
Declare div values for each section of your page and
Set the value in ur action class on pg submit
facilityGradeForm.setShowRegClass(true);
facilityGradeForm.setShowCI(false);
facilityGradeForm.setShowGuarantee(false);
facilityGradeForm.setshowOS(false);
facilityGradeForm.setShowDG(false);
Call a generic js fn on pg load to scroll into the div value on submit.
function setAptPageFocus(){
//alert("IN apt page focus");
//alert(document.forms[0].showGuarantee.value);
if (document.forms[0].showGuarantee.value=="true"){
//alert("In Show Guarantee");
divShowGuarantee.scrollIntoView();
}
if (document.forms[0].showOS.value=="true"){
//alert("In Show OS");
divShowOtherSupport.scrollIntoView();
}
if (document.forms[0].showRegClass.value=="true"){
//alert("In SHow Reg Class");
divShowRegClass.scrollIntoView();
}
if (document.forms[0].showCI.value=="true"){
//alert("In SHow CI");
divShowingCI.scrollIntoView();
}
}
Each page submit will take you to apt section of the page yay.!!
Tuesday, August 28, 2007
Friday, August 10, 2007
Opening a JAR, WAR or EAR file
I always wondered if I can see the contents in the mysteriously looking Jar, WAR and EAR Files. Now I know how to do the trick :))
Copy your war to a different directory, Simply rename it to war and double click it.. lol there you can see all the contents of your war file. hehe..
You can do the same trick to see EAR and WAR files.
yeppeee..!!!
Copy your war to a different directory, Simply rename it to war and double click it.. lol there you can see all the contents of your war file. hehe..
You can do the same trick to see EAR and WAR files.
yeppeee..!!!
Wednesday, August 8, 2007
Force Shut down your server
Had a problem today with my eclipse..where I had to close. My server continued to run though my eclipse is not open...
When I opened my eclipse. and tried to start the server, it said cannot acquire a lock on ldap etc, and was not starting.
In such cases, goto your console,
server--> control --> Force shutdown.
When I opened my eclipse. and tried to start the server, it said cannot acquire a lock on ldap etc, and was not starting.
In such cases, goto your console,
server--> control --> Force shutdown.
Exporting WAR File from Eclipse
An alternative to using Build.xml to create a war file..
RT click on the project --> export --> Java J2EE --> WAR
select your destination location
uhoooo witin like a minute you have your war file created at ur destination..and you can deploy it directly to your server...
Looks like you can also create an EAR file accordingly..Nice logic :))
ehhaaahaa
RT click on the project --> export --> Java J2EE --> WAR
select your destination location
uhoooo witin like a minute you have your war file created at ur destination..and you can deploy it directly to your server...
Looks like you can also create an EAR file accordingly..Nice logic :))
ehhaaahaa
Monday, July 2, 2007
Build with Clean Up
Problem: When I did hotdeployment of my web application module.. I noticed that my class files in the output folder are not getting updated / changed.And I am not sure y. Tried many different cases.. restart server, redeploy app.. etc.. nothing worked.. then I called Vipul.. who magically did just one thing..
yes CLEAN UP
how do you clean up :
From the menu in ur eclipse on the top.. project --> clean up--> select teh apt proj to clean up.
Now when u clean up the porj it will clear all ur .class files.. so you will have to build them again..
project --> build
yes CLEAN UP
how do you clean up :
From the menu in ur eclipse on the top.. project --> clean up--> select teh apt proj to clean up.
Now when u clean up the porj it will clear all ur .class files.. so you will have to build them again..
project --> build
Hot Deployment
Hot deploying a web application module in My Eclipse..
Rt click on the Web application folder -- > MY Eclipse --> add or remove deployment--> select server name --> you are done..
but when I deploy it for the first time.. and restart the server, it doesnt get started well, so will have to got server console
webapplications --> its where you would see the upload directory to upload the war file..
there select applications -->

other screen too..
Rt click on the Web application folder -- > MY Eclipse --> add or remove deployment--> select server name --> you are done..
but when I deploy it for the first time.. and restart the server, it doesnt get started well, so will have to got server console
webapplications --> its where you would see the upload directory to upload the war file..
there select applications -->

other screen too..
Sunday, July 1, 2007
Finding J2EE Applications Context
What is context:
A word used to access your application in the URL you use
ex: http://localhost:7001/srgt/actions/dashboard.do
Here srgt is ur application's context
Now how do change the contxt to srgt-arc..?
In weblogic.xml file.. here is how the context root is:
srgt
also actions from my standalone are not working..
problem is : in my web.xm;/ I have both my struts configs defined in on parameter and mistakenly I have also added the new app ctxt as a new parameter..so all my new appls are working..but when I call existing actions from v1.0 grrr they are not working.. the resolution is not take off the other parameter and keep the two of them in..
here is the snippet..
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml,/WEB-INF/srgt-arc-struts-config.xml
debug
3
A word used to access your application in the URL you use
ex: http://localhost:7001/srgt/actions/dashboard.do
Here srgt is ur application's context
Now how do change the contxt to srgt-arc..?
In weblogic.xml file.. here is how the context root is:
also actions from my standalone are not working..
problem is : in my web.xm;/ I have both my struts configs defined in on parameter and mistakenly I have also added the new app ctxt as a new parameter..so all my new appls are working..but when I call existing actions from v1.0 grrr they are not working.. the resolution is not take off the other parameter and keep the two of them in..
here is the snippet..
org.apache.struts.action.ActionServlet
Subscribe to:
Posts (Atom)