martin jose

Greenhorn
+ Follow
since Aug 10, 2005
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 martin jose


Thank you so much Amritendu, for your response.

Thanks,
Martin
Hi,

I was preparing for JEE 5 architect exam for the past few months based on the books and other resources suggested in this Forum. Now since JEE 6 beta exam is available I am planning to appear for that.

Very much appreciate if somebody could help me in finding out the additional resources that I may need to refer for JEE 6 Exam.

Thanks in advance,
Martin
Hi Raghu,

Just try easy-struts plugin for eclipse. It is opensource. But it is available for struts 1.1 and Eclipse 2.1. We are looking forward for them to release the update for stuts1.2. You can find it from the following link, http://easystruts.sourceforge.net/

Regards,
Martin
18 years ago
Hi Graham ,


Thanks a lot. It is working perfectly. Thanks for your help.

Martin
18 years ago
Sree Vidya,

Better you try to create seperate packages for the form and action. Just create two folders,(say action, form) in the WEB-INF/classes/edu folder. Begin your action class with

package edu.action;

and your form with

package edu.form;

I your Action class import package edu.form.*. When you compile the action class you will have to include classes/edu/form folder in the classpath.Hope it will work. I am sorry if it sounds silly.

Regards
Martin
18 years ago
hi,

What type of exceptions you want to handle?
<html:errors> is normally used for form validation.

<html:text property="name"/><html:errors property="name"/>

you can put code like this in the JSP, so that if there is any error with the data you entered in the name field can be notified to the user.

if you simply put <html:errors> , it will display all the errors.

You must create this error entries either in your Form or Action.

validate()
{
ActionErrors errors = new ActionErrors();
if (name.length()==0 || name == null)
errors.add("name",new ActionError("error.emptychk"));
return errors;
}


if you want handle other error cases associated with the action, you can put the code in try-catch blocks and inside the block you can write the code for forwarding to a corresponding error pages

try
{
.........
..........

}
catch(Exception e)
{
mapping.findForward("error");
}

Also you can associate some Exceptions with an action. You can define each oof these exceptions with the help of a Custom exception class or an Existing Exception class. You can also specify where you forward on these exceptions.

Hope this will help you.

Regards,
Martin
18 years ago
Hi guys,


In my application I have one calendar.do action. I can pass an attribte to it by calling it calendar.do?tgdate=1126247219084. In the action I am reading it using request.getParameter("tgdate"). It is working. Now my problem is, I have to come to this action from another action as a forward.

mapping.findForward("success"); where success is calendar.do

I this case how can I pass the date attribute. I tryed setting it as an attribure before forwarding.

request.setAttribute("tgdate",date);
return mapping.findForward("success");

but it is not working. Is there any alternative. I can't put the value in session beacuse I have to invoke it from simple HTML links also.

Hope some of you might have got this same problem. Please give me some tips

Thanx in advance
Martin
18 years ago
Hi Sudhakar,

My struts1.2 validation is working perfectly, but we don't have any plugin support for struts1.2 in eclipse. So I have to do the validation in struts1.1 itself. I am not getting any help for 1.1 validation. I am doing the same thing in both, but only 1.2 is working. In 1.1 it is simply ignoring the validation. Is there any difference in validation.xml entries. Please give me some tips.

Thanks in advance
Martin
18 years ago
Hi Friends,

When I tryed for jave script validation supprot by adding the line
<html:javascript formName="vaildationForm"/>, the javascript code is getting displayed in the page and no validation is takein g place.
Serverside validation is also not working. I downloaded commons-validator-1.1.4.jar, but from where do I get the matching validator-rules.xml and validation.xml files. Is it a problem that I am using struts1.1 only. Somebody please spend some time for helping me.

Thanks,
Martin
validator_1_0_1.dtd
18 years ago