Sumithab Baskaran

Ranch Hand
+ Follow
since Oct 29, 2004
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 Sumithab Baskaran

I have a page with multiple links and buttons. Fo example, let us condsider I have:
1) a href for "name". This hyper=link will open a pop-up window
(code nclick=javascript:winRef=window.open(namde.do)
2) a button called "lookup". This button will open a another pop-up window
(code nclick=javascript:winRef=window.open(lookup.do)

When I hit the "save" button, I am checking for open-pop-up windows. here is the javascript code:
function checkPoppedWindows()
{
var ret = true;
if( winRef != null && !winRef.closed)
{
alertt("You are in the process of updating information.\nPlease finish
this process or close the window.");
winRef.focus();
ret = false;
}
return ret;
}

Question: this code works fine when I open one pop-up window, hit the "save" button without closing it.
But, when I open the "name" window, do not close it, open the "lookup" window also, do not close it and hit the save button: The alert message comes up and focusses on the "lookup" (the second) window. So I close it and then hit "save". Now ideally, it should alert me saying another window ("name" window)is open. But it does not. It "saves" the form. How do I fix this?

Thanks in advance!
[ July 21, 2006: Message edited by: Bear Bibeault ]
I am using Oracle JDeveloper for the first time. I have a question on the features the JDeveloper has to offer. I have mulitple Applications in my workspace. I would like to know if JDeveloper has an option to close/open projects.
For example, in Exclipse or Websphere, there is a project tab in the top toolbar which has open and close options. When you select a project from the workspace, and then click Project -> close, the project is greyed out and the project contents are no longer expandable/viewable. The project is in your workspace, but it is just not accessible until you open it again.
Is this fetaure available in JDeveloper. I did look, but I could not find it. This helps me a lot because I sometimes work with many versions of the same application and it helps me not to get all mixed up.

Thanks
I am sorry, it was my mistake. I had the name and the property attributes all mixed up.
Thanks for the tip. It works!
15 years ago
I changed the array to an ArrayList. now, the <logic:empty> dipslays the correct message, but the <logic:notEmpty> also displays the message. The "No Details available" message is always present regardless of the ArrayList being empty or not.
Any suggesstions?
15 years ago
Here is my code:

<logic:notEmpty name="chDentalPlanForm" property="chDentalPlan">
<logic:iterate id="idental" name="chDentalPlanForm" property="chDentalPlan"
indexId="index">
<table cellpadding="5" cellspacing="1" width="100%" border="1">
<!-- display the dental plan details
</table>
</logic:iterate>
</logic:notEmpty>

<logic:empty name="chDentalPlanForm" property="chDentalPlan">
<p>No Details available </p>
</logic:empty>

The property chDentalPlan is an array. When the array is not empty, the <logic:notEmpty> tag displays all the values correctly. If the array is empty, the "No details Available" message is not displayed. I checked to see if the array is empty using the code:
if (chDentalPlan.length = 0) { }
it is empty. The message gets displayed.

Why does the <logic:empty> not work? Am I doing something wrong? Help!
Note: I tried <logic resent> around the <logic:empty> also. Did not work.

thanks
15 years ago
I have a search page with the following parameters.

Search by Name: (textbox)

Search by SSN: (textbox)

Search by Zipcode: (textbox)

The user enters info in the textboxes and hits the search button. It takes the user to the searchResults page that displays the list. This searchResults page has a "New Search" button. When the user hits this button, the search page is displayed, but with empty textboxes. What should I do to store the entered information and display it when they hit the "New Search" button?
for example, in the search page, if they enter Search by zipcode as "55535" and hit the search button. a list is displayed in the searchResults page. When they hit the "New Search" button, now it should go back to the search page and contain the zipcode "55535" in that textbox.

Any suggesstions?
15 years ago
JSP
Hi all,

I am trying to use Oracle JDeveloper 10.1.3 for the first time. Are there any good reference books that you would suggest to read up. I did try some online tutorials which tells me how to set up a new application and write my first java class. Are there any other tutorials of this nature? I would basically want to get very familiar with the IDE and learn how to set up the model - view - controller parts and how do I create project dependencies?

Thanks in advance!
All,

I have used JBoss Application server for the last 3 months.
I would like to know what are the differences between these servers: JBoss, WebLogic and WebSphere.

Thanks
15 years ago
I am using displayTag.
In this line, <display:table name="searchResults" />
-- the searchResults is a list that the displayTag iterates through and displays 3 columns - 1) selector column with radio buttons
2) name column
3) description column
So, there can be any number rows in the list. 'searchResults' is a dynamic list that gets populated by making a call to the database in the Action class.

The code that I first posted is complete. In this situation, I want to auto-select the first row.

Thanks
Yes. I tried using checked. But, by default the last row of the list is selected always. I want the first row to be selected, not the last.

Any other suggestions?
Thanks
Hi All,

I using DisplayTag to display dynamic rows of data in my jsp's.
My first column needs to be a selectable column (radio buttons). I am able to display a column of radio buttons by using the <input> tag.
My question is: How do I auto-select the first row of data? (by default the first row must be selected)

Here is the code:

<display:table name="searchResults" requestURI="" scope="session" width="100%" id="resultsList" sort="list" defaultsort="3" defaultorder="ascending" pagesize="10" cellpadding="0" cellspacing="0" border="0" >
<display:column title="Select" align="center"> <input type="radio"
name="selector" value="" /> </display:column>
<display:column property="namec" title="Name" sortable="true"
align="left" />
<display:column property="description" title="Description"
sortable="true" align="left" />
</display:table>

Please Help!
Thanks in advance!
changing the widths to 50% did not help.
Hi All!

I have a table that needs to be divided into 2 td's. Like this:

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>

<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="breadcrumbBkgd">
<td>Backout Summary</td>
<td>Backout Id </td>
<td>Description</td>
<td>Status</td>
<td>Record Count</td>
</tr>
</table>
</td>

<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="breadcrumbBkgd">
<td>Rerun Summary</td>
<td>Rerun Id</td>
<td>Description</td>
<td>Status</td>
<td>Record Count</td>
</tr>
</table>
</td>

</tr>
</table>

My question: One of these td's can have empty columns. That is, if the Backout Summary columns are populated, the Re-run Summary columns "can" be empty. If both are populated, I have no alignment problems. When one of them is empty, the tables are not aligned. How many ever records there are in one table, the other table is so many columns mis-aligned.
How can I fix this problem?
Thanks in advance!
Hi All!

I have a comments page. This page must display the list of comments stored in the database. This page contains two buttons. Add comment and Cancel. The Add Comment button takes us to the screen where you can type in a comment and save it.

Issue: When I add a new comment and return back to the comments page, it shows the newly added comment, which is right. When I hit the refresh button on the browser, the newly added comment is added once more. Everytime I click on the refresh buton, the comment keeps adding to the list.

My Action class:
if(request.getParameter("Add Comment")
{
return mapping.findForward("addComment");
} else if(request.getParameter("Cancel") {
return mapping.findForward("cancel");
}
return mapping.findForward("success");

So, After adding the comment and returning to this action class, the refresh button is calling this action in which the request parameter is still set to "addComment" and thats why a new comment is added everytime.

How do I fix this?
16 years ago
Hi All!

I am validating a text field which is an integer.

Here is the code:
<field property="dataFactoryFileId" depends="maxlength,integer">
<msg name="integer" key="fileSearchForm.dataFactoryFileId.integer" />
<arg0 key="fileSearchForm.dataFactoryFileId.displayname" /> <arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
<var><var-name>maxlength</var-name><var-value>10</var-value></var>
</field>

When the user enters an integer like this: 2 0 9 6 9 5
Right now an error message is displayed: the field must be an integer.

How do I validate this and display an error message like - "do not use spaces while entering an integer"

Thanks in advance!
16 years ago