View Full Version : Read request parameter

8 Oct 2009, 7:18 AM
I have a request parameter to be sent to server, how can i do it using ExtJs.

here is the url i am calling

here is my jsp

<script type="text/javascript" src="/myprj/mylist.js"></script>

here is my .js code

var store = new Ext.data.JsonStore({
root: 'allList',
totalProperty: 'totalCount',
idProperty: 'threadid',
remoteSort: true,
fields: ['id', 'name'],
proxy: new Ext.data.HttpProxy({
url: '/myprj/list.htm?method=listAll'

I want to pass status parameter (defined in url status=3) to the server (using proxy url).

how can i do that?


8 Oct 2009, 7:22 AM
new Ext.data.HttpProxy({
url: '/myprj/list.htm',
params : { method : 'listAll' }

8 Oct 2009, 7:27 AM
My problem is to read request parameter status=3 and pass that parameter to server

http://localhost:8080/myprj/mylist.jsp?status=3 (http://localhost:8080/myprj/mylist.jsp?status=3)

so question is, how to pass the parameter which is a part of a request url

8 Oct 2009, 7:39 AM
is it part of the page params that are in the page Presently loaded?

8 Oct 2009, 7:44 AM
It's a part of url param

my jsp page just calls the .js

<script type="text/javascript" src="/myprj/mylist.js"></script>