Ansar Shah

Greenhorn
+ Follow
since May 02, 2007
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Ansar Shah

Hello

I am migrating my application from Weblogic 8.1 to Weblogic 9.2 server. The application uses display tag library for tabular data display. Every thing in the application is working fine but dispaly tag table is showing empty result.
I read somewhere that we must use "uid" attribute instead of the "id" attribute. But it also doesnt work. I am using the EL Expression version of display tag. The EL Expressions are working as i have tried a simple <c ut> using EL, which worked.

Can anyone help me in this regard?

Thanks
9 years ago
Thanks Ulf Dittmer for your help. Yes you are right and the problem resolved.
Thanks again.
9 years ago
Hello All

I am facing problems in Applet-Servlet communication. I open a HttpURLConnection --> get outputstream --> write object on it.

Then i want to read the response from servlet on same connection after getting the input stream. BUT i face an exception doing this. Can someone help me out. Here is the code snippet along with the stacktrace.



Exception Stack trace:

java.io.IOException: Server returned HTTP response code: 405 for URL: http://localhost:8080/context/updateprofile.do
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
.
.
.

Thanks

[ UD: fixed formatting ]
[ March 13, 2008: Message edited by: Ulf Dittmer ]
9 years ago
Yes I did, no problem with this tag library as the html content is getting to the page at least.
Even when I copy the html code displayed on the page, and then paste it direct on the jsp page, then it works perfectly fine. But some how when it comes through server side, then it displays it as a text.
Thanks for the response.
Infact I want even the columns and rows to be dynamic. Why the contents from the model object dont get compiled to a html page? Is there a way out?

Thanks.
Well ! its even working in the ranch page then why dont on my page. . I meant to say .
I have just seen that the compiled jsp page source is showing
" < " in place of " < " in my dynamically generated html.

I dont know why this is happening.. Please help..
Hello

I am building a dynamic page, that gets its html contents from the model object passed to jsp using ModelAndView type. The html content is passed to jsp but the html code gets displayed as it is on the page. Like if i pass "<table><tr><td>Hello!</td></tr></table", this string would display on the page but no actual table. I am using following code in the jsp page.

<c:forEach items="${model.criCellList}" var="cell"><c ut value="${cell.cellContents}" />
</c:forEach>

Can any one help?
Hello

I have a problem in session management. I want to automatically logout the user when session expires. Used HttpSessionBindingListener for this purpose and set the session expiry value in the web.xml of my application.

Now the problem is that the session expiry behaviour is not consistent at all. I have set the time out of 3 minutes. But it didnt expired even waiting for more than 15 mins. BUT sometimes it suddenly works and session expires.
Please help me in this strange behaviour.

Thanks
10 years ago
Hello everyone,

Can any body elaborate, how to get maximum number of weeks in a month given Calendar instance? For example in December 2007, if the first day of week is set to Calendar.SATURDAY, then total weeks should be 6. And it should be 5 in case the first day of week is set to Calendar.MONDAY.

The getMaximum(Calendar.WEEK_OF_MONTH) always returns 6;
and getMinimum(Calendar.WEEK_OF_MONTH) always returns 0.

Please help.
10 years ago
Hello everyone,

Can any body elaborate, how to get maximum number of weeks in a month given Calendar instance? For example in December 2007, if the first day of week is set to Calendar.SATURDAY, then total weeks should be 6. And it should be 5 in case the first day of week is set to Calendar.MONDAY.

The getMaximum(Calendar.WEEK_OF_MONTH) always returns 6;
and getMinimum(Calendar.WEEK_OF_MONTH) always returns 0.

Please help.
10 years ago
Hello

my question is when at excatly what time compiler checks and adds this default constructor. And while adding does it check the super class at the same time for a default or a parameterized constructor.



Compiler adds the default constructor if and only if you dont have a parameterized constructor (which implies that in the above example, compiler creates default constructor for Dog and would not create for its super class Animal).

Now since a default constructor has always an implicit call to the default constructor of super class (super() as its first statement, but as we already concluded, super class (Animal) has no default constructor in our case. So resulting in a compiler error.

Hope it helps.

Ansar Shah
Thanks Vinayagar! I got it
Here is the code:


I tried to override equals method for Dog and Cat, but in vain. Here is the equals method's Dog version:



There is no exception when first two objects are added to the set. Its only when I try to add a third object.

Thanks