Nabeel Shaheen

Greenhorn
+ Follow
since Apr 22, 2010
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 Nabeel Shaheen

Hi All,

This is my first post, and your kindness is requested
[Edit:Ok its first in OO, Patterns section ]

I have a java application that runs in an eternal while loop. I want to pass messages to my application to e.g. gracefully shutdown, move to init state, current number of processed counts. Essentially I am looking for a pattern wherein there is a control thread that passes messages to business/Main thread and the Main thread asynchronously handles the message and updates the control thread. The control thread can have aribtrary IO mechanism.

There were two candidates that matched closed to my requirements
1. Observer Pattern
2. Task Pattern

From my understanding, observer pattern has (simplex) unidirectional information flow(although at oodesign, they advocate notify() can be implemented in push/pull mechanism with which i disagree), and I am more interested in a halfduplex/fullduplex.

Task Pattern looks promising candidate and can be used to monitor long running tasks (with appropriate interfaces) but I was not able to find detailed literature on the web for it.

I am here to seek some suggestions regarding the best pattern for implementing my problem.

Regards,
Nabeel


Ok, so I got another response from Oracle:

"We apologize for the confusion caused.
To earn your Oracle Certified Professional, Java SE 6 Programmer you have to pass the Exam Java Standard Edition 6 Programmer Certified Professional Exam (1Z0-851)
The Hands-on course requirement is not applicable for this certification track. Visit our website for more information."

So it seems taking OCPJP in October and later should be fine without the need for the training.



Thanks Petr for clarification.
Thanks a tons bill specially for introducing me to firebug, that did the trick

Thanks again.
I think i need to make my question clear here further.

Actually I am trying to post the form i mentioned above using java not browser, but i think there is some server validation due to which my form submission is not producing desired result. (yes you are smelling right)

on investigation i noticed that particular javascript is manipulating one of form fields(iws) as shown above so i think there is some relation with this form field and server validation and hence want to know if i can pass this javascript object from httpclient api to server.

any advice is more than welcome.

cheers
Dear Friends,

I want to submit this form using Java but I believe there is a client side javascript variable that is being to send

to server for validation that a certain action happened within browser

The API I am using is org.apache.commons.httpclient.*

Following is the form I am trying to post to.



and following is the client side validation using javascript to confirm that the form is manipulated in browser.



As it is apparent from the javascript that iws.className is changed to 'buttonChanged' upon certain event and I am
assuming that this is validated on the server side before the form is processed.

My question is how can I pass this information to the server using org.apache.commons.httpclient.*?

Your kind comments are extremely welcome.

Regards,
NS