Re: FW: Struts2 - Open page in same tab

2017-08-14 Thread Yasser Zamani
No, that your added line do nothing with close button at last page I 
think. close button at last page has been generated by the result of 
then action `renewsave`, I guess. So just see what jsp is the result of 
this action and so, what is the script on that close button's onClick 
and then you should correct that script I think.

Regards,
Yasser.

On 8/15/2017 12:34 AM, Deborah White wrote:
> So I got that part working but now my close button on the last page does not 
> work.  I have found several things online that say it is a security feature. 
> Please see my previous email.  I will post to users from now on, I just get a 
> lot of people that don't really take the time to understand what I am trying 
> to do.  I see it is not a struts issue, but if you have any thoughts that 
> would be great.
>
> I did this, maybe there is something better that will then make my close 
> button work on next page:
>
> function continueToNext() {
> document.getElementById("payByCheck").value = payByCheck;
> $('#StatusMessage').html("");
> Added this  **  document.getElementById("regSubmitForm").target = "_self";
> document.getElementById("button_next").disabled = "disabled";
> document.getElementById("next1").disabled = "disabled";
> var url = "";
> document.regSubmitForm.method ="POST";
> document.regSubmitForm.action = url;
> document.regSubmitForm.submit();
> }
>
> -Original Message-----
> From: Yasser Zamani [mailto:yasser.zam...@live.com]
> Sent: Saturday, August 12, 2017 12:12 AM
> To: user@struts.apache.org
> Cc: Deborah White 
> Subject: Re: FW: Struts2 - Open page in same tab
>
> Hello,
>
> Sorry for late answer. I thought dev mailing list also receives user mails 
> but now I subscribed to user mailing list and I have your mails on my radar 
> hereafter.
>
> Although this is not a Struts issue, I reviewed your jsp and I think if your 
> submitEPay function works and opens a popup window, but it's next button does 
> not work, then you may rewrite continueToNext function as below:
>
>  function continueToNext() {
>  document.getElementById("payByCheck").value = payByCheck;
>  $('#StatusMessage').html("");
>  document.getElementById("button_next").disabled = "disabled";
>  document.getElementById("next1").disabled = "disabled";
>  var url = ""; // I 
> added following one line document.regSubmitForm.target = 'ePayment';
>  document.regSubmitForm.method ="POST";
>  document.regSubmitForm.action = url;
>  document.regSubmitForm.submit();
>  }
>
>
> On 8/11/2017 8:58 PM, Deborah White wrote:
>> Hello, you are the only person who has been able to help me so far.  I'm 
>> hoping you can help me with one more item.  I have the jsp below and you 
>> will see there is an option for epay which pops up a window to our vendor.  
>> The form then loses focus so when you return to it and click the next 
>> button, it opens in a new tab instead of the same tab.  This is confusing 
>> for people because the second tab then has a confirmation and a close button 
>> which closes that tab, but then the other (with this code) is still open.  
>> Any ideas?
>>
>> -Original Message-
>> From: Deborah White
>> Sent: Thursday, August 10, 2017 1:11 PM
>> To: 'Struts Users Mailing List' 
>> Subject: RE: Struts2 - Open page in same tab
>>
>> <%@ 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">  
>>  > language="javascript"> $(document).ready( function() {
>> var ePayAmount = "<s:property value="#session.epay.amount" 
>> escape="false" escapeJavaScript="true"/>"
>> if ( ePayAmount <= 0 ) {
>> $("#next1").show();
>> }
>> $("#mailInfo").hide();
>> $("button, input:button", ".holder" ).button();
>> initPageSessionTracker('<s:property 
>> value="#session.maxInactiveInterval"/>');
>>

Re: FW: Struts2 - Open page in same tab

2017-08-12 Thread Yasser Zamani
Hello,

Sorry for late answer. I thought dev mailing list also receives user 
mails but now I subscribed to user mailing list and I have your mails on 
my radar hereafter.

Although this is not a Struts issue, I reviewed your jsp and I think if 
your submitEPay function works and opens a popup window, but it's next 
button does not work, then you may rewrite continueToNext function as below:

 function continueToNext() {
 document.getElementById("payByCheck").value = payByCheck;
 $('#StatusMessage').html("");
 document.getElementById("button_next").disabled = "disabled";
 document.getElementById("next1").disabled = "disabled";
 var url = "";
// I added following one line
document.regSubmitForm.target = 'ePayment';
 document.regSubmitForm.method ="POST";
 document.regSubmitForm.action = url;
 document.regSubmitForm.submit();
 }


On 8/11/2017 8:58 PM, Deborah White wrote:
> Hello, you are the only person who has been able to help me so far.  I'm 
> hoping you can help me with one more item.  I have the jsp below and you will 
> see there is an option for epay which pops up a window to our vendor.  The 
> form then loses focus so when you return to it and click the next button, it 
> opens in a new tab instead of the same tab.  This is confusing for people 
> because the second tab then has a confirmation and a close button which 
> closes that tab, but then the other (with this code) is still open.  Any 
> ideas?
>
> -Original Message-----
> From: Deborah White
> Sent: Thursday, August 10, 2017 1:11 PM
> To: 'Struts Users Mailing List' 
> Subject: RE: Struts2 - Open page in same tab
>
> <%@ page language="java" contentType="text/html; charset=UTF-8" 
> pageEncoding="UTF-8"%> <%@taglib uri="/struts-tags" prefix="s" %>  html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
> "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 = "<s:property value="#session.epay.amount" 
> escape="false" escapeJavaScript="true"/>"
> if ( ePayAmount <= 0 ) {
> $("#next1").show();
> }
> $("#mailInfo").hide();
> $("button, input:button", ".holder" ).button();
> initPageSessionTracker('<s:property 
> value="#session.maxInactiveInterval"/>');
> //$("#button_next").hide();
>
> });
>
> var payByCheck = -1;
>
> function submitEPay()
> {
> payByCheck = 0;
>
> $("#mailInfo").hide();
> $("#button_next").show();
> var page = '<s:url value="/loading.html" encode="true"/>'
> 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('<s:url value="viewFeeSlip.action" 
> encode="true"/>','reportwindow','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=ye

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 <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/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 <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/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
  








Please 
contact the Seller of Travel Program to discuss fee payment.










 Email: 
sellers.tra...@doj.ca.gov









 Phone: (213) 
897-8065







   " />
   " />
   " />
   " />
   " />
   " />
            


















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

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



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
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.