aspose file tools*
The moose likes Struts and the fly likes Action parameter value is changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action parameter value is changed " Watch "Action parameter value is changed " New topic
Author

Action parameter value is changed

yatin baraiya
Ranch Hand

Joined: Jul 17, 2012
Posts: 30
Hi everyone

i am getting trouble with below issue:

one of the my jsp page having following href link

Consider the value of this parameter for below url:

${userSecureKey} = "gfdsgghfhfdhliKksoT3zhgghgfX/BKUc4o+Kp31SFDSFjQ="




When i click the above ical link from the jsp page through ff,chrome, browser it will create the calender successfully in my outlook, but when i try same through IE 8/9 browser ,
it is not create the calender in outlook.

We use this following in this apps.

1.Core java
2.Struts 2.0
3.JSP
4.Struts interceptor.
5.Tomcat as deployment server
6.Apache 2.2 as redirect server.

as per the our code logic we allow to create the calender if the submitted value of user Key is same at server side ,
after doing too much analysis on it we found that as per the below





We get the userSecureKey value at server side [struts 2.0 interceptor side] "gfdsgghfhfdhliKksoT3zhgghgfX/BKUc4o Kp31SFDSFjQ="
while instead, we are expect its value should be like this "gfdsgghfhfdhliKksoT3zhgghgfX/BKUc4o+Kp31SFDSFjQ="

we can see that it convert '+' character to blank space ' ' , When user click on the link , it control first comes to interceptor , so no one can changes its value between those sequnce.
as well as i have also verify the value of userSecureKey through firebug tool of browser , it as same which i expected, so no question about the browser is not change its value.


We found that when href link is submit through IE browser, struts 2.0 or somehow something is changed '+' character value to ' ' blank-space , it happen only when i use webcal protocol with href link.
It is work very well with IE browser but when i use https protocol instead of webcal in href link.I want to know the reason why that happen , it is the issue of browser or struts 2.0's valustack interceptor.

right now i had solve the issue with something character replacing way. but i do not figure out what is the root cause of this issue.? and why the special symbolic character value is changed?I think it is big issue for me , right now i am looking for the specific and effective solution for the my issue, whatever i had provide is not best one.so anybody please share your view regarding the my issue, and provide me the guidance on it.

Thanks & Regards
Yatin Baraiya


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action parameter value is changed
 
Similar Threads
Open a VCalendar file on the fly
Problem in opening PDF or FDF in Firefox?
stupid Microsoft -- IE 6.0 trouble . . .
How to create text file through http using URL?
display the calender in jsp page