Biju moozhikkara

Greenhorn
+ Follow
since Oct 21, 2005
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 Biju moozhikkara

We are using System.getProperty("java.io.tmpdir") in our application running at Sun solaris box and it returns the value "var/tmp".Is there any way i can change the system property so that System.getProperty("java.io.tmpdir") returns "/tmp".


I am looking for an option other than System.setProperty("java.io.tmpdir", "/temp");

Thanks and Regards
Biju M
[ February 12, 2008: Message edited by: Biju muzhikara ]
14 years ago
Hello Jeanne ,
Thanks for the link.But i was looking for dynamic sql embedded in db2 stored procedure. hope that is very much possible.

Regards
Biju M
Hello,
Can any body provide me with Any sample working code or tutorial for dynamic sql in db2 procedures.

i need to change certain part of sql statment, like order by field dynamcally.

Regards
Biju M
Can any body provide me with Any sample working code or tutorial for dynamic sql in db2 procedures.


Regards
Biju M
Hello,

i have requirement where i have to do order by on the field that i give as input to the store procedure.Also i have to change the sorting direction, ASC or DESC

folowing is the stored proc i tried.Although its error free and getting deployed .the result returned on execution is,not sorted as per the input i gave.

CREATE PROCEDURE SP_TESTPAGE (
IN current_sort_field VARCHAR(64),
IN current_sort_order VARCHAR(64),
IN sso_id VARCHAR(64)
)
DYNAMIC RESULT SETS 1
P1: BEGIN

-- Declare cursors
DECLARE cursor CURSOR WITH RETURN FOR
SELECT SESSION_ID, FROM_DATE, DESCRIPTION FROM TACTP00.PAGINATION
ORDER BY current_sort_field ;


OPEN cursor;
--END CASE;
END P1

The another aproach i tried was to put seperate select query with order by on each cloumn with a declared cursor with it.And open only one cursor based on the check whether current_sort_field(input to stored proc) is column1 or column2.This works fine, but this will bring up lots of if conditons in the stored proc as the number of columns in the table increases. It would be great if i can make the first approach work.

Can any body help

Regards

Biju
Hi all,

Iam using Vignette Aplication Portlet withspring framework.
i had requirment where i need to implement httpservletrequest.getRemoteAddr() equalent stuff using PortletRequest.

i tried to get HttpServletRequest from PortletRequest using the below
code, but its returning null.
HttpServletRequest httpRequest = (HttpServletRequest) renderRequest.getAttribute("javax.portlet.portletc.httpServletRequest");

In simple words i need to get remote Ip address from where the request came using Portlet request

Can any body help

Thanks and Regards

Biju M
[ January 09, 2007: Message edited by: Biju muzhikara ]
15 years ago
is there any way to get HttpServletRequest from RenderRequest object.Iam developing JSR portlets

Biju
15 years ago
hai,
You can use portalContext.getCurrentUser().getDisplayName();
This worked fine in vignette based environment.Hope similier method is there for other env tooo
[ September 18, 2006: Message edited by: Biju muzhikara ]
15 years ago
Hello,

Can we dynamically change the postion of a portlet in a page through code.Iam working in a Vignette based environment.

Thanks

Biju
15 years ago
Heloo,
Any body knows in which order the different portlets added in a page is executed.Also is there any way that we can control the order. so that a purticular portlet say 'A' is executed and rendered before another one say 'B'.Iam using vignette based environment to run my portlets.


Thanks

Biju M
15 years ago
Hi,
i want to put a properties file some where in my portlet project ,probably under WebContent and read it through java.io api's from portlet. Can any one suggest where exactly suggest where i could put the file and which path should i give in say a FileInputStream("path");

Thanks
Biju
[ August 04, 2006: Message edited by: Biju muzhikara ]
16 years ago
hai,
java ranch is showing some error when try i to put jsp code.When i try with Post the field like <input type = 'hidden' name = 'pgValue' value = '<%=pgValue%>' > (for hidden and text fields)are returning null for req.getparameter().And if i try with GET the data i send along the url are not available.
biju
[ March 17, 2006: Message edited by: Biju muzhikara ]
16 years ago
hai,
i have html text field,produced by jsp file.i need them in overwrite mode as they get loaded.i mean the newly entered charactors should replace the existing one.is there any solution for this.May be a javascript funtion will help.iam not sure about that.But is there any code in java by which i could enable or disable insert key.
Biju
[ March 18, 2006: Message edited by: Biju muzhikara ]
16 years ago
iam using POST and some of the fields in my form are hidden.
i have to use the script funtion ,since i have to decode which key the user pressed(seperate script function is used for it) and will pass a unique value to the callpage(var) for ex 7d for enter.
16 years ago
function callPage(val){
var pgVal=formObj.pgValue.value;
var str=formName.substring(1,formName.length);
page="P"+str;
var temp = val;
if(temp == "7D") {
var entVal = formObj.WCMSCHLUES.value; formObj.action="../"+pgVal+"?pgValue="+pgVal+"&rwaid="+temp+"&WCMSCHLUES="+entVal;
}
else { formObj.action="../"+pgVal+"?pgValue="+pgVal+"&rwaid="+temp;
}
formObj.submit();
}
This is my script funtion which submit the form. i did put alerts just before submit to see whether the values are actually present.They values are present in the form object as it is submitted.
can the code i mentioned in the first post cause any problem.the entire thing is working fine if i remove it.
16 years ago