Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Accessing html variables in JSP


Message #1 by "prasad" <agaskar_99@y...> on Tue, 5 Dec 2000 12:56:07 -0000
hi, prasad ya, u are right. but it's a round about way waht is the problem
if u submit the form to itself.(self-submission)?


                                                                                           
                    "Massimo                                                               
                    LoVoi"               To:     "Pro_JavaServer_Pages"                    
                    <mlv@s...        <pro_jsp@p...>                            
                    om>                  cc:                                               
                                         Subject:     [pro_jsp] Re: Accessing html         
                    06/12/2000           variables in JSP                                  
                    08:37 PM                                                               
                    Please                                                                 
                    respond to                                                             
                    "Pro_JavaServ                                                          
                    er_Pages"                                                              
                                                                                           
                                                                                           



Prasad,
Gopi is right, but there is a workaround.
Create an hidden frame, then use the Javascript(client-side)
document.write() method to build your form inside the hidden frame.
Submit the form in the hidden frame, setting the
action="yourOutput.htm".
Finally, get the information you want after the yourOutput.htm is loaded.
This is a trick I have used, and it works.
Let me know if you have any questions.
Massimo


Re: Accessing html variables in JSP

hi, there is no way to access the form variables in jsp without submitting
the form at least you have to submit the form tio it self
bye
Gopi


Subject:     [pro_jsp] Accessing html variables in JSP
> Hi
> Can any one tell me how to access form variables in JSP.
> this is to be done without submitting the form so i can't use
> request.getParameter
>
> Prasad


  Return to Index