Atul Samnerkar

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

Recent posts by Atul Samnerkar

Hello,

I am retriving some data based on URL. This URL internally acts as webservice client to fetch data from other location and returns back the data.
There are chances that the webservice will be down which will directly impact in fetching the data.
What percaution should be taken to avoid such scenario? Is there any way we can add some time constraint or make the call asynchronous?



Your help is highly appreciated.
Thanks in advance.

Regards,
Atul Samnerkar
Hello,

We are facing problem when we have '&' in our query string. For example http://somehost/somepage.jsp?key1=value1&key2=A&B.

Here key2 value is A&B but because & is a separator for query string, we only get A as value.

We cannot really use POST here because this is a hyperlink and not a form submit.

How can I fix this so that I can correctly get values in the target page of hyperlink on server side (somepage.jsp).

-Regards
Atul
14 years ago
Hello,

I want to show the checkbox list (say 30 languages) in 10 rows X 3 columns format.

Currently i am using h:selectManyCheckbox. One of the attribute for this tag "layout" has only two options pageDirection / lineDirection.
With those options the checkboxes can be arranged in 'n' rows X '1' column or '1' row X 'n' column format.

Is there any other way to satisfy this requirement? Your help is much appreciated.

Regards,
Atul Samnerkar
15 years ago
JSF
I am also looking for same thing. Does anyone have any suggestions?

Regards,
Atul Samnerkar
15 years ago
JSF
Please provide the code snippet.

Regards,
Atul
15 years ago
JSF
One more thing, EL is frequently visible on the exam codes. So be prepared for that one too.

Cheers,
Atul Samnerkar
[ October 07, 2008: Message edited by: Atul Samnerkar ]

you can use the '/' notation in servletrequest



this is exactly opposite. When you get the RD object from context then you have to use the context path. (which starts with '/')

how ever when you get the RD object from the request, then you can use the relative path. Here it is container's responsibility to convert this relative path to real path.

Cheers,
Atul Samnerkar
Congrats !!

I am going to appear for the exam on Friday. Can you please share how to prepare in last week ?

Thanks,
Atul Samnerkar
16 years ago
1. Filters follow stack processing.
2. The control always comes back to the filter thru which it has passes in the reverse sequence.
3. And being you have wrapped the container's response object, you are not writing directly to the response object but your own custom made response object.
4. So once you come back from the servlet in the filter, then you can take action on what needs to go to response.

So the notification from the servlet to filter always happens whether it is wrapped response or not. It is just a matter that you have wrapped the response hence container didn�t have any chance to write to the actual response object.

I hope, this clarifies your doubt.

Thanks,
Atul Samnerkar
Hi Brijesh,

The correct answer is 4.

This question is more on the JSP comments vs HTML comments.

As you said, the output is blank. However, if you see the source code of the page, then you will realize that its not blank. The expression is executed and date is displayed. Because of the HTML comments it is not visible in the browser. So user can see the comment (via source code ) hence answer 4 is correct.


If the code would have been in JSP comments then answer 2 would have been correct. <%-- JSP comment text --%>


Cheers,
Atul Samnerkar
i have added li tag before and after the outputtext and its working fine. However, it is not displayed on this forum for some reason. I tried to edit the code twice and no Luck...

Thanks,
Atul Samnerkar
16 years ago
JSF
Thanks Himanshu.

I tried below way and it helped me.



Thanks & Regards,
Atul Samnerkar
[ October 01, 2008: Message edited by: Atul Samnerkar ]
16 years ago
JSF