can shift around. Doing so in the rewrite rule is really not
On Thu, Jun 25, 2009 at 12:38 PM, Avlesh Singh<avl
...@gmail.com> wrote:
> First of all, I am not sure why this is a url-rewrite question?
> Second, if a LinkedHashMap does not work for you (in preserving order of the
> parameters in the URL), ask this question on the Struts user mailing list. I
> tried your use case, with a HashMap and a LinkedHashMap on my box (with
> struts 1.2.7) and it just works fine (and as expected) for me.
> Third, your statement
>> The parameters taken by the url rewrite filter should be in the order
>> which I have specified in hash map or linked hash map
> did not make sense to me. Maybe, I am missing something.
> Cheers
> Avlesh
> On Thu, Jun 25, 2009 at 12:35 PM, sirisha <sirisha.siri....@gmail.com>
> wrote:
>> How to pass parameterized String values to url rewrite filter?
>> I will give you a scenario :
>> In jsp I have an Hash map having
>> blogMap1.put(StringConstants.TOTAL_RECORDS,fm.getTotalRecords());
>> blogMap1.put(StringConstants.PAGE_NUM,fm.getPageNum());
>> blogMap1.put(StringConstants.QUERY_ID,fm.getQueryId());
>> pageContext.setAttribute("parameters1", blogMap1);
>> and Im using this map in <html:link> as
>> <html:link forward="<%= ForwardConstants.BLOG_EDIT_ACTION %>"
>> name="parameters1" scope="page" styleClass="edit_link">Edit</
>> html:link>
>> here i need a url having parameters in sequence as I have put in Hash
>> map.(but in my case these values are swaping for every time,this is
>> because of Hash map if I am correct).
>> I also tried with Linked Hash Map , but it didn't work.
>> At last what I need is , The parameters taken by the url rewrite
>> filter should be in the order which I have specified in hash map or
>> linked hash map.(the order should not be changed).
>> can anyone please help in resolving this issue...............