Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

Steph Sam

Greenhorn
+ Follow
since Dec 09, 2007
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 Steph Sam

how will count/3 three times will make my lists to hold equal number of objects? can you please provide a sample code snippet?
13 years ago
Thanks for your immediate responses. My requirement is this. I have a page where i'll display the list of applications to the user in 3 columns. I have the application object arraylist. how will i equally split the objects across the 3 columns.

If i have 9 applications, i can divide it by 3 and display them as 3 per each column. What will i have to do if my list has 8 objects.

This is my code:
int size = filteredAppLst.size();

int column1=0;
int column2=0;
int val = size%3;
int checkValue = 0;
if(val == 0){
checkValue = size/3;
}else{
checkValue = size%3;
}
for (int i = 0; i < filteredAppLst.size(); i++) {
Application app = (Application) filteredAppLst.get(i);
String name = app.getName().toLowerCase();
if(column1 != checkValue){
column1Lst.add(app);
column1++;
}else if(column2 != checkValue){
column2Lst.add(app);
column2++;
}else{
column3Lst.add(app);
}
}
13 years ago
Hi,
I have a list of objects. I need to equally split the objects and create 3 lists. Say for example in my first list i have 8 objects. i have to equally split the objects as 3,3,2. The number of objects will be random. so i need some kind of code to crate the list dynamically. Can anyone help me out in this?
13 years ago
I'm working in Vignette portal for few months. I wish to do certification on that. Can anyone please tell me about the certifications in VAP?
hi thanks for your reply. I need to upload the image from the user's machine to the server
13 years ago
Hi All,

In my project i have a requirement. The user will upload any kind of image. The image has to be stored in a different location. How can i do it? I'm able to browse and select the image using html. But how to read the file and store it in a different location?
13 years ago
hi all........ i have a requirement..... in my application i try to give a url of an attachment. when the user clicks on the link it should open a window like the usual one which asks us to open or save the attachment.... how to implement it using html?




thanks in advance
hi all,
is there any way to retrieve the portlet id, provided the portlet name? if there is any other way please let me know.....


thanks in advance
14 years ago
thanks eric....... i have resolved the issue..... when we use document.write in a new window we have use document.open and document.close. I missed that, thats why it didn't work for me......
[Content removed: please do not post the same question in more than one place]
[ January 21, 2008: Message edited by: Bear Bibeault ]
hi all....... i have the following requirement...... in my application i have a print preview link..... when i click that link the contents should get displayed in a new window along with a print option... when i click the print hyperlink it should print the contents of the page.... i used window.open() to open the new window and used document.write() to write the contents into the new window.... i have used a anchor tag inside document.write() to get the print option.... but this is not working fine.... the browser is considering the print link as a string.... can anyone help me solve this???

thanks in advance
thanks for the suggestion
14 years ago
hi....... i have four portlets in my page........ normally when we maximize a portlet then the rest of the portlets get hidden.... but in my scenario i need to maximize the second portlet and my first portlet should not be hidden...... is there any way to do it???
14 years ago
hi all,
i'm new to portlet development... i'm using vignette portal server.... does anyone of you know how to pass parameters from a jsp page to a portlet?
14 years ago
hi,
I'm new to portal development and i'm using vignette. Can anyone tell me how to get the page or menuitem id in vignette portal... i'm using vignette 7.3
[ December 20, 2007: Message edited by: Steph Sam ]
14 years ago