Kinjal Sonpal

Ranch Hand
+ Follow
since Jun 06, 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 Kinjal Sonpal

Following links may be of help to you.
Jakart Struts Live
Struts Resources

Regards,
Kinjal
19 years ago
Also consider MyEclipseIde. It's a big plugin for Eclipse having most functionalities a typical J2EE application developer may require. Some of the features that I like most is hot deployment, deployment to as many servers as required, decent struts support, decent DB browser. $29 per seat per year is a pretty thin bill to the manager.

HTH.

Thanks and regards,
Kinjal Sonpal

P.S. I'm not their mktg. personnel.
Hi Rajesh,

It's pretty straight. Just assign a value to the property, which you are going to use for the <html: select>. It'll be prepopulated.

Btw, for exact code and greater details, search the archive. It's one of the regularly asked questions.

Thanks and regards,
Kinjal Sonpal
19 years ago
Aloha .. Anyone with ideas?
19 years ago
Marc,

Originally posted by Marc Peabody:
Shouldn't the form name in validation.xml be inquiryForm?

If the ActionForm is ValidatorActionForm, the form-name in validation.xml should be the Action path being submitted by the Jsp, rather than the form-bean instance name. It turns out to be a clean way of doing things when the Actions are subclasses of DispatchAction.

Thanks and regards,
Kinjal Sonpal
[ November 02, 2004: Message edited by: Kinjal Sonpal ]
19 years ago
Dear all,

I've been trying to get Dates validation for my Struts project without any success. I'm using struts 1.2.4 with Validator 1.1.3 on tomcat 5.0.27.

In my application, I'm having a hier of MappingDispatchAction for Action, where individual action mappings in struts-config map to individual method in the Action class. The form is a child of ValidatorActionForm with a VO bean for holding business data and a string for holding the value for the date field. The VO bean contains a java.sql.Date field. In the getter and setter of the textual field, I get and set the data from VO bean, so as to have virtually a String-only ActionForm.

I'm pasting relevant codes below
struts-config.xml:

validation.xml:

editDetail.jsp:


Now, everytime I submit the page and if the field is empty it throws me an exception related to beanUtils.populate(). According to my understanding this type of exception should only come when struts copying data into the ActionForm is problamatic. However, it seems to me that the validator is somehow bypassed.

If I remove the copying (to and from the VO bean into the textual date field) code from my ActionForm, it validates things properly.

I'm not sure what is going wrong here and hence I'm seeking the advise here. I've gone throgh all major mailing lists and forums for struts for any hints on this, but could find little. I'm sorry for such a long post, but I wanted include maximum data into the post.

Thanks and regards,
Kinjal Sonpal
[ November 02, 2004: Message edited by: Kinjal Sonpal ]
19 years ago
To me, release of Struts 1.2.x means
1) MappingDispatchAction
2) validWhen Validation. (A big relief)

HTH,
Kinjal Sonpal
19 years ago
Marc,

Thanks for the tip. I was also thinking on similar lines, but I thought just in case anyone has some other way of doing things.

I'm planning to use a simple JavaScript that will make a POST request to the server. Are there any other (Non-JavaScript) ways?

Thanks and regards,
Kinjal Sonpal
19 years ago
Dear All,

I'm using Struts Tokens to protect the system from duplicate submits. Some of the URLs are being generated using <html: link> tags. These generated URLs are having org.apache.struts.TOKEN kind of field.

Is there a way to cleanup these URLs? I need to remove atleast the org.apache.. part of the token. It looks very weird to the end users.

Please share your views on this.

Thanks and regards,
Kinjal Sonpal
19 years ago
Sreenath,

Thanks for your comments. I'm now seriously considering this option and I'm in the process of developing a POC. I'll post back my experience with it.

Thanks and regards,
Kinjal Sonpal
19 years ago
Dear All,

I'm having a little dilemma about adopting multiple struts modules based approach.

My situation is we are developing a system, which has 5 major logical modules each with atleast 3-4 jsps with medium to high complexity. We are a team of 2 developers, including me.

My question is how practically feasible this approach would be from the perspective of developer's hassles, development time and effect on schedules, and chages required in existing system considering 3 of these modules are almost completed.

Please share your views on this front.

Thanks and regards,
Kinjal Sonpal
19 years ago
Howdy Ranchers,

At last, I appeared for the test and managed to clear the test with a decent score. I really want to thank all at JavaRanch.

I think the test was comparatively easier than I'd expected, though my marks may not reflect that. I performed really bad in AWT (50). Rest was okay.

I would like to share my experience with all those who are preparing for the test.

I referred to Roberts, Heller, et.al. for the preparation. I think the book is fairly good, having overall very good coverage of the subject.

I also referred to the online last minute guide prepared by Dylan Walsh. I think that was cool and pretty handy.

I could take only few mock tests, since I had only 2 days to prepare for the test. The Marcus Green mock tests really rocks. Guys, if you want to get a feel of the real test, probably this is the one (AFAIK). The average score of the 3 tests was 82 in my case. I also took all the mock tests from the Book CD. The average was around 80.

I referred to many of the other mock tests for which the links could be found through the JavaRanch certification FAQs. And do not forget to take The hardest questions before you go to the tests. Yesterday, I took that test and scored 16 correct out of 19. I also wanted to take up Dan's tests, but could never manage to do so because I was always in want of time.

On the day, I referred to all my test analysis and related notes and I think that helped me a lot.

Well, I again thank all at JavaRanch.

Thanks and regards,
Kinjal Sonpal
19 years ago
Done !! I'll be posting my experience very soon.

Thanks and regards,
Kinjal Sonpal
Thanks a lot for the suggestion. I'm taking it up today.

I'm keeping my fingers crossed and hoping for the best.

Thanks and regards,
Kinjal Sonpal
Dear all,

Since last one week, I've been taking lots of mock tests. I've scored above 85% in Marcus Green's mock tests. I scored around 75% in Jxam mock exams(2 of them). Same is the case with mock tests from the Simon Roberts' book.

Do you think the scores are good enough? I some how am not feeling fully confident about it.

What next/else should I be looking at?

Please suggest. I'm nearing the expiry of my voucher(July 31 ).

Thanks and regards,
Kinjal Sonpal