CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Posts
    142

    Can i use form name of calling JSP in called JSP?

    Hi,

    I have two jsp's (i.e one.jsp , two.jsp). i have a form in one.jsp and calling two.jsp from one.jsp through Ajax. i want to use the form name of one.jsp in two.jsp. is it possible. if not how to get the form name of one.jsp ? can any body give an idea on this ??

    thanks in advance

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Can i use form name of calling JSP in called JSP?

    You will have to pass it through as a hidden input.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jun 2008
    Posts
    142

    Re: Can i use form name of calling JSP in called JSP?

    do i need to mention as hidden input in one.jsp the form name of one.jsp ?? and in hidden input do i mention form name as value or what ??
    Last edited by adusumalli; December 23rd, 2008 at 02:48 PM.

  4. #4
    Join Date
    Feb 2008
    Posts
    966

    Re: Can i use form name of calling JSP in called JSP?

    He means inside the form on one.jsp, something like this(generic):

    Code:
        <html:hidden name="myForm" property="formName"
            value="nameofform" />

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured