aspose file tools*
The moose likes Struts and the fly likes Including a parameter in all requests struts 1.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Including a parameter in all requests struts 1.x" Watch "Including a parameter in all requests struts 1.x" New topic
Author

Including a parameter in all requests struts 1.x

ramesh maredu
Ranch Hand

Joined: Mar 15, 2008
Posts: 210

Hi,

We have a application developed in struts 1.x, we are not using AJAX to POST/GET data from server, earlier this UI was serving data for only one customer, now we are updating our server to provide data for all customers based on 'customer id' ,now 'customer id' has to be passed in all requests to server and we need to achieve with minimal changes, is there any smart way to add 'customer id' in all requests to server.

Thanks,
Ramesh.


SCJP 1.5 94%.
The greatest glory in living lies not in never falling, but in rising every time we fall.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8893
    
    8

Can you put the customer id in the session?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
ramesh maredu
Ranch Hand

Joined: Mar 15, 2008
Posts: 210

Hi Joe,

we don't want to have customer id in either session or cookies.

Thanks,
Ramesh.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Including a parameter in all requests struts 1.x