pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/apache/axis-axis2-java-core/commit/e8d15d28f2ea9bd2d8b6a8aca1474f3e886cca70

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-52276e82f63bb403.css" /> Fix invalid JSP syntax. · apache/axis-axis2-java-core@e8d15d2 · GitHub
Skip to content

Commit e8d15d2

Browse files
committed
Fix invalid JSP syntax.
1 parent ce7127e commit e8d15d2

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

modules/webapp/src/main/java/org/apache/axis2/webapp/AdminActions.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ final class AdminActions {
7171
private static final String DEACTIVATE_SERVICE = "deactivateService";
7272
private static final String ACTIVATE_SERVICE = "activateService";
7373
private static final String EDIT_SERVICE_PARAMETERS = "editServiceParameters";
74+
private static final String VIEW_OPERATION_SPECIFIC_CHAINS = "viewOperationSpecificChains";
7475

7576
/**
7677
* Field LIST_MULTIPLE_SERVICE_JSP_NAME
@@ -447,13 +448,15 @@ public View viewServiceContext(HttpServletRequest req) throws AxisFault {
447448
public View selectServiceParaEdit(HttpServletRequest req) {
448449
populateSessionInformation(req);
449450
req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "SERVICE_PARAMETER");
451+
req.setAttribute("action", EDIT_SERVICE_PARAMETERS);
450452
return new View(SELECT_SERVICE_JSP_NAME);
451453
}
452454

453455
@Action(name="listOperation")
454456
public View listOperation(HttpServletRequest req) {
455457
populateSessionInformation(req);
456458
req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "MODULE");
459+
req.setAttribute("action", ENGAGE_TO_OPERATION);
457460
return new View(SELECT_SERVICE_JSP_NAME);
458461
}
459462

@@ -501,7 +504,7 @@ public View viewGlobalChains(HttpServletRequest req) {
501504
return new View("viewGlobalChains.jsp");
502505
}
503506

504-
@Action(name="viewOperationSpecificChains")
507+
@Action(name=VIEW_OPERATION_SPECIFIC_CHAINS)
505508
public View viewOperationSpecificChains(HttpServletRequest req) throws AxisFault {
506509
String service = req.getParameter("axisService");
507510

@@ -624,7 +627,7 @@ public Redirect deleteService(HttpServletRequest req) throws AxisFault {
624627
public View selectService(HttpServletRequest req) {
625628
populateSessionInformation(req);
626629
req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "VIEW");
627-
630+
req.setAttribute("action", VIEW_OPERATION_SPECIFIC_CHAINS);
628631
return new View(SELECT_SERVICE_JSP_NAME);
629632
}
630633
}

modules/webapp/src/main/webapp/WEB-INF/views/admin/SelectService.jsp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,27 @@
2727
<jsp:include page="/WEB-INF/include/adminheader.jsp"/>
2828

2929
<%
30-
String action ="";
3130
String buttonName="" ;
3231
String status = (String)request.getSession().getAttribute(Constants.SELECT_SERVICE_TYPE);
3332
String heading = "";
3433
String disc = "";
3534
if(status != null && status.equals("MODULE")) {
36-
action = "engageToOperation";
3735
buttonName = " View Operations";
3836
heading = "Select a service to view operation specific chains";
3937
disc = "Select an Axis service from the combo and click on the 'View Operations' button to view operation specific Chains.";
4038
} else if(status != null && status.equals("VIEW")){
4139
buttonName = " View ";
42-
action = "viewOperationSpecificChains";
4340
heading = "Select a service to view service handlers";
4441
disc = "Select an Axis service from the combo and click on the 'View' button to view service handlers.";
4542
} else if (status != null && status.equals("SERVICE_PARAMETER")){
4643
buttonName = " Edit Parameters ";
47-
action = "editServiceParameters"; // Constants.EDIR_SERVICE_PARA;
4844
heading = "Select a Service to Edit Parameters";
4945
disc = "Select an Axis service from the combo and click on the 'Edit Parameters' button to edit parameters.";
5046
}
5147
%>
5248
<h1><%=heading%></h1>
5349
<p><%=disc%></p>
54-
<form method="get" name="selectServiceForm" action="<c:url value="<%="axis2-admin/"+action%>"/>">
50+
<form method="get" name="selectServiceForm" action="<c:url value="axis2-admin/${requestScope.action}"/>">
5551
<table summary="main content table" border="0" style="width: 50%" cellspacing="1" cellpadding="1">
5652
<tr>
5753
<td style="width: 35%">Select a Service :</td><td style="width:65%">

systests/webapp-tests/src/test/java/org/apache/axis2/webapp/AxisAdminServletITCase.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ public void loginInvalidatesExistingSession() {
5757
tester.submit();
5858
assertThat(tester.getSessionId()).isNotEqualTo(sessionId);
5959
}
60+
61+
@Test
62+
public void testEditServiceParameters() {
63+
tester.clickLinkWithText("Edit Parameters");
64+
tester.selectOption("axisService", "Version");
65+
tester.clickButtonWithText(" Edit Parameters ");
66+
tester.assertTextFieldEquals("Version_ServiceClass", "sample.axisversion.Version");
67+
}
6068
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy