Displaying results of a jsp provider in it's channel not in a new page

I have a jsp provider with a form that sorts the results of a database query. However when I submit the form to sort the results, they are displayed in a new page. How can I make it refresh the channel in the existing desktop? I intend to do this in a jsp not a Servlet. Please include examples if you have any.

Thanks!

This is the form that I am using:

<FORM NAME="myForm" ACTION="/DesktopServlet" METHOD="get">

<INPUT type="hidden" name="action" value="content">

<INPUT type="hidden" name="provider" value="protonSampleJSP">

<select name="sort">

<option value="CATEGORY_ID" SELECTED>Category</option>

<option value="TYPE_ID">Document Type</option>

<option value="TITLE">Document Title</option>

</select>

<input type="submit" name="submit" value="Sort">

</FORM>

Thanks

[939 byte] By [708893] at [2007-11-25 4:38:00]
# 1

In order to refresh the desktop by clicking the submit button follow the bellow points.

Point 1:<input value="Sort" name="submit" type="submit" onclick="callfun()">

Point 2: <script language="javascript">

function callfun()

{

document.form.submit();

}

</script>

Try it out and notify me.

-saralavijay

708850 at 2007-6-29 3:09:47 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2
To generically refresh the desktop you can use DesktopUrl method, like response.sendRedirect( new DesktopUrl(string));if you want it go to go a another page then you can send the string to something like/DesktopServlet?provider=channel&page=newpage.jsp
Karthik_Krishnamoorthy at 2007-6-29 3:09:48 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3

Thank you for the replies, they were very helpful.

What I did (and worked) was to call the Desktop again, but without specifiying a provider and passing the form variables. So basically the same form as above without this line:

<input value="protonSampleJSP" type="hidden" name="provider">

Thanks, again.

708893 at 2007-6-29 3:09:48 > top of Java-index,Web & Directory Servers,Portal Servers...