Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Hyperlink not calling the method

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi List[],

I am using strut2.0.My problem is that i want on click of hyperlink my action method name save should call and new window
should open.
I did like this but its only opens the window not calling the method .
Please help me how to do this.

i did like this.

<s:a href="customerscreenlist!save.action" onclick="window.open('allocationlist.action','allocate','width=650,height=400,menubar=no,status=no, location=no,toolbar=no,scrollbars=yes'); return false;">Submit</s:a>
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi,

Just put your struts.xml code for map your action.


Still we are not get any idea about this why it is not call with this information.

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its calling the action but showing this message

to display the webpage again,Internet Explorer needs to resend
the information you've previously submitted.

How to avoid this message.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

pankaj semwal wrote:Its calling the action but showing this message

to display the webpage again,Internet Explorer needs to resend
the information you've previously submitted.

How to avoid this message.

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

pankaj semwal wrote:
to display the webpage again,Internet Explorer needs to resend
the information you've previously submitted.



When did you found this message, when you click URL and window appear with this message OR when you try to refresh that new window you opened?

And is this message comes as a alert message box, with two options like, "Resend" and "Cancel" ?
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
then how to stop this message.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

pankaj semwal wrote:then how to stop this message.


I think this is not the answer what I asked in my previous post !

But still,, usually I got such error when I refresh the page and FF alerts me like, "This is POST action, do you want to resend it ?" or something like that ..
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i get this message when i select check boxes and then press submit button .After this the message come

To display the webpage again,Intenet Explorere needs to resend the information you've previosusly submitted.
If you were making a purchase ,you shuld click cancel to avoid a duplicate transaction.Othwerise ,click retry to
display the webpage agin.



Please help me how to stop this one.And one more probelm i am facing is that

when popwindow opens its does not display the records which i currently selected.
When i refesh the page then its show my all the current records.

Please help me.

Thanks

 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

pankaj semwal wrote:

i get this message when i select check boxes and then press submit button .After this the message come

To display the webpage again,Intenet Explorere needs to resend the information you've previosusly submitted.
If you were making a purchase ,you shuld click cancel to avoid a duplicate transaction.Othwerise ,click retry to
display the webpage agin.




This is something weird, a normal SUBMIT action doesn't display such message, if it really do, then there is something wrong you written in your JSP/HTML pages, post the code here..

pankaj semwal wrote:And one more probelm i am facing is that

when popwindow opens its does not display the records which i currently selected.
When i refesh the page then its show my all the current records.


The quick remady will be, just add META tag, which refresh the pages as soon as it loads,

Or you can try another TAG
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i used <meta http-equiv="refresh" content="600"> now that message is not coming.But still i am
not getting the records which i currently selected.I get records when i have to refresh the page.

Thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not getting right now,
You have to post the code of, which page has submit action, which page is popuped with action mapping..
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

This my jsp page



and this my java script file.


 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
O_o

- You're not actually submitting the form to the popup window; is that your intention?
- Ideally, form onsubmit handlers should return true (process the submission) or false (cancel the submission). You're returning a window--IIRC this means the form submission will still occur (could be wrong about that though).

I'm not convinced you're having a Struts issue.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

One more problem is i am facing is that in jsp page if i have only one check box then it does not
open the new window.

Please help me why this.

Thanks
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That seems like a JavaScript issue, not Struts. Try debugging with Firebug.
 
That is a really big piece of pie for such a tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic