cept/block/change every mouse click event which is
> not the left click event through javascript.
>
> Maurizio Cucchiara
>
> Il giorno 16/mar/2011 22.26, "Wes Wannemacher" ha
> scritto:
> Does anyone know of a good trick to detect whether a new window or tab
> was o
"Wes Wannemacher" ha scritto:
Does anyone know of a good trick to detect whether a new window or tab
was opened by the user...
Here is the scenario, a user is looking at a view and he/she
right-clicks one of the links and chooses to open the link in a new
tab or window. The original view and
Your questions are too difficult! Can you please rephrase?
Peace,
Scott
On Wed, Mar 16, 2011 at 4:25 PM, Wes Wannemacher wrote:
> Does anyone know of a good trick to detect whether a new window or tab
> was opened by the user...
>
> Here is the scenario, a user is looking at a vie
Does anyone know of a good trick to detect whether a new window or tab
was opened by the user...
Here is the scenario, a user is looking at a view and he/she
right-clicks one of the links and chooses to open the link in a new
tab or window. The original view and the new tab or window will share
http://stackoverflow.com/questions/1458080/how-to-open-a-new-window-without-using-window-open-and-a-href-in-struts2
> Date: Thu, 27 Jan 2011 16:12:52 -0500
> From: em...@encs.concordia.ca
> To: user@struts.apache.org
> Subject: s:submit to dis
Good afternoon,
Could someone tell me how to use s:submit to open result in a new window?
struts2.2.1.1
Thank you,
--
Lu Ying
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail
Thanks, that works :)
--- On Tue, 3/23/10, Florin Cazacu wrote:
From: Florin Cazacu
Subject: Re: [Struts 2.1.8] s:url : how to open in a new window ?
To: "Struts Users Mailing List"
Date: Tuesday, March 23, 2010, 9:36 AM
Hello,
You can avoid opening of the link in the curr
Hello,
You can avoid opening of the link in the current window removing the
href attribute from tag.
Florin Cazacu.
Celinio Fernandes wrote:
Hi,
I am using Struts 2.1.8.
In a JSP, I have a link which calls an action. I want to open that link in a
new window. The following code works
el...@yahoo.com] Enviada: terça-feira, 23
>> de Março de 2010 13:03
>> Para: Struts Users Mailing List
>> Assunto: [Struts 2.1.8] s:url : how to open in a new window ?
>>
>> Hi,
>> I am using Struts 2.1.8.
>> In a JSP, I have a link which calls an action. I w
ts 2.1.8.
> In a JSP, I have a link which calls an action. I want to open that link in a
> new window. The following code works :
>
> onclick="javascript:window.open('%{genererRapportPDF}');">Generation
>
>
> The problem is that it also calls th
lto:cel...@yahoo.com]
Enviada: terça-feira, 23 de Março de 2010 13:03
Para: Struts Users Mailing List
Assunto: [Struts 2.1.8] s:url : how to open in a new window ?
Hi,
I am using Struts 2.1.8.
In a JSP, I have a link which calls an action. I want to open that link in a
new window. The follo
sunto: [Struts 2.1.8] s:url : how to open in a new window ?
Hi,
I am using Struts 2.1.8.
In a JSP, I have a link which calls an action. I want to open that link in a
new window. The following code works :
Generation
The problem is that it also calls the action / opens the link in the cu
Hi,
I am using Struts 2.1.8.
In a JSP, I have a link which calls an action. I want to open that link in a
new window. The following code works :
Generation
The problem is that it also calls the action / opens the link in the current
window.
How to avoid that ?
Thanks.
Gordian Yuan wrote:
and i can't found html tag A target attribute on s:a
now i write the code like this
modify
It struts2 has a good way to be able to use s:a to open a new window ?
The tag is really more for the Ajax theme--using the HTML
tag is probably the best way to do this.
Hi all,I has see the document
http://struts.apache.org/2.0.14/docs/a.html
<http://struts.apache.org/2.0.14/docs/a.html>
and i can't found html tag A target attribute on s:a
now i write the code like this
modify
It struts2 has a good way to be able to use s:a to open a new window ?
Thanks!
t; action. Even if I do:
>>>
>>>
>>>
>>> >> value="param2"/>
>>>
>>>
>>> and then:
>>>
>>> a href="#" onclick=window.open('${actionURL}') /
>&
, but still the parameters are not passed to the action.
How can I do that? Call my action with all the parameters and display
result in a new window??
thank you very much
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
;
>
>
> and then:
>
> a href="#" onclick=window.open('${actionURL}') /
>
> it works, but still the parameters are not passed to the action.
> How can I do that? Call my action with all the parameters and display
> result in a new window??
>
> tha
still the parameters are not passed to the action.
How can I do that? Call my action with all the parameters and display result
in a new window??
thank you very much
Maybe it's just me, but your message seems to have gotten garbled. Make
sure you are sending plain text (not HTML) formatt
re not passed to the action.
How can I do that? Call my action with all the parameters and display result
in a new window??
thank you very much
--
View this message in context:
http://www.nabble.com/s%3Aa-and-result-in-new-window-tp17868608p17868608.html
Sent fr
name.
Kindly suggest me the way how to implement the logic
that when user click on the textbox a new window opens
and user selects the employee detail from that window
and passes the data to parent window.
Please reply urgently,
Thanks in advance.
regards
Deepak
I myself found the solution.
To open link in the new window, do as it is mentioned below.
test
this is working for me. I hope this solution can help you guys also. =)
Mohiit wrote:
> I am using Struts 2. I want to open the page in the new window when I
> click
> on an icon. I am u
Mohiit wrote:
I am using Struts 2. I want to open the page in the new window when I click
on an icon. I am using tag and giving action by tag.
i.e., ,/s:url>
This way it is opening an action in same page. I want it in the new window
like in HTML tag we can do it
I am using Struts 2. I want to open the page in the new window when I click
on an icon. I am using tag and giving action by tag.
i.e., ,/s:url>
This way it is opening an action in same page. I want it in the new window
like in HTML tag we can do it by l
the same
page, but if the validation success then I want the result display in new
window.
Question:
how can I trigger open new window using Struts (I don't want to open new
window using form target or windows open).
can anyone help me? thanks
Regards,
jeppy
--
Hi I'm using Struts 1.2.9,
what i want is,
if it's failed on validation then the error message display on the same
page, but if the validation success then I want the result display in new
window.
Question:
how can I trigger open new window using Struts (I don't want to open n
AFAIK, the tag is best used when designing ajax applications,
meaning the usual interaction is to update the same browser window.
I would stay with the common HTML anchor tag to open a new window.
Gabriel
2008/1/3, Al Sutton <[EMAIL PROTECTED]>:
> Heres channelge for the day...
>
Heres channelge for the day...
I have a page which contains a link, when the user clicks the link they get
a PDF which they need to go off and do something with (not part of the
webapp).
What I'd like to do is open a new browser window with the PDF in and retain
the page with link in the origin
rrors
does. But then yeah it actually works I still have target there and it opens
a new window only when validation succeded thats fine is there any way to
make javascript display html:errors like right in page and not in a pop up I
looked at html:errors it doesn't have an id or styleId attrib
It could actually be both. I assume you are using both client and
server side JavaScript validation (at the very least you should be doing
server side since HTML pages can be manipulated).
So, assuming you are doing both, you need the page you submitted the
data on to go somewhere because you wan
Hi I have a question. I am not sure if this is a Struts question or an HTML
question so here we go. I have a form on page x I submit the form validation
failed it goes back to the page x which is fine but then if validated true
it should open a new window with the stuff that should be there. So
Keep in mind however in POHTML the "target" attribute is deprecated unless
you are doing frames development (which I hope you are not ;-)).
The proper way to get a new window is to use the window.open() call from
your tag.
HTH,
-Rod
-Original Message-
From: Dave Newton [mai
--- Jason Deffenbaugh <[EMAIL PROTECTED]>
wrote:
> So this is a pretty simple question (I'm new to view
> technology)
>
> How do I control the target of a struts s:a tag? I
> want to open the
> link in a new window or a new tab.
>
> I've tried:
>
Use the simple theme.
-Mensagem original-
De: Jason Deffenbaugh [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 30 de outubro de 2007 07:55
Para: Struts Users
Assunto: Link: new window or new tab
So this is a pretty simple question (I'm new to view technology)
How do I co
So this is a pretty simple question (I'm new to view technology)
How do I control the target of a struts s:a tag? I want to open the
link in a new window or a new tab.
I've tried:
text
without having used ajax anywhere else in my app but this just opens in
the current win
h javascript.
Are you saying that you want to submit a form, refresh the page /and/
popup a new window containing a third page?
Your form handler should return a page with a element like this:
This will load your popup. This kind of user experience doesn't sound
very good IMO. :(
- -chri
Hi
I have to handle the following situation.
1. When user click submit on the webpage, the request goes to the action
class.
2 This action class performs some task,
3 If the task is ok then this action class should forward the request to
another action class and also open a new browser window
4 i
-Ursprüngliche Nachricht-
Von: Balwinder [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. September 2006 14:04
An: Struts Users Mailing List
Betreff: Re: AW: Action output in new window without menu/toolbar
Martin Kindler wrote:
Thanks,
but how do I use it with a form?
I have i
Re: AW: Action output in new window without menu/toolbar
>
>
> Martin Kindler wrote:
>
> >Thanks,
> >but how do I use it with a form?
> >
> >I have in my html-code
> >
> >
> >Martin
> >
> >
> >
> >>-Ursp
For that u have to go for manually in javascript
-Original Message-
From: Martin Kindler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 4:38 PM
To: 'Struts Users Mailing List'
Subject: Action output in new window without menu/toolbar
Hi
I am using Struts 1.2.x
Martin Kindler wrote:
Thanks,
but how do I use it with a form?
I have in my html-code
Martin
-Ursprüngliche Nachricht-
Von: Balwinder [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. September 2006 13:17
An: Struts Users Mailing List
Betreff: Re: Action output in new window
Thanks,
but how do I use it with a form?
I have in my html-code
Martin
> -Ursprüngliche Nachricht-
> Von: Balwinder [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 20. September 2006 13:17
> An: Struts Users Mailing List
> Betreff: Re: Action output in new window witho
Martin Kindler wrote:
Hi
I am using Struts 1.2.x and try to achieve the following:
on a page I have a form whose action calls a Struts action. The result shall
be displayed in a new window.
No problem so far. But:
The new window should have no menu- and toolbar.
Is this possible? and if, how
Hi
I am using Struts 1.2.x and try to achieve the following:
on a page I have a form whose action calls a Struts action. The result shall
be displayed in a new window.
No problem so far. But:
The new window should have no menu- and toolbar.
Is this possible? and if, how?
Martin
criptlets to the calendar.jsp to get the session object and extract the locale
information from there. But i do not get the session object in the new window
that was opened from the parent window which has a session object associated
with it.
My question is how can i get the session information in a ne
and extract the locale
information from there. But i do not get the session object in the new window
that was opened from the parent window which has a session object associated
with it.
My question is how can i get the session information in a new window that is
opened using window.open() from
I tried to use struts-menu and I find a BIG problem:
My customer would like to open the very page that the "location" defined
in the same window,not a new window?
It woks in firefox and the customer is satisfied.The problem occurred under
Internet Explorer.
Can you help me please?
Tom Ansley wrote:
Yes, I use javascript for the exact problem you mention.
Here is the code I use for the different possible formats:
That way the Form gets not submitted, and the bean does not have the latest
data on form.
It may not always be a problem, but I see it not perfect.. But i
Subject: Re: Spawning a new window from Action.execute
You will need to use javascript. Let the javascript function call your
action class and open a new window.
HTH.
-
Yahoo! Mail
Use Photomail to share photos without annoying attachments
You will need to use javascript. Let the javascript function call your action
class and open a new window.
HTH.
-
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
Hello, new user here. New with struts, but looks good so far.
I have one special need now, though.. Would like to open something in a new
window, after getting the data into form bean, and validated it.
This may not be a struts specific problem, but in case someone has ideas for
it
I think you can use javascript for accessing to struts html:hidden variables.
12 Jan 2006 14:59:49 -, rahul kshirsagar <[EMAIL PROTECTED]>:
> Hi,
>
> I am using struts in my application.I have one parent jsp from which i am
> opening a new window.Now i want to pass some value from this child
Hi,
I am using struts in my application.I have one parent jsp from which i am
opening a new window.Now i want to pass some value from this child window and
close the same.
How to pass this value from child to parent jsp and also retain values in
parent jsp?
Which is the efficient way to impleme
rahul kshirsagar wrote the following on 1/12/2006 8:36 AM:
Hi,
Do i need to call action class on submit
> of new jsp?
I wasn't able to follow all of your original post, but in my opinion,
you should always go through an Action, even if it's the the default
ActionForward. This way, if later o
Hi,
I am using struts in my application.I have one JSP in which i have "search" and
"submit" button.I am opening a new window on click of "search" and populating a
jsp.Now i want to pass a value from this new jsp to old jsp and also want to
retain data in old
Chad-
Have you looked at activetree which has Preview capability?
http://www.activetree.com/
M-
- Original Message -
From: "Chad Armstrong" <[EMAIL PROTECTED]>
To:
Sent: Monday, November 07, 2005 5:44 PM
Subject: spawning a new window for print?
Hi all,
I'm pret
Thanks guys, yeah I was hoping that a submit would be a submit,
regardless of browser window, just redirecting the request/response
stream, but maybe not. I'm familiar with the CSS options you offered,
so I will fall back to those same-window options if no new-window
solutions are found.
Cha
the same page with a hidden form field flag set to not
> > display the extraneous formatting. But I want to do this in a new
> > window.
> >
> > I've tried the following:
> >
> > Using javascript to force a form submit in the onclick method of a
> > te
and
> struts tags to display the results. What I want to now do however, is
> provide a Print link that spawns a new window with a stripped down
> version of the content. It would be easy enough if the Print button
> just refreshed the page, I would just use a standard submit button and
&g
de a Print link that spawns a new window with a stripped down
version of the content. It would be easy enough if the Print button
just refreshed the page, I would just use a standard submit button and
post back to the same page with a hidden form field flag set to not
display the extraneous formatting.
Hi,
I'm trying to start a new shale dialog flow in a new window. The
window is opened when the user clicks on a button, and is invoked with
the javascript function window.open('/startdialog.jsf').
The problem is that to initiate a dialog flow, you need to setup an
action to r
you got to specify the target in the href or form action
or whatever method you are using it
From: "Rivka Shisman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: forward to a new window
Date: Mon, 1
To expand on Vic's comments.
Yes the share the same session id but they also have a JavaScript
relationship. The opener parent can be accesses from the child window from
referencing the window.opener API. If the new window is assigned to a
windows variable then the parent can reference that
> 1. What are the relations between the new window and the original one?
> Do they share the same session attributes?
Typically, the parent & child window will share the same session attributes.
> 2. How do you define a child window in JSP - can you please attach an
> example?
friends
I would like to know if there is a way of forwarding a request to a new
explorer window.
For example, in the current window I have a list of books and a link to
a book details page for each book in the list - how do I open the book
details in a new window using Struts?
Thanks
Rivka
new
explorer window.
For example, in the current window I have a list of books and a link to
a book details page for each book in the list - how do I open the book
details in a new window using Struts?
Thanks
Rivka
shalom rivka,
there is no whatsoever relation between html-controled browser windows
and the backend struts-java-code.
besides, you can access the new window from the old window using its
name, and you can access the old window from the new window by
window.opener or window.parent (depends on
Thanks guys
2 related questions:
1. What are the relations between the new window and the original one?
Do they share the same session attributes?
2. How do you define a child window in JSP - can you please attach an
example?
Rivka
-Original Message-
From: Mark Benussi [mailto:[EMAIL
when writing a link the target attribute can be set with _new or _blank or
even the name of a child window. When youclick on the link it will open in
said new window.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Rivka,
Try the following:
link
This will open your action in a new window.
Vic
> Hi friends
>
>
>
> I would like to know if there is a way of forwarding a request to a new
> explorer window.
>
> For example, in the current window I have a list of books and a link
Hi friends
I would like to know if there is a way of forwarding a request to a new
explorer window.
For example, in the current window I have a list of books and a link to
a book details page for each book in the list - how do I open the book
details in a new window using Struts?
Thanks
ing more requires scripting.
>
> I wasn't clear on what you meant by:
>
> "Does anyone know how I might specify these options when opening up a
> new window, then submitting a struts form to said window?"
>
> Specifically, the part about submitting a struts form
ht specify these options when opening up a
new window, then submitting a struts form to said window?"
Specifically, the part about submitting a struts form to said window...
can you explain that a different way because I'm not sure what your
trying to accomplish from that.
Frank
David Joh
5/19/05, David Johnson <[EMAIL PROTECTED]> wrote:
>
> Hi there
> I'm trying to open up a new window from my struts application which will
> contain "help" information. The link opening the window looks like this so
> far
>
> <
> html:link acti
Hi there
I'm trying to open up a new window from my struts application which will
contain "help" information. The link opening the window looks like this so
far
http://help.do>" target="_help">Help
What I'd like to do is specify the following opt
Ashish Kulkarni wrote:
Hi
can we open a new window from action class?
i dont want to use
target="_blank">
as i want to be able to open this new window from any
form( i have a menu option which can be executed from
any page of my website)
Basically i have a java script which lo
Ashish Kulkarni wrote:
Hi
can we open a new window from action class?
i dont want to use
target="_blank">
as i want to be able to open this new window from any
form( i have a menu option which can be executed from
any page of my website)
Basically i have a java script which lo
w name to something specific
> such as mysite_com_popup
> and then use that name as a target in the future?
>
> Regards,
> David
>
> -Original Message-
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 19, 2005 2:28 PM
> To: Stru
though not a struts issue, the anchor tags target attribute is generally
used when dealing with frames. I have READ that forcing content into a new
window can cause problems for user agents (html readers).
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent
: Re: open new window form struts action..java script variable
Hi
thanx guys for the clarification, here is a very
intresting problem with defining target and opening
new window,
suppose you open a new window using java script in
mypage.jsp
your code will be like below in mypage.jsp
var TheNewWin
Hi
thanx guys for the clarification, here is a very
intresting problem with defining target and opening
new window,
suppose you open a new window using java script in
mypage.jsp
your code will be like below in mypage.jsp
var TheNewWin;
if(!TheNewWin || TheNewWin.closed)
{
TheNewWin = window.open
Geez, I wish I'd have known that before! So are you saying that if the browser
doesn't recognize the target as one of the predefined types, it will assume it
should open a new window named according to the target value? That's cool, and
I didn't know it. It would have sav
On Jan 19, 2005, at 19:05, [EMAIL PROTECTED] wrote:
For my own edification, can you expand on the ability to "...define
whatever target you like"? I've never heard that before, I'd be
interested to know more. I'm wondering specifically since the browser
wouldn't know what anything other than t
6, [EMAIL PROTECTED] wrote:
>
>> (1) Submit a form to _blank, as you said (actually, I think it's _new,
>> but my memory sucks so I'm not sure)
>
> Actually, you can define whatever target you like.
>
> There are a couple of "standard"
ank - the target URL will open in a new window
•_self - the target URL will open in the same frame as it was
clicked
•_parent - the target URL will open in the parent frameset
•_top - the target URL will open in the full body of the window
http://ww
This should probably be an answer on the Wiki since I see this asked quite a
bit...
No, you cannot open a new window from an Action. Not directly anyway. Opening
a window is strictly a client-side activity. Therefore, you have two choices:
(1) Submit a form to _blank, as you said (actually
Hi
can we open a new window from action class?
i dont want to use
as i want to be able to open this new window from any
form( i have a menu option which can be executed from
any page of my website)
Basically i have a java script which looks like this
TheNewWin = window.open(url, '
Sorry , I already see was my problem, so let me put the solution here:
All the problem was in the struts-config.xml in this line:
change to this:
and voilá!
Hope this works for someone
Adolfo
-
To unsubscribe, e-mail: [EMAIL PRO
Hi folks,
Let me describe my problem,
I am generating a PDF doc in the Action and all works fine, it could be
show in IE, in Netscape and in Firefox, when I try to showing it in a
new window (user requirement) using JS it works in NS and Firefox, but
IE shows a popup window asking if I want
Hey Sergey,
I don't think that there is a way to open a new window from the struts
config file. But I may have a way around it. If you are pointing to your
action with a link you can to the following:
Click here
*
Ruben Cepeda
[EMAIL PROT
How can I configure struts-config to open new window for а new .do?
--
regards,
Sergey mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
91 matches
Mail list logo