Author Login
Post Reply
user Digest 26 May 2008 04:54:16 -0000 Issue 8048
Topics (messages 186774 through 186777):
Dojo and TabbedPanel in Internet Explorer 7
186774 by: Jay Bose
Re: Request/session timeout when exporting very large files
186775 by: Simon Sew
How to enlarge the datetimepicker
186776 by: Cheng Wei Lee
Pagination problem with struts2,Please Please help me.
186777 by: Varun Deep
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_186774.ezm (zipped)I'm using Struts-2.0.11.1 in Dev-Mode. The Dojo Head is also in Debug Mode.
I have a tabbedPanel with one dynamic tab (for the purposes of this question). In
FireFox-2.0.X, the tab loads properly. In Internet Explorer-7.0, the tab does not load
properly. I've included the Dojo Debug statements for both browsers. Any ideas?
Just a side note: the page loads properly if I hold Ctrl and "force" a refresh of the
same page.
Dojo Debug Statements for FF2 - expected debug output
==============================================================================
DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be removed in version:
0.5
DEBUG: DEPRECATED: dojo.animation.AnimationEvent is slated for removal in 0.5; use
dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.animation.Animation is slated for removal in 0.5; use dojo.lfx.*
instead. 0.5
DEBUG: DEPRECATED: dojo.animation.AnimationSequence is slated for removal in 0.5; use
dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.* instead.
0.5
DEBUG: DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5
DEBUG: [message] Listening to msg_update to refresh
DEBUG: DEPRECATED: selectedTab deprecated, use selectedChild instead, will be removed in
0.5
DEBUG: dojo.widget.Parse: error:TypeError: page has no properties
DEBUG: widget ID collision on ID: subjectPanel
==============================================================================
Dojo Debug Statements for IE7 - unexpected debug output
==============================================================================
DEBUG: failed loading /appraiser/struts/dojo/src/widget/Manager.js with error:
[TypeError: '__clobberAttrs__' is null or not an object]
DEBUG: failed loading /appraiser/struts/dojo/src/widget/PageContainer.js with error:
[TypeError: 'dojo.widget.manager' is null or not an object]
DEBUG: failed loading /appraiser/struts/dojo/src/widget/TabContainer.js with error:
[TypeError: 'dojo.widget.manager' is null or not an object]
DEBUG: failed loading /appraiser/struts/dojo/src/widget/ContentPane.js with error:
[TypeError: 'dojo.widget.manager' is null or not an object]
DEBUG: failed loading /appraiser/struts/dojo/src/widget/LinkPane.js with error:
[TypeError: 'dojo.widget.manager' is null or not an object]
DEBUG: failed loading /appraiser/struts/dojo/src/widget/PopupContainer.js with error:
[TypeError: 'dojo.widget.manager' is null or not an object]
DEBUG: failed loading /appraiser/struts/dojo/src/widget/Tooltip.js with error:
[TypeError: 'dojo.widget.manager' is null or not an object]
DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be removed in version:
0.5
DEBUG: DEPRECATED: dojo.animation.AnimationEvent is slated for removal in 0.5; use
dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.animation.Animation is slated for removal in 0.5; use dojo.lfx.*
instead. 0.5
DEBUG: DEPRECATED: dojo.animation.AnimationSequence is slated for removal in 0.5; use
dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.*
instead. 0.5
DEBUG: DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5
DEBUG: dojo.widget.Parse: error:[object Error]
DEBUG: dojo.widget.Parse: error:[object Error]
DEBUG: dojo.widget.Parse: error:[object Error]
==============================================================================

Attachment:
user_186775.ezm (zipped)
Hi..
Previously I thought it was session timeout, therefore I set a higher session timeout value.
I tried to generate the pdf file again, this time it still timeout but it haven't reach the threshold yet.
So, I can confirm it's request timeout.
I tried to use a dummy ajax which keeps refreshing one part of the page. It seems to be working. The page now will not have timeout problem.
Laurie Harper <laurie@(protected)
original message implied the former, since you were trying to correct it
with session.setMaxInactiveInterval(), but if it's a request timeout
that's not going to have any effect.
It sounds like the PDF generation is taking too long, causing the
browser to timeout the request because it gives up on getting a
response. In that case, the way to fix it is to return a 'generating
PDF...' response immediately and do the generation in the background.
See the execAndWait interceptor for one way to approach that:
http://struts.apache.org/2.0.11.1/index.html
L.
Simon Sew wrote:
> The request timeout occurs when it is still generating the pdf. When it finished, the file will be exported to the jsp.
>
>
> Laurie Harper wrote: Al Sutton wrote:
>> You may find that your app server, the clients browser, or any proxy
>> in-between may timeout irrespective of what you do in your webapp.
>
> If the timeout occurs during the PDF generation, before the response
> begins being streamed back, maybe. But as long as there is response data
> being transmitted, no timeout should occur at the connection level. A
> session timeout is an app-server function, anyhow; clients and proxies
> know nothing about the session.
>
> Simon, is the timeout occuring during the request for the PDF, while it
> is being generated and before the action begins transmitting it? Or is
> the PDF downloaded successfully with the next request failing because
> the session timed out during the download?
>
> L.
>
>> If the file takes so long to generate is there any reason why your not
>> pre-generating it, caching it and serving it as a static file?
>>
>> Al.
>>
>> ----- Original Message ----- From: "Simon Sew"
>> To:
>> Sent: Thursday, May 22, 2008 7:32 AM
>> Subject: Request/session timeout when exporting very large files
>>
>>
>>> Hi,
>>> I'm having this request/session timeout problem.
>>>
>>> My page have a link to generate and export pdf file. The problem is
>>> sometimes the generated file is very huge (100MB++) and it takes quite
>>> some time to export it (30 to 90 minutes). How do I prevent it from
>>> timeout when it is exporting at that time?
>>>
>>> I tried session.setMaxInactiveInterval() but it's not working.
>>>
>>> Thx.
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186776.ezm (zipped)Hi,
The datetimepicker appears very small on my page, is there any way to make
it bigger? Is this configured via the CSS? If yes, which CSS?
Thanks!

Attachment:
user_186777.ezm (zipped)Request to All
I am using pagination with display tag in struts2. Following is the code
I included in my jsp file.
I also include all the jar file. And tld files. In the respective
folders
1.try
<%@(protected)" %>
The EmployeeList is coming from the Action file.
<s:set name="listofEmployee" value="EmployeeList" scope="request"/>
<display:table name=" listofEmployee " pagesize="4" class="simple"
id="row">
<display:column property="name" />
</display:table>
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
I also try to perform the following code:
------------------------------------------------
2. try
Web.xml
<jsp-config>
<taglib>
<taglib-uri>http://displaytag.sf.net</taglib-uri>
<taglib-location>displaytag.tld</taglib-location>
</taglib>
</jsp-config>
employee. Jsp
<%@(protected)" %>
<s:set name="listofEmployee" value="EmployeeList" scope="request"/>
<display:table name=" listofEmployee " pagesize="4" class="simple"
id="row">
<display:column property="name" />
</display:table>
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
------------------------------------------------------------------------
-------------------------------------
3. try
Web.xml
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/displaytag.tld</taglib-uri>
<taglib-location>displaytag.tld</taglib-location>
</taglib>
</jsp-config>
employee. Jsp
<%@(protected)" %>
<s:set name="listofEmployee" value="EmployeeList" scope="request"/>
<display:table name=" listofEmployee " pagesize="4" class="simple"
id="row">
<display:column property="name" />
</display:table>
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
------------------------------------------------------------------------
-------------------------------------
4. try
Web.xml
<jsp-config>
<taglib>
<taglib-uri>http://displaytag.sf.net</taglib-uri>
<taglib-location>displaytag.tld</taglib-location>
</taglib>
</jsp-config>
employee. Jsp
<%@(protected)" %>
<s:set name="listofEmployee" value="EmployeeList" scope="request"/>
<display:table name=" listofEmployee " pagesize="4" class="simple"
id="row">
<display:column property="name" />
</display:table>
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
------------------------------------------------------------------------
--------------------------------------------------------------
Problem.
But it shows nothing, not even any error message.
Please Please help me. And suggest me how I have to move
Thanks in advance
Varun