This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 8876
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Including a parameter in all requests struts 1.x