[opencms-dev] Passing a value from one jsp to another

maria.freixes_graells at alcatel.es maria.freixes_graells at alcatel.es
Thu Sep 21 13:09:01 CEST 2006


Hello Everybody!!

I've the following form in one of my jsp file, in order to select a 
folder from the OpenCms, but now, I would like to pass the folder 
selected to another file jsp, and I've trying to do it but I don't know 
the good way to do it. Any idea about the code to add to my first jsp 
where I have the form, and evenmore, what I would add to the other jsp 
in order than could receive the folder selected?

Many thanks and best regards,
Maria


<form name="NEU" class="nomargin" onsubmit="pasteLink();">

<table border="0" cellspacing="0" cellpadding="4" width="100%">
                <tr>
                    <td style="white-space: nowrap;"><%= 
wp.key(org.opencms.workplace.editors.Messages.GUI_INPUT_LINKTO_0) %>:</td>
                    <td class="maxwidth">
                        <input type="text" name="neulink"  
class="maxwidth" value="" onchange="checkLinkUrl();" />
                    </td>        
                    <th>Select a directory to start searching</th>
                    <td><a href="javascript:openTreeWin('NEU', 
'neulink', document);"><img src="<%= CmsWorkplace.getSkinUri() 
%>filetypes/folder.gif" border="0" alt="<%= 
wp.key(org.opencms.workplace.editors.Messages.GUI_LABEL_SELECTFOLDER_0)%>"></a></td>

                </tr>
               
           
            </table>


<%= wp.dialogContentEnd() %>

<%= wp.dialogButtonsOkCancel(null, "onclick=\"window.close();\"") %>
</form>



More information about the opencms-dev mailing list