Bhumika Thakkar

Ranch Hand
+ Follow
since Apr 18, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bhumika Thakkar

Thanks for the response.
i don't want to make another trip to the server...
Hello Everyone,

I have a html page that displays a table. I'd like to dispay the table to the client and pop up a dialog box to save that same html, both in one request. Is that possible?

Thanks in advance,

Bhumika.
Hello Everyone,

i have a validation to check if zip belongs to a state.

in FieldsCheck.java
-------------------

public static boolean validateZipCodeInState(Object bean,
ValidatorAction va,
Field field,
ActionErrors errors,
HttpServletRequest request) {

String zip = ValidatorUtils.getValueAsString(bean, field.getProperty());
String sProperty2 = field.getVarValue("secondProperty");
String state = ValidatorUtils.getValueAsString(bean, sProperty2);


if (!GenericValidator.isBlankOrNull(zip) && !VALIDATOR.checkZipCodeValidInState(zip, state)) {
// option 1 tried
addError(errors, request, "ActionErrors.GLOBAL_ERROR", Resources.getActionMessage(request, va, field));

//option 2 tried
addError(errors, request, "ActionErrors.GLOBAL_ERROR", new ActionMessage("Error in zip state"));

// option 3 tried
addError(errors, request, field.getKey(),Resources.getActionMessage(request, va, field));

return false;
}


return true;
}


protected static final ActionErrors addError(ActionErrors errors, HttpServletRequest request, String key, ActionMessage actionMessage) {
if (errors == null) {
errors = new ActionErrors();
//option 1 tried
request.setAttribute(ActionErrors.GLOBAL_ERROR, errors);
// option 2 tried
request.setAttribute(Globals.ERROR_KEY, errors);
}

errors.add(key, actionMessage);
request.setAttribute(ActionErrors.GLOBAL_ERROR, errors);
return errors;
}


in the log messages, it returns false for incorrent zip but still not printing my message on the html form... i've tried a couple of things but in vain.

Please help.

Thanks!
[ November 16, 2005: Message edited by: Bhumika Thakkar ]
19 years ago
HI Guys,

Our project has multiple forms that map to one action. We use struts validation (dynaActionForm). The issue is if validation fails then it should go back to the page it came from. There are 100's of such forms and we don't want multiple mappings. We don't have any hidden parameter to tell which form the request came from.

Thanks for the help!

Bhumika
[ November 10, 2005: Message edited by: Bhumika Thakkar ]
19 years ago
If I restart tomcat, then the jndi context still exists, but if i reboot the system then the context is gone.. where is jndi reference stored?
I took scwcd about 6 months ago... now i'm planning on taking the scbcd just to make my way through architech cert easy.

I'm not a big fan of ejb's and would rather prefer working on hibernate, jsf, struts... i have both the books and hopefully will get thru this soon.

Bhumika
[ November 04, 2005: Message edited by: Bhumika Thakkar ]
Hi all,

I am using apache's htaccess to authenticate my clients. In my servlet how will I get who logged in? I need to know the user group/role.

Bhumika.
19 years ago
Hi all,

I am using apache's htaccess to authenticate my clients. In my servlet how will I get who logged in? I need to know the user group/role.

Bhumika.
Got it!!!

set 2 environment variables:

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=8000

start tomcat by
---------------
catalina jpda start

Eclipse
--------
set breakpoints
debug as --> remote java application --> New


http://jakarta.apache.org/tomcat/faq/development.html
[ July 06, 2005: Message edited by: Bhumika Thakkar ]
I'm using Eclipse and I start/stop Tomcat manually. How do I configure a server in Eclipse? I think its possible in Websphere but not in Eclipse.
Hello,

Is there any way to debug a J2EE app in eclipse. If so please tell me how.

Thanks,

Bhumika.
Hi,

I've seen many people taking the IBM cert with all the sun certificates. How are they linked together? What job profiles would go for IBM certs?

I've taken SCJP, SCWCD, preparing for SCBCD. What other certifications would add value to my profile?

Thanks,

Bhumika.
I got 70 on the hfs mock so was expecting 90. Anyways,atleast I'm getting better job offers and surprisingly being offered way better compensation after the cert.

Preparing for EJB cert now.

I am a GIRL. who called me he???
[ June 25, 2005: Message edited by: Bhumika Thakkar ]
19 years ago