Girish Vasmatkar

Ranch Hand
+ Follow
since Apr 24, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Girish Vasmatkar

Hi


I am developing a RESTful client for a RESTful webservice and the data exchange format specified by the service is JSON. I am using Jersey 1.2 API for interacting with the service. This might seem a dumb question but I have a doubt and need your suggestions on this -

There are four different types of JSON notations namely MAPPED (default for Jersey), NATURAL, JETTISON_MAPPED and BADGERFISH. I am unsure on which type of notation the web service is going to send the response in because I have not yet received detailed specifications on the service.

My question is, if use the default notation, i.e. MAPPED one and the service returns the response in, say, JETTISON_MAPPED, is it going to create problems ? Similarly, if I send JSON request in MAPPED notation form while the service used JETTISON_MAPPED, will it cause processing errors at the service end ?

Please clarify.
6 years ago
Hello

I am trying to connect to a remote queue manager from a windows machine. The problem is that it is using the system id to authenticate the user and my log in id (domain id ) does not have the access to the MQ.

Our client has provided a test user id that has the access, but how can I use that user id to connect to MQ.

I think I can use MCAUSER attribute to specify the desired user id but I am not sure how to configure the same from the admin console of web sphere application server 7.0.

8 years ago
I am not able to generate stubs using the wsimport tool provided with websphere profile.



While, if I use the wsimport.exe provided with the JDK from websphere, the stubs are generated properly.

The URL is a secured one, that is it is over HTTPS. Can someone help me out. ?

Thanks in advance
8 years ago
Is this job for U.S. citizens only ?
8 years ago
Since, I am working with JSF, I do not have this option. Moreover, every single request is intercepted by siteminder, and after the authentication, the same request is fired by siteminder and hence I see XML being printed on the browser (if it was an AJAX request initiated by a4j component).
8 years ago
Howdy All,

Has any one used hudson for automatic deployment of EARs/WARs on websphere application server 7.0 ? We have an existing hudson configuration which creates build artifacts (WARs/EARs), but automatic deployment to the webspeher is not possible.

I looked into the websphere deployment plugin, but it supports only WAS 6.1. Can it be used for WAS 7.1 as well ? Or any ANT script is needed to the purpose.

Thank you.
8 years ago
Anybody's got any input on this ? I am wondering I am unable to find anything on this on Google, for it should be a pretty common problem (Even if siteminder is not used and custom login implementation is done and user is redirected to the original page using this -)



If a custom implementation is done, I may strip off the query string part and store the request URI, but with siteminder, I don't find anything after Google search.
9 years ago
Hi All,

I have an application which is based on JSF framework. The application uses siteminder for security implementation.
Siteminder intercepts the request and if session times out, stores the request, and redirects to login page. After successful authentication, user is redirected to the page where session timed out.

This is working fine except for AJAX requests. If, an AJAX request was fired by JSF, and siteminder intercepted the request and session has already timed out, siteminder stores this request and hence after successful login, throws the user to the AJAX URL and hence the response which is an XML response, is shown on the browser.

So, basically, an XML is shown on the browser which actually is an AJAX response.

Is there any way I can handle this through JSF or some changes in siteminder configuration are needed. I do not have access to the siteminder.

I was searching on Google and found a URL describing the same issue. But the guy did not get any response. I am facing the exact issue.

http://community.jboss.org/thread/164287
9 years ago
Thank you for the reply.

I did try using quotes as well, but does not work. And believe me, I am going to have hell lot of trouble if I make my pages work with the DTD. So, I am considering this option only when I see no other way out.

My problem is that I have JSF buttons, and the buttons have style class applied to them, which contain background image. Now, if the button is disabled, I also need to change the image (so as to get the feeling of disabled button).

The enabling and disabling is done by the JSF itself, so I was thinking of writing the CSS with attribute selector so that I can utilize the disabled attribute and apply the appropriate background image.




It gets converted to raw HTML (Assuming the disabled attribute's value evaluates to true) -

Hi All,

I have a JSP with doc type defined as -



Initially I tried heavy stuff and then I came down to use something very basic but still it is not working.




The problem is that my submit buttons' background is not coming out in red. We have this huge application and it has been using the doc type defined as above.

I came to know that I also need to define the DTD as well, but if I do so, the pages simply seem to be messed up and hence I can not use the DTD declaration.

Is there any way I can make this work without specifying the DTD ?







I am going through hell lot of trouble identifying the issue but haven't reached any conclusion.
The thing is - We have one application which authenticates the user and then after authentication, redirects the user to a different application.
The home page of the second application is a JSP containing JSF tags and is displayed properly, means JSP is properly rendered as HTML to the browser.

Then, if the page is in stale state for, say, 30 minutes, the user is thrown to the main application, for re-authentication. The problem, now, is that once user gets past the authentication, the home page of the second application is rendered as XML and not HTML.

The JSP does contain proper page directive as shown below in the code -


The above code is rendered properly when the user first visits the application, but, after the session timeout happens, and after again logging in, the above JSP is shown as an XML as shown below -



However, if, I refresh the page using right click - > Refresh, the page is displayed again normally, i.e as HTML.

Can someone point me in the right direction towards solving the problem ?

Thank you


9 years ago
JSP
Hi,

Is there any way I can disable an element in an h:dataTable residing in the first row ?

I have multiple rows of the datatable and each row contains a Delete button to delete that row. But I want to have that Delete button on the first row disabled all the time.

I can do this on body on load; using the generated id (raw html using view source) of the first Delete button, but the problem is the h:dataTable is set as one of the reRender properties of another element and when the data table is re-rendered, the first Delete button is enabled again.

The disabled property of the delete button, right now, simple checks for the no of rows, as shown in the code below -









9 years ago
JSF
Not sure if it is the right forum because it involves different pieces of technology, but still here I go...

I have a button (Print ) on my web page, which if clicked, calls a servlet, which in turn does some server stuff and generated a byte array representing PDF data. The byte array is properly generated and no problem what so ever and I am able to send the data back to the browser.

I want to somehow open that data in adobe along with a print dialog (for that byte array), which MUST appear on client side and not on the server.

I tried java print API and as expected it opens up the print dialog on the server and not on the browser. I also tried some client side specific stuff, details are as follows -



First, I tried using a static pdf which is there on the file system, and teh problem with this is that with some adobe versions or IE version the "printWithDialog" does not seem to work. I get a java script error saying that the function is not available.I am not sure whether there is really an issue with adobe version or IE version, but I have experienced it.
So, on click of the button, I am not calling servlet directly, rather calling this HTML, so that pdf opens up with a print dialog.

In the real scenario, I would put my servlet's path in the data attribute of object tag. My questions are -

1. Am I right when I say that printWithDialog function is not reliable ?
2. Is there a way to somehow send some response headers or something so that browser reads it and open up a print dialog (that way printWithDialog won't be used).
3. is it possible to use print API and still be able to invoke the print dialog on client side (insane question, I know).
4. java Web Start - does it come into picture, in this case ?

9 years ago

Stephan van Hulst wrote:

Girish Vasmatkar wrote:

Matthew Brown wrote:It's to do with the direction of rotation. Both directions are valid, although most people see it as rotating clockwise, I think. There's more information here.



Finding it pretty hard to perceive the direction of rotation as anti-clockwise. The wiki link says, if you perceive the touching leg (to the ground) as the right foot (which I am unable to perceive), the rotation will appear to anti-clockwise.

Heck, I only see it in clockwise direction.





Thanks Stephen, huge relief. Phew
9 years ago