The Artima Developer Community
Sponsored Link

Java Answers Forum
Self Post Page

1 reply on 1 page. Most recent reply: Dec 31, 2003 2:39 AM by Joe Parks

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Deepak

Posts: 1
Nickname: ardeep
Registered: Dec, 2003

Self Post Page Posted: Dec 30, 2003 11:18 PM
Reply to this message Reply
Advertisement
can anybody tell me how to do self posting of a form through <a href="" > ??

You can better understand my problem in following steps:

1. I want to save the data in page1.jsp in a jave file by self posting it. I am doing that stuff on page form post.
2. I want to move to page2.jsp( specified as link <a href="page2.jsp"> from page1.jsp, after the data is being posted into java file.

The design of page is having tabs for every page and upon click of any displayed number, it moves to that page through <A HREF > tag...now suppose after entering the data, he moves to another page by clicking on the link, the data of previous form should persist in the java file by first storing it in the java file by self posting the page. I hope i am able to make my problem clear...

Thanx for ur cooperation and help.


Joe Parks

Posts: 107
Nickname: joeparks
Registered: Aug, 2003

Tough to do Posted: Dec 31, 2003 2:39 AM
Reply to this message Reply
You can't do exactly what you've described without a combination of (somewhat) complex javascript and some html tricks--either of which may not be supported, or may be supported differently--in some browsers.

Why not have the displayed number be a submit button with the form's action attribute pointing to the java code (presumably a servlet?), and just redirect to the next page in the chain from within the java code?

Flat View: This topic has 1 reply on 1 page
Topic: how to get the processor speed info? Previous Topic   Next Topic Topic: how to create forums use JSP

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use