Wednesday, June 20, 2007

Making an EAR with Ant Build Script

I got an error saying that ejb compiler was unable to load or its something like bytecode found but unable to find class.

Was due to the fact that my class files(which I got from svn) are compled with a different version of java than the version I am using in my local

resolution: deleted all class files got from svn and made my ant comple and create them again.

Boom: it started working. then hit by another error.

I am getting all sorts of compilation errors for all references in ejb file to the class file.

so the resolution is to inlucde the jar file created from the reference proj in class path. Here is how it looks like:










and it compiled yay..!!!

Tuesday, June 12, 2007

Java Script popup window

window.open("/srgt-arc/actions/validateResult.do", "ValidationResult", "width=700,height=400,SCROLLBARS");

and also

function viewFacPrevGR(submitType,proposalElementId)
{
// alert("Inside dgPopUp");
document.forms[0].action.value=submitType;
window.open("about:blank", "viewFacPrevGR", "width=900,height=600,SCROLLBARS,dependent,resizable");
//window.open("about:blank", "sArcViewPreviouGR", "location=0,toolbar=0,menubar=0,resizable=1,modal=yes");

document.forms[0].target = "viewFacPrevGR";
document.forms[0].selectedProposalElementId.value = proposalElementId;
document.forms[0].submit();
}

pop up windows in JS

WOrking with popup windows in JS

function submitMenu(submitType,proposalElementId,clientGradingStatus,proposalType){

if(submitType == "viewFacPrevGR"){
dgPopUp(submitType,proposalElementId);
}
}


//POPUP FUNCTION

function dgPopUp(submitType,proposalElementId)
{
// alert("Inside dgPopUp");
document.forms[0].action.value=submitType;
window.open("about:blank", "viewFacPrevGR", "width=900,height=600,SCROLLBARS,dependent,resizable");
//window.open("about:blank", "sArcViewPreviouGR", "location=0,toolbar=0,menubar=0,resizable=1,modal=yes");

document.forms[0].target = "viewFacPrevGR";
document.forms[0].selectedProposalElementId.value = proposalElementId;
document.forms[0].submit();
}


window.open("/srgt-arc/actions/validateResult.do", "ValidationResult", "width=700,height=400,SCROLLBARS");

Itsy bitsy ava Script

Working with PopUp windows.. :)

hey first time I ever created a popup window today.. I am so happy .. yay!!!

here is the code to create one..

function submitMenu(submitType,proposalElementId,clientGradingStatus,proposalType){

if(submitType == "viewFacPrevGR"){
dgPopUp(submitType,proposalElementId);
}

}


function dgPopUp(submitType,proposalElementId)
{
alert("Inside dgPopUp");
document.forms[0].action.value=submitType;
window.open("about:blank", "viewFacPrevGR", "width=900,height=600,SCROLLBARS,dependent,resizable");

document.forms[0].target = "viewFacPrevGR";
document.forms[0].selectedProposalElementId.value = proposalElementId;
document.forms[0].submit();
}



or you can directly call it from your JS as:


window.open("/srgt-arc/actions/validateResult.do", "ValidationResult", "width=700,height=400,SCROLLBARS");


learning is fun :)

Friday, June 8, 2007

trouble with tns :)

when I try to add a tns entry as I got from someone like:

TPBD.WORLD =
(DESCRIPTION =(LOAD_BALANCE = ON)
(FAILOVER = on)
(ADDRESS = (PROTOCOL = TCP)
(HOST = cittpbd2.ny.jpmorgan.com)
(PORT = 16830))(ADDRESS = (PROTOCOL = TCP)(HOST = cittpbd3.ny.jpmorgan.com)(PORT = 16830))(CONNECT_DATA =(SERVICE_NAME = TPBD.WORLD)))


its always gives me an error when I try to do a tnsping... and I thought it only happens with me..

I found an alternative.. you just have to rearrange things a little bit.:) and everything is fine :)


TPBD.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cittpbd2.ny.jpmorgan.com)(PORT = 16830))
(ADDRESS = (PROTOCOL = TCP)(HOST = cittpbd3.ny.jpmorgan.com)(PORT = 16830))
(LOAD_BALANCE = ON)
(FAILOVER = on)
(CONNECT_DATA =
(SERVICE_NAME = TPBD.WORLD)
)
)

have fun :)

Wednesday, June 6, 2007

compiled jsp files in weblogic

are located at
since I am using edploded war,

C:\bea\user_projects\domains\mydomain1\myserver\.wlnotdelete\extract\myserver_srgt_srgt\jsp_servlet\_pages\_sarc

Monday, June 4, 2007

Int Q's

1) Version of Struts,Spring,App server ur using

Ans:

2)Dispatch Action

Ans: Parameter in Struts-config.xml

3) Example of how you do dispatch action

Ans:

4) Calling sp from jdbc

Ans:

5)Steps in deploying app on weblogic server

Ans: 1)Compile code

2)Create war etc