Re: Struts2 - Open page in same tab

2017-08-10 Thread Dave Newton
On Thu, Aug 10, 2017 at 5:14 PM, Deborah White  wrote:
> I removed target attribute but when I click Next, it opens a new tab.

It's tough to understand what's going on. You have a few JS functions
that open new windows, but it's not clear to me when or why they'd be
called.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts2 - Open page in same tab

2017-08-10 Thread Deborah White
I removed target attribute but when I click Next, it opens a new tab.

-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com]
Sent: Thursday, August 10, 2017 1:35 PM
To: Struts Users Mailing List 
Subject: Re: Struts2 - Open page in same tab

Same window is the default.

On Thu, Aug 10, 2017 at 4:18 PM Deborah White 
wrote:

> If I want it to open in the same tab?
>
> -Original Message-
> From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
> Sent: Thursday, August 10, 2017 1:16 PM
> To: Struts Users Mailing List 
> Subject: Re: Struts2 - Open page in same tab
>
> 2017-08-10 22:10 GMT+02:00 Deborah White :
> >  ENCTYPE="multipart/form-data" action="" target="_self">
>
> I would remove the "target" attribute
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
> CONFIDENTIALITY NOTICE: This communication with its contents may
> contain confidential and/or legally privileged information. It is
> solely for the use of the intended recipient(s). Unauthorized
> interception, review, use or disclosure is prohibited and may violate
> applicable laws including the Electronic Communications Privacy Act.
> If you are not the intended recipient, please contact the sender and
> destroy all copies of the communication.
>
--
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 

CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.


Re: Struts2 - Open page in same tab

2017-08-10 Thread Dave Newton
Same window is the default.

On Thu, Aug 10, 2017 at 4:18 PM Deborah White 
wrote:

> If I want it to open in the same tab?
>
> -Original Message-
> From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
> Sent: Thursday, August 10, 2017 1:16 PM
> To: Struts Users Mailing List 
> Subject: Re: Struts2 - Open page in same tab
>
> 2017-08-10 22:10 GMT+02:00 Deborah White :
> >  ENCTYPE="multipart/form-data" action="" target="_self">
>
> I would remove the "target" attribute
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
> CONFIDENTIALITY NOTICE: This communication with its contents may contain
> confidential and/or legally privileged information. It is solely for the
> use of the intended recipient(s). Unauthorized interception, review, use or
> disclosure is prohibited and may violate applicable laws including the
> Electronic Communications Privacy Act. If you are not the intended
> recipient, please contact the sender and destroy all copies of the
> communication.
>
-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


RE: Struts2 - Open page in same tab

2017-08-10 Thread Deborah White
If I want it to open in the same tab?

-Original Message-
From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Sent: Thursday, August 10, 2017 1:16 PM
To: Struts Users Mailing List 
Subject: Re: Struts2 - Open page in same tab

2017-08-10 22:10 GMT+02:00 Deborah White :
>  action="" target="_self">

I would remove the "target" attribute


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.


Re: Struts2 - Open page in same tab

2017-08-10 Thread Lukasz Lenart
2017-08-10 22:10 GMT+02:00 Deborah White :
>  action="" target="_self">

I would remove the "target" attribute


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts2 - Open page in same tab

2017-08-10 Thread Deborah White
<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">



$(document).ready( function() {
var ePayAmount = ""
if ( ePayAmount <= 0 ) {
$("#next1").show();
}
$("#mailInfo").hide();
$("button, input:button", ".holder" ).button();
initPageSessionTracker('');
//$("#button_next").hide();

});

var payByCheck = -1;

function submitEPay()
{
payByCheck = 0;

$("#mailInfo").hide();
$("#button_next").show();
var page = ''
popWin(page,'ePayment',700,1020,false);
document.regSubmitForm.method ='GET';
document.regSubmitForm.action = 
document.getElementById('url').value;
document.regSubmitForm.target = 'ePayment';
document.regSubmitForm.submit();
window.focus();
}

function doClear()
{
document.regSubmitForm.reset();
var tbl = document.getElementById('aka');
var rowLength = tbl.rows.length;
for (var i = (rowLength-2); i >= 2; i--)
{
  tbl.deleteRow(i);
}
akaNumber = 1
return false;
}

function document_onkeypress(e)
{
var keynum;
if(window.event)
{
keynum = window.event.keyCode;
}
else if(e.which)
{
keynum = e.which;
}
if(keynum == "13")
{
submitForm();
}
}

function openFeeSlip(){
 window.open('','reportwindow','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
}

function continueToNext() {
document.getElementById("payByCheck").value = payByCheck;
$('#StatusMessage').html("");
document.getElementById("button_next").disabled = "disabled";
document.getElementById("next1").disabled = "disabled";
var url = "";
document.regSubmitForm.method ="POST";
document.regSubmitForm.action = url;
document.regSubmitForm.submit();
}

function byCheck() {
$("#mailInfo").show();
$("#button_next").show();
payByCheck = 1;
}








Skip to content









Tools & Resources













Fees




 





A $6.95 convenience fee is required for all 
online payments (*All online payments are nonrefundable).








   



 To make a 
payment 

Re: Struts2 - Open page in same tab

2017-08-10 Thread Lukasz Lenart
Please post the whole form or at lease form definition


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts2 - Open page in same tab

2017-08-10 Thread Deborah White
> I have a page that is opening a new tab instead of the same tab.  Since I am 
> somewhat new to jquery, ajax and struts, I'm wondering if someone can help me.

>

>

> I have this in my jsp:

>

> function continueToNext() {

>   document.getElementById("payByCheck").value = payByCheck;

> $('#StatusMessage').html("");

> document.getElementById("button_next").disabled = "disabled";

> document.getElementById("next1").disabled = "disabled";

> var url = "";

> document.regSubmitForm.method ="POST";

> document.regSubmitForm.action = url;

> document.regSubmitForm.submit();

> }

>

>  name="button_next" onclick="continueToNext()"/>

>  type="button" value="Next" name="next1" style="display:none" 
> onclick="continueToNext()"/>

> 

>

> In struts.xml:

>

> 

>name="success">/WEB-INF/jsp/renewSaveESignature.jsp

>   /WEB-INF/jsp/renewSave.jsp

>name="renewEsignProc">/WEB-INF/jsp/eSignRenewProcReview.jsp

>  /WEB-INF/jsp/renewSaveEPay.jsp

>  /WEB-INF/jsp/renewSave.jsp

>  /WEB-INF/jsp/renewReview.jsp

>  /WEB-INF/jsp/sotasExternalHome.jsp

> 


CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.


[ANN] Apache Struts: S2-049 Security Bulletin update

2017-08-10 Thread Lukasz Lenart
This is an update of the recently announced Security Bulletin S2-049 -
http://struts.apache.org/docs/s2-049.html

The bulletin was extended with an additional information when the
potential vulnerability can be present in your application. Please
re-read the mentioned bulletin and apply required actions if needed.

Please report any problems back to the Struts Security mailing list -
secur...@struts.apache.org


Kind regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org