Radha Kethana

Greenhorn
+ Follow
since Jun 11, 2003
Merit badge: grant badges
For More
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 Radha Kethana

Jeanne - I changed my display name. Thank you for letting me know the impact of using proper names.
Nishan - I will definitely inform you once I implement. Thank you for your response.
15 years ago
Thank you everyone for quick response and suggestions.

I did not mean that Merrill is the only one who can help me. But, I always get exact reply back from him all the time. I thought He will look into the post for sure if I specify the name. I should not have done that.

Sorry for the inconvenience that I caused by specifying the name.

Greatly appreciate all your responses.

Thanks everybody
15 years ago
HI

I am developing a struts application. One of the requirement is I need to display 10 records per page out of like 100 records that I receive from Database. Does anybody know how to do this. And also I need to give an option to export all the database records in an xl file. Any website that coverts these topics?

Merrill Higginson - I hope you read this. Please help me on these 2 items.

Thank you in advance
Radha
[ October 03, 2008: Message edited by: Bear Bibeault ]
15 years ago
HI Merrill

You are amazing. I have been trying different options for the last one week. Thank you very much. I will definitely credit the author.

Regards
Radha
15 years ago
Hi Merrill

I have been trying to resolve one issue but could not. I thought You might have an answer.Can you please help me on this.

Here is the issue.


In my struts application, I have a log in page that leads to homepage where I have all the opations like inser/delete... to manupulate database data. Home page is divided into 4 frames. Topframe for title, leftframe for list of operations and on right frame again divided into top and bottom frames. SO, when user clicks on delete he has to select some values that are displayed on right topframe and then click submit button. So in the corresponding action class first I will check whether the user is valid to perform this action if not it has to go back to login page. If the user is a valid user then correctsponding page will display on bottom right frame other wise whole page has to redirect to login page. That is where I am facing the issue. "In either case the resultent page is getting displayed in the bottom right frame itself". I specified redirect="true" for "login" forward which is a global-forward like below..

Struts_config
-----------------

<global-forwards>
<forward name="login" path="/logon.jsp" redirect="true"/>
</global-forwards>

<action path="/insertData" name="insertDataForm" scope="request" type="com.boeing.aiCredentialValidator.actions.InsertAction" input="/insert.jsp">
<set-property property="loginRequired" value="true"/>
<forward name="success" path="/insertSuccess.jsp"/>
<forward name="failure" path="/blank.htm"/>


In my top right frame jsp page I have below code:
-----------------------------------------------------

function OnSubmitForm()
{
if(queryString('operation') == "view")
{
document.myForm.action ="viewinterfacecredentials.do";
document.myForm.target="lowerFrame";
document.myForm.submit();
}
else if(queryString('operation') == "delete")
{
document.myForm.action ="deleteConfig.do";
document.myForm.target="lowerFrame";
document.myForm.submit();
}
else
{
document.myForm.action ="updateInsertIC.do";
document.myForm.target="lowerFrame";
document.myForm.submit();
}
}

In my action class I have below code:
-------------------------------------

public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
StringBuffer operationType=new StringBuffer();


HttpSession session = request.getSession();
String target = new String("success");
EmployeesActionMapping employeesMapping = (EmployeesActionMapping)mapping;
if(employeesMapping.isLoginRequired())
{
if(session.getAttribute("USER") == null)
{
target = new String("login");
ActionErrors errors = new ActionErrors();
errors.add("org.apache.struts.action.GLOBAL_ERROR", new ActionError("errors.login.required"));
if(!errors.isEmpty())
{
saveErrors(request, errors);
}
return mapping.findForward(target);
}
}
.........
...............

}

Regards
Radha
[ July 07, 2008: Message edited by: radha kethana ]
15 years ago
Hi Merrill

Thank you so much for your help. It is working now. I could not have figured that out by myself in a short period. Appreciate your help.

Regards
Radha
15 years ago
HI Mark & Merill,

I need to change the action of html:form dynamically depending on input URL. I did exactly what you guys were saying but could not make it work. Can you please help me on this one. I am getting an error saying that "The requested resource (/updateInsertIC) is not available." If I don't change the action dynamically then this action is working. That confirms that all configurations for this action are correct.

Here is the javascript code:
----------------------------

function OnSubmitForm()
{
if(queryString('operation') == "view")
{
document.myForm.action ="/viewinterfacecredentials";
document.myForm.target="lowerFrame";
document.myForm.submit();
}
else
{
document.myForm.action ="/updateInsertIC";
document.myForm.target="lowerFrame";
document.myForm.submit();
}
}
function queryString(parameter) {
var loc = location.search.substring(1, location.search.length);
var param_value = false;
var params = loc.split("&");
for (i=0; i& lt;params.length;i++) {
param_name = params[i].substring(0,params[i].indexOf('='));
if (param_name == parameter) {
param_value = params[i].substring(params[i].indexOf('=')+1)
}
}
alert("operation in viewTop.jsp:"+ param_value);
if (param_value) {
return param_value;
}
else {
return false; //Here determine return if no parameter is found
}
}


Here is the form tag:
---------------------
& lt;html:form action="/updateInsertIC" styleId="myForm" method="post">

Here the button which will call the script code:
------------------------------------------------
& lt;INPUT type="button" name="Go" value="GO" onklick="OnSubmitForm()">

Regards
Radha
15 years ago
Hi

I am new to exadel studi pro. Can some one please guide me what to do.

I have Exclipse 3.2.2 installed on my machine. I have to delelop a project in struts. SO, I downloaded Exadel 4.0.4b. I unzipped the file. And then I created a links folder in Eclipse home and created a new test file with name as "com.exadel.studio.link.txt" which has the below text in it.
path=C:/software/ExadelStudioPro-4.0.4a

After that I started Eclipse

C:\software\eclipse>eclipse -clean

When I trying to open Exadel struts pro perspective I am getting following error.
"problem opening perspective "com.exadel.web.ui.Exadel4WebPerspective"


While trying to create a new struts project in Exadel 4.0, I am getting this exception.
"The Selected Wizard could not be started.
Reason:
Plugin com.exadel.jsf.ui was unable to load class
com.exadel.jsf.ui.wizard.project.NewProjectWizard"

Can anyone please help?
Hi

I am new to exadel studi pro. Can some one please guide me what to do.

I have Exclipse 3.2.2 installed on my machine. I have to delelop a project in struts. SO, I downloaded Exadel 4.0.4b. I unzipped the file. And then I created a links folder in Eclipse home and created a new test file with name as "com.exadel.studio.link.txt" which has the below text in it.
path=C:/software/ExadelStudioPro-4.0.4a

After that I started Eclipse

C:\software\eclipse>eclipse -clean

When I trying to open Exadel struts pro perspective I am getting following error.
"problem opening perspective "com.exadel.web.ui.Exadel4WebPerspective"


While trying to create a new struts project in Exadel 4.0, I am getting this exception.
"The Selected Wizard could not be started.
Reason:
Plugin com.exadel.jsf.ui was unable to load class
com.exadel.jsf.ui.wizard.project.NewProjectWizard"

Can anyone please help?
15 years ago
Hi Prasad

Thank you for posting the questions for IBM WAS certification exam 252. Can you recommend what books/web sites we need to follow. I searched in google I could not find any related books.

Appreciate your help. Thanks in advance.
Radha
16 years ago
Congratulations Pallavi.
Can you please send that pdf to me also.
rmasanam@hotmail.com.
Can anybody tell what will be the right answer for the following questions.

question 1:
A Java class contains errors because it has references to classes not available in the workspace. Which TWO of the following represent ways to fix this error?


(Choose 2)

A.
From the Java Build Path page in the Java Project properties, add the missing JAR file as an External JAR.

B.
From the Java Build Path page in the Java Project properties, add the JAR file from a project in the workspace.

C.
From the Java Build Path page in the Java Project properties, add a Variable that points to the missing JAR.

D.
Import the missing class files into the output folder of the project using the Import wizard.

question 2 :

Which of the following views would allow a developer to insert a JSTL forEach tag using drag and drop?


A.
The Snippets view

B.
The Quick Edit view

C.
The Palette view

D.
The Thumbnails view