DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7141>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7141

URL rewriting does not work properly

           Summary: URL rewriting does not work properly
           Product: JMeter
           Version: 1.5
          Platform: PC
               URL: http://www.novationbio.com
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Main
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I took the URL Re-writing and overwrote the http request test plan item to 
point ot our server.

I was expecting the sessionKey variable in 2nd page will be replaced with the 
sessionKey Value which was passed in the html page before the 2nd page was 
called.

I am enclosing the jmx file content:
-------------------------------------------
  <?xml version="1.0" ?> 
- <ThreadGroup name="URL Re-writing Example" numThreads="1" rampUp="0">
- <controllers>
- <LoopController type="org.apache.jmeter.control.LoopController" name="Loop 
Controller" iterations="1">
  <configElements /> 
- <controllers>
- <Controller type="org.apache.jmeter.control.ModifyController" 
name="Modification Controller">
- <configElements>
  <ConfigElement 
type="org.apache.jmeter.protocol.http.modifier.AnchorModifier" /> 
  </configElements>
- <controllers>
- <HttpTestSample type="org.apache.jmeter.protocol.http.control.HttpTestSample" 
name="Login" getImages="false">
- <defaultUrl>
- <ConfigElement 
type="org.apache.jmeter.protocol.http.config.MultipartUrlConfig">
  <property name="port">8080</property> 
  <property name="PROTOCOL">http</property> 
  <property name="domain">akamat-pc</property> 
- <property name="arguments">
- <Arguments>
  <argument name="sessionKey">.*</argument> 
  <argument name="username">test</argument> 
  <argument name="password">test</argument> 
  <argument name="contentPage">/htdocs/login/authWelcome2.jsp</argument> 
  <argument name="appName">CompoundCurator</argument> 
  </Arguments>
  </property>
  <property name="path">/novationbio/htdocs/template/index3.jsp</property> 
  <property name="method">POST</property> 
  </ConfigElement>
  </defaultUrl>
  <configElements /> 
  <controllers /> 
  </HttpTestSample>
- <HttpTestSample type="org.apache.jmeter.protocol.http.control.HttpTestSample" 
name="Do Something interesting" getImages="false">
- <defaultUrl>
- <ConfigElement 
type="org.apache.jmeter.protocol.http.config.MultipartUrlConfig">
  <property name="port">8080</property> 
  <property name="PROTOCOL">http</property> 
  <property name="domain">akamat-pc</property> 
- <property name="arguments">
- <Arguments>
  <argument name="sessionKey">.*</argument> 
  <argument name="contentPage">/htdocs/curator/curatorSearch.jsp</argument> 
  <argument name="Compound">aspirin</argument> 
  <argument name="search" /> 
  </Arguments>
  </property>
  <property name="path">/novationbio/htdocs/template/index3.jsp</property> 
  <property name="method">GET</property> 
  </ConfigElement>
  </defaultUrl>
  <configElements /> 
  <controllers /> 
  </HttpTestSample>
  </controllers>
  </Controller>
  </controllers>
  </LoopController>
  </controllers>
  <timers /> 
- <listeners>
  <JMeterComponent type="org.apache.jmeter.reporters.ResultCollector" 
name="View Results" /> 
  <JMeterComponent type="org.apache.jmeter.reporters.ResultCollectorFull" 
name="View Results Tree" /> 
  </listeners>
  </ThreadGroup>

----------------------------------------

i am also enclosing the HTML content from the first page.

<html>



<head>



</head>



<TITLE>The Compound Curator by Novation Biosciences</TITLE>

<link rel="stylesheet" href="/novationbio/htdocs/css/main.css">



    





   

   

   

   







<form name="theForm" action="../template/index3.jsp" method="POST">

    







    

    <input type="hidden" name="contentPage" value ="">

    <input type="hidden" name="sidebarPage" value ="">

    <input type="hidden" name="search" value="">





<!-- #99CCFF -->

<table border='0' height='100%' width='100%' cellspacing="0" cellpadding="0">

    <tr height="5%" width="100%">

        <td width="100%" colspan = "1" >

            

<table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

        <td width="100%" align="right" valign="top">

            <img src="/novationbio/htdocs/images/novationbiologo.gif" 
width="271" height="38" border="0" alt="logo" align="right">

        </td>

    </tr>

</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

        <td width="180" rowspan="1" valign="bottom">

            <img src="/novationbio/htdocs/images/curator.gif" width="267" 
height="23" border="0" align="bottom" alt="">

        </td>

        <td width="98%" >

            &nbsp;

            <input type="hidden" name="appname" value="CompoundCurator">

        </td>

    </tr>

    

</table>



    







        </td>    

    </tr>

   <tr height = "5%" width = "100%"> 

      <td valign='top' width='100%'>

         





      </td>

   </tr>

   <tr>

      <td valign='top' align='center' width='100%' >

                  





        



<table width= "100%" border="0" bgColor=#eeeeee cellPadding=0 cellSpacing=0>

<TR align=left vAlign=top>

        <TD colSpan=3 vAlign=top width="100%">

            <input type="hidden" name="sessionKey" 
value="CompoundCurator$7637537163773961937">

                <TABLE bgColor=#eeeeee border=0 cellPadding=2 cellSpacing=0 

                        width="100%">

                        <TBODY>

                                <TR>

                                        <TD colSpan=3>

                                            &nbsp;

                                        </TD>

                                </TR>

                                <TR>

                                    

                            

                            

                            

                                        

                                        <TD align=right noWrap width="40%">

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <B>Compound</B>

                                                    </FONT>

                                            </TD>

                                            <TD><input type="text" size = "45" 
name = "Compound" value = ""></input></TD>

                                        <TD noWrap width="40%">

                                                <FONT color=#ff0000 
face=Verdana,Arial size=-2>

                                                        (*required)

                                                </FONT>

                                            </TD>

                                            

                                </TR>

                                <TR>

                                        <TD colSpan=3>&nbsp;</TD>

                                </TR>

                                <!-- Horizontal Rule -->

                                <TR>

                                        <TD align=middle colSpan=3 height=1 
width="100%">

                                                <TABLE bgColor=#cccccc border=0 
cellPadding=0 cellSpacing=0 width="75%">

                                                        <TBODY>

                                                                <TR>

                                                                        <TD 
bgColor=#cccccc height=1></TD>

                                                                </TR>

                                                        </TBODY>

                                                </TABLE>

                                        </TD>

                                </TR>

                                <!-- End Horizontal Rule -->

                                <TR>

                                        <TD colSpan=3 
bgColor=#eeeeee>&nbsp;</TD>

                                </TR>

                        </TBODY>

                </TABLE>

        </TD>

</TR>

<TR align=left vAlign=top>

        <TD align=right bgColor=#eeeeee vAlign=top width="50%">

                <TABLE border=0 cellPadding=1 cellSpacing=0 width="100%">

                        <TBODY>

                                <TR>

                                    

                                

                            

                            

                            

                                        <TD align=right width="40%">

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <B>Keyword</B>

                                                            <BR>

                                                            <FONT size=-2>

                                                                    (optional)

                                                            </FONT>

                                                    </FONT>

                                            </TD>

                                           <TD>&nbsp;</TD>

                                        <TD width="60%"><input size="25" 
type="text" name="Keyword" value=""></input></TD>

                                        

                                    </TR>

                                <TR>

                                        <TD colSpan=3>

                                                    &nbsp;

                                            </TD>

                                    </TR>

                                <TR>

                                    

                            

                            

                            

                            

                                        <TD align=right noWrap vAlign=top>

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <B>Measure Type</B>

                                                    </FONT>

                                                    <input type="hidden" 
name="multiSelectMeasureType" value="off"></input>

                                            </TD>

                                        <TD></TD>

                                        <TD>

                                            

                                            

                                

                                

                                

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="MeasureType" value="any" >Any</input>

                                                            <BR>

                                                    </FONT>

                                                    

                                

                                

                                

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="MeasureType" value="weight" >Weight</input>

                                                            <BR>

                                                    </FONT>

                                                    

                                

                                

                                

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="MeasureType" value="volume" >Volume</input>

                                                            <BR>

                                                    </FONT>

                                                    

                                

                                

                                

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="MeasureType" value="concentration" >Concentration</input>

                                                            <BR>

                                                    </FONT>

                                                    

                                                    

                                            </TD>

                                            

                                </TR>

                                <TR>

                                        <TD colSpan=3>

                                                &nbsp;

                                        </TD>

                                </TR>

                        </TBODY>

                </TABLE>

        </TD>

        <!-- Vertical Rule -->

        <TD bgColor=#cccccc width=1>

                <TABLE border=0 cellPadding=0 cellSpacing=0 width=1>

                        <TBODY>

                                <TR>

                                        <TD></TD>

                                </TR>

                        </TBODY>

                </TABLE>

        </TD>

        <!-- End Vertical Rule -->

        <TD align=left bgColor=#eeeeee vAlign=top width="50%">

                <TABLE align=left border=0 cellPadding=1 cellSpacing=0 
width="100%">

                        <TBODY>

                                <TR>

                                    

                            

                            

                            

                            

                       <TD align=right noWrap vAlign=top>

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <B>Discipline</B>

                                                    </FONT>

                                                    <input type="hidden" 
name="multiSelectDiscipline" value="off"></input>

                                                </TD>

                                        <TD></TD>

                                        <TD width="55%">

                                        

                                        

                                            

                            

                            

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="Discipline" value="any" >Any</input>

                                                            <BR>

                                                </FONT>

                                            

                                            

                            

                            

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="Discipline" value="biochemistry" >BioChemistry</input>

                                                            <BR>

                                                </FONT>

                                            

                                            

                            

                            

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <input type="radio" 
name="Discipline" value="pk/pd" >pk/pd</input>

                                                            <BR>

                                                </FONT>

                                                

                                            

                                            </TD>

                                            

                                    </TR>

                                <TR>

                                        <TD colSpan=3>&nbsp;</TD>

                                    </TR>

                                <TR>

                                    

                            

                            

                            

                            

                            

                            

                                        <TD align=right noWrap vAlign=top>

                                                    <FONT face=Verdana,Arial 
size=-1>

                                                            <B>Animal Model</B>

                                                            <BR>

                                                            <input 
type="hidden" name="AnimalModel" value="">

                                                            <a 
href="javascript: open_popup
('/novationbio/htdocs/curator/searchFieldChoicesPopup.jsp?
fieldName=AnimalModel');">Multiple Select</a>

                                                            <input 
type="hidden" name="multiSelectAnimalModel" value="off"></input>

                                                    </FONT>

<script language="JavaScript"> 

                                function setAnimalModel(value)

                                {

                                    //alert('in setAnimalModel   ' + value); 

                                    document.theForm.AnimalModel.value = value;

                                }

                                

                                function setMultiSelectAnimalModel()

                                {

                                    //alert('in setAnimalModel   ' + value); 

                                    
document.theForm.multiSelectAnimalModel.value = "on";

                                }

</script>

                                                    

                                                    

                                                    

                                            </TD>

                                        <TD>&nbsp;</TD>

                                        <TD vAlign=top>

                                            

                                            <select name = "AnimalModel_proxy" 
onChange="javascript: setAnimalModel
(document.theForm.AnimalModel_proxy.value); ">

                                

                                    

                                    

                                    

                                    <option value = "cell" >Cell</option>

                                

                                    

                                    

                                    

                                    <option value = "cat" >Cat</option>

                                

                                    

                                    

                                    

                                    <option value = "mouse" >Mouse</option>

                                

                                    

                                    

                                    

                                    <option value = "ferret" >Ferret</option>

                                

                                    

                                    

                                    

                                    <option value = "hamster" >Hamster</option>

                                

                                    

                                    

                                    

                                    <option value = "dog" >Dog</option>

                                

                                    

                                    

                                    

                                    <option value = "goat" >Goat</option>

                                

                                    

                                    

                                    

                                    <option value = "rat" >Rat</option>

                                

                                    

                                    

                                    

                                    <option value = "human" >Human</option>

                                

                            </select>

                            

                            

                            

                            

                            

                                            </TD>

                                            

                                </TR>

                                <TR>

                                        <TD colSpan=3>&nbsp;</TD>

                                </TR>

                                <TR>

                                    

                            

                            

                            

                            

                            

                                        <TD align=right noWrap vAlign=top>

                                                <FONT face=Verdana,Arial size=-
1>

                                                        <B>Administration</B>

                                                        <BR>

                                                    <a href="javascript: 
open_popup('/novationbio/htdocs/curator/searchFieldChoicesPopup.jsp?
fieldName=Administration');">Multiple Select</a>

                                                </FONT>

<script language="JavaScript"> 

                                function setAdministration(value)

                                {

                                    //alert('in setAdministration   ' + value); 

                                    document.theForm.Administration.value = 
value;

                                }

                                

                                function setMultiSelectAdministration()

                                {

                                    //alert('in setAdministration   ' + value); 

                                    
document.theForm.multiSelectAdministration.value = "on";

                                }

</script>                                               

                                                <input type="hidden" 
name="Administration" value="">

                                                <input type="hidden" 
name="multiSelectAdministration" value="off"></input>    

                                                <BR>

                                            </TD>

                                        <TD>&nbsp;</TD>

                                        <TD vAlign=top>

                                            

                                            <select name 
= "Administration_proxy" onChange="javascript: setAdministration
(document.theForm.Administration_proxy.value); ">

                                

                                    

                                    

                                    

                                    <option value = "po" >PO</option>

                                

                                    

                                    

                                    

                                    <option value = "injection" 
>INJECTION</option>

                                

                                    

                                    

                                    

                                    <option value = "admin" >ADMIN</option>

                                

                            </select>

                            

                            

                            

                            

                        </TD>

                                                

                                </TR>

                        </TBODY>

                </TABLE>

        </TD>

</TR>   

<TR>

        <TD bgColor=#eeeeee colSpan=3>&nbsp;</TD>

</TR>

<TR>

        <TD bgColor=#eeeeee colSpan=3>

                <TABLE align=center border=0 cellPadding=2 cellSpacing=0 
width="100%">

                        <TBODY>

                                <TR>

                                        <TD align=right width="50%">

                                                <input type="submit" 
name="search1" value = "Search" onClick="javascript: setCommand('Search'); 
setContentPage('/htdocs/curator/curatorSearch.jsp');"></input>

                                        </TD>

                                        <TD width="50%">

                                                <INPUT type=reset value=Reset>

                                        </TD>

                                </TR>

                        </TBODY>

                </TABLE>

        </TD>

</TR>



<TR>

        <TD bgColor=#eeeeee colSpan=3>&nbsp;</TD>

</TR>

<TR>

        <TD bgColor=#cccccc colSpan=3 height=2>

                <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">

                        <TBODY>

                                <TR>

                                        <TD></TD>

                                </TR>

                        </TBODY>

                </TABLE>

        </TD>

</TR>

</table>













<script language="JavaScript"> 

    function setDocumentIndex (index)

    {

        //alert('atul123');

        document.theForm.docIndex.value = index;

    }

    

    function setNext20Index ()

    {

        //alert('atul123');

        //(Integer.valueOf(str)).intValue();

        //document.theForm.next20Index.value = Integer.valueOf
(document.theForm.next20Index.value).intValue() + 20;

        //alert(document.theForm.next20Index.value);

    }

    

    function setPrev20Index ()

    {

        //alert('atul123');

        //document.theForm.next20Index.value = 
document.theForm.next20Index.value  - 20;

    }



        function setOrderBy(orderBy)

        {

                document.theForm.orderBy.value = orderBy;

        }               

    

    function setMeasureDocIndex(measureDocIndex)

        {

                document.theForm.measureDocIndex.value = measureDocIndex;

        }               

    

    function setMeasureIndex(measureIndex)

        {

                document.theForm.measureIndex.value = measureIndex;

        }               

        

        function open_popup(page) 

        {

        window_handle = window.open(page,'popupWindowName');

        //return false;

    }



    /*function setAnimalModel(value)

    {

        document.theForm.multiSelectAnimalModel.value="on";

        alert(value);

        //document.theForm.AnimalModel1.value = value;

    }*/

    

    function submitForm()

    {

        //alert(document.theForm.AnimalModel.value);

        setCommand("Search");

        setContentPage('/htdocs/curator/curatorSearch.jsp');

        document.theForm.submit();

    }

    

    

</script>

      </td>   

   </tr>

   

   <tr height = "5%" width = "100%"> 

        <td align='center' height='15%' colspan = "1" >

            <font size='4'> <a href=http://www.novationbio.com>Powered by 
Novation Bioscience</a></font>

Novation Biosciences provides solutions for the statistical and analytical 
challenges of the post-genomic era. 







        </td>

   </tr>

</table>



<script language="JavaScript"> 

    function setContentPage(contentPage)

    {

        //alert('atul456');

        document.theForm.contentPage.value = contentPage;

    }

        

    function setCommand(command)

    {

        //alert('atul1' + command);

        document.theForm.search.value = command;

    }

</script>





</form>    



</html>

---------END of HTML content from the 1st page-----------

THE URL which is sent to the server in back end looks like.
http://akamat-pc:8080/novationbio/htdocs/template/index3.jsp?
sessionKey=.*&contentPage=%2Fhtdocs%2Fcurator%
2FcuratorSearch.jsp&Compound=aspirin&search=

I was expecting sessionKey variable to be replaced with the value from the 
previous HTML page. If you look the HTML content you will see it was set to:

            <input type="hidden" name="sessionKey" 
value="CompoundCurator$7637537163773961937">

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to