I am creating an application in which there will be multiple windows within the browser- many forms will be opened for submission in a single window and each form's target window will be one of the many windows available...
I want to be able to access the response of each form submission, i.e. I want to access content in each window from code in the desktop java application.
Please clarify the following for me-
(1) Is the above scenario achievable in a desktop java application? (2) Which java browser componen开发者_运维问答t should I use, that enables me to access content of a window in the embedded browser?
You can try to use SWT Browser component and then add a listener to intercept links. You can find an example here. This of course will only work if your forms data would be passed using GET params appended to the url.
精彩评论