Rebecca Abraham

Ranch Hand
+ Follow
since Feb 20, 2003
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 Rebecca Abraham

Hi,

Could someone please help me by directing me to where I can download BEA Workshop for WebLogic Platform 9.2.2?

Thanks,
Rebecca
14 years ago
Hi,

I have a doubt in my application. The flow is as follows : When my appln starts a servlet is loaded and a jsp is displayed. On a particular event in the jsp an Action class is called from where my java class is invoked. In this java class, I have hardcoded the folder path of an API . I want to avoid the hard coding. I tried giving it in the init param of web.xml but the value appears "null" in my java class. However the value is obtained in the servlet, while the application is loaded.
Can u tell me what is wrong? or suggest a work around for removing the hardcoding.

Thanks.
17 years ago
I was able to acheive it in the following way :
__________________________________________________________________
String dateAsText = "";
GregorianCalendar gregCal = new GregorianCalendar();
Calendar cal = new GregorianCalendar();
//integer value of Sat
int satOfWeek = Calendar.SATURDAY;
//integer value of the current day
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
//find the date for sat
gregCal.add(GregorianCalendar.DATE,(satOfWeek - dayOfWeek) );
//date of the approaching saturday
Date time = gregCal.getTime();
SimpleDateFormat df = new SimpleDateFormat();
//format in dd-MMM-yyyy
df.applyPattern("dd-MMM-yyyy");
dateAsText = df.format(time);
_______________________________________________________________________
Thank you,
Rebecca
17 years ago
Hi,
I have a requirement in my project. When I login to my application I need to fetch today's date and the corresponding Saturday's date along with it.
For eg: If I login today i.e. 06-Dec-2004, I should get this week's Sat's date i.e. 11-Dec-2004, if I login on 29-Dec-2004, I should get 01-Jan-2005.

Can someone help.

I was able to fetch today's date, please see the code below
_________________________________________________________________________
import java.util.Date;
import java.text.SimpleDateFormat;
Date d = new Date();
SimpleDateFormat df = new SimpleDateFormat();
df.applyPattern("dd MMM yyyy");
String dateAsText = df.format(d);
__________________________________________________________________________
17 years ago
Could you please be more specific? I mean, I was unable to understand what exactly I need to do. What I require is that the date fetched from the database should be selected in the combo.

For example if "Nov26" is returned from the database, I want this value to be displayed as selected in the combo.

Thanks.
Rebecca
Hi,

When using Struts, is it possible to set a selected value for a combo box? For example I have the following combo:

<html:select property="tskWeekEndDate">
<html ption value=""></html ption>
<html ption value="Nov6">06-Nov-2004</html ption>
<html ption value="Nov12">12-Nov-2004</html ption>
</html:select>

How do I set 'Nov6' as a pre-selected value?

Thanks.

Rebecca
Hi,

I am trying to display the data from my form-bean in a jsp file called taskMaintenance.jsp using the following code:

<td>
<html:textarea property="tskDtlDescription" cols="50" rows="3" value="<bean:write name="taskList" property="tskDtlDescription"/>">
</html:textarea>
</td>

But, I am getting the following error:

org.apache.jasper.JasperException: /pages/user/taskMaintenance.jsp(101,105) equal symbol expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
.......


Could someone please help?

Thanks.

Rebecca
Hi,

I have an Employee Mangement application which does the following functionality
1. Add Employee
2. Edit Employee
3. Delete Employee
4. List Employees.

The flow of the appln is as follows :
1. Login to the Application
2. List Employee Screen displayed
3. From List Employee Screen Add,Edit/Delete Employee is possible.

My requirement is that I want a single form class to hold all Employee data (Emp Id, Name, Addr) which can be used across all screens.
I encountered an issue while coding this form class -
The Delete Employee screen requires only the Emp Id form-property,so I had to create a new form class for that screen exclusively.
I found that there is duplication of form beans.
Is there a better approach in Struts than creating separate form classes for every screen?

Thanks!
Hi,

I read that if jboss has tomcat 4, I need to add the commons-pool.jar if I have to get my application running. Do I need to add this jar if my jboss has tomcat 5 too?

Thanks.
Rebecca
17 years ago
Hi,

I read that jboss3.2.5 has tomcat5. but when i downloaded the jbos file & tried to deploy my application I found that the tomcat version was actually 4 & not 5. could someone please explain?also, could someone please tell me where i can download jboss3.2.5 which has tomcat5?

Thanks.
Rebecca
17 years ago
Hi,

Could someone please help me to create a dump file of my oracle database? I need the create queries of all the tables.

Thanks.
Rebecca
17 years ago
Hi,

Could someone please tell me how to create a new database? I'm using Oracle9i.

Thanks.
Rebecca
17 years ago
Hi,

I have used JBoss to deploy & run applications using EJB. Currently my application uses Struts. I created the WAR file of my application. I want to know how to use JBoss to run my application. Could someone please help?

Thanks.

Rebecca
17 years ago
Hi,

In my Oracle database, I have 2 tables info & profile. The profile table has the columns city & state. I want to add the these columns to the info table & also populate these columns in the info table with the same data as in profile table. I have added the columns. But I am not able to copy the data in these columns from the profile table to the info table. Couls someone please help? Its really very urgent.

Thanks.

Rebecca
17 years ago