Advertisement

08.28.2008 at 01:52AM PDT, ID: 23684733
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Page is hanging after visiting page with some struts2/dojo

Asked by majkic in Jakarta Struts, Java Server Pages (JSP), JavaScript Frameworks

Tags: ,

I have page shown below. When I access this page through struts action (viewReport.action) page is shown for a second and then it disappears and keep hanging, like it tries to forward to some other page. When I pres "back" button, page is shown nice.

This happens pretty often and on different pages, but not always, which confuses me.

Using firebug, I found more errors like:

"Firebug needs to POST to the server to get this information for url:
http://localhost:8080/equipment/struts/dojo/src/widget/nls/en/DropdownDatePicker.js" which gives error 404.

Following lines are marked as error 404:
http://localhost:8080/equipment/struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js
http://localhost:8080/equipment/struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js
http://localhost:8080/equipment/struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js
http://localhost:8080/equipment/struts/dojo/src/widget/nls/en/TimePicker.js
http://localhost:8080/equipment/struts/dojo/src/widget/nls/en-us/TimePicker.js
http://localhost:8080/equipment/struts/dojo/src/widget/nls/en/DropdownTimePicker.js
http://localhost:8080/equipment/struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js

Now I really don't know what's going on and does these errors 404 have anything to do with this page hanging.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<s:head theme="ajax" debug="false"/>
<title>Izveataji</title>
<link href="<s:url value='/css/equipment.css'/>" rel="stylesheet" type="text/css" media="all"/>
</head>
<body>
<div class="menu">
	<jsp:include page="../mainHeader.jsp"></jsp:include>
</div>
<br />
<s:if test="${not empty message}">
	<font color="red" >${message}</font>
</s:if>
<table>
<tr>
<!-- Ovde idu uslovi za pretragu -->
	<td valign="top">	
		<s:form action="viewReport">
			<s:select list="allEquipmentModels" id="equipmentModel" listValue="name" listKey="id" label="Model" name="selectedEquipmentModel.id" emptyOption="true" />
			<s:select list="allLineTypes" id="lineType" listValue="name" listKey="id" label="Tip linije" name="selectedLineType.id" emptyOption="true" />
			<s:select list="allEquipmentTypes" id="equipmentType" listValue="name" listKey="id" label="Tip ureaja" name="selectedEquipmentType.id" emptyOption="true" />
			<s:select list="allSalesPoints" id="salesPoint" listValue="salesPointName" listKey="salesPointName" label="Prodajni centar" name="selectedSalesPoint.salesPointName" emptyOption="true" />
			<s:select list="allStatuses" id="status" listValue="name" listKey="id" label="Status" name="selectedStatus.id" emptyOption="true" emptyOption="true" />
			<s:datetimepicker id="startDate" label="Od datuma" name="startDate" displayFormat="dd.MM.yyyy" />
			<s:datetimepicker id="endDate" label="Do datuma" name="endDate" displayFormat="dd.MM.yyyy" />
			<s:checkbox id="history" name="history" label="Istorija" />	
			<s:submit name="Submit"/>
		</s:form>
	</td>
<td width="50">&nbsp;</td>
<!-- Ovde ide zbirna tabela sa rezultatima pretrage -->
<s:set name="groupResultList" value="groupResultList" scope="request" />
<td valign="top">
<strong>Zbirno</strong>
<display:table name="groupResultList" class="table" requestURI="" id="groupResultList" pagesize="10" requestURI="viewReport.action">
	<display:column title="RB" sortable="false" >
      <s:property value="${groupResultList_rowNum}"/>
    </display:column>
    <display:column title="Magacin"  sortable="true" >
	    <s:if test="${empty groupResultList.name}">
			<font color="red" >Rashod</font>
		</s:if>
		<s:else>
			${groupResultList.name}
		</s:else>
	</display:column>
	<display:column property="number" sortable="true" title="Broj"/>
</display:table>
 
</td>
</tr>
<tr>
<td valign="top" colspan="3">
<!-- Ovde ide tabela sa rezultatima pretrage -->
<s:set name="diaryResultList" value="diaryResultList" scope="request" />
<strong>Pojedina
no</strong>
<display:table name="diaryResultList" class="table" requestURI="" id="diaryResultList" pagesize="10" requestURI="viewReport.action">
	<display:column title="RB" sortable="false" >
      <s:property value="${diaryResultList_rowNum}"/>
    </display:column>
    <display:column property="id" sortable="true" titleKey="id" title="Id" sortName="id" />
    <display:column property="equipmentDevice.serialNumber" sortable="true" title="S/N"/>
	<display:column property="equipmentDevice.equipmentModel.name" sortable="true" title="Model"/>
	<display:column property="equipmentDevice.equipmentModel.lineType.name" sortable="true" title="linija"/>
	<display:column property="equipmentDevice.equipmentModel.equipmentType.name" sortable="true" title="vrsta"/>
    <display:column title="Magacin"  sortable="true" >
	    <s:if test="${empty diaryResultList.salesPoint}">
			<font color="red" >Rashod</font>
		</s:if>
		<s:else>
			${diaryResultList.salesPoint.salesPointName}
		</s:else>
	</display:column>
	<display:column title="Status">
    	<img src="img/${diaryResultList.status.name}.gif" />
	</display:column>
	<display:column property="diaryRecordDate" sortable="true" title="vreme"/>
	<display:column property="user.username" sortable="true" title="Korisnik"/>
	<display:column title="Aktivno">
    	<img src="img/${diaryResultList.active}x.gif" />
	</display:column>
</display:table>
</td>
</tr>
</table>
</body>
</html>
[+][-]08.28.2008 at 06:37PM PDT, ID: 22341491

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.29.2008 at 12:38AM PDT, ID: 22343173

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Jakarta Struts, Java Server Pages (JSP), JavaScript Frameworks
Tags: Java, Firefox 3.0.1
Sign Up Now!
Solution Provided By: majkic
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628