-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDIV parameter does not exist #95
Comments
Hi, Please have a look at this example application and configuration file: |
Hi I updated my config file now. I encounter the same error still.. Can kindly help to say where I am going wrong ?
update: |
Ok, we need some clarifications on this. You should set as StartPage every single page that can be accessed directly, usually / but there may be others. For the rest of them /efm/whatever.do?HDIV_STATE=1-3-AABBCC.. I guess that your current problem is that no link is being generated with that parameter right?. If not please could you explain your situation? |
Thanks for the response. HDIV_PARAMETER_DOES_NOT_EXIST;/abc/def/.do;HDIV_STATE;;;127.0.0.1;127.0.0.1;anonymous;> My application's each menu link or buttons is initiated by a .do. so how do I config this ? looks like I need to all do. as start page which is not the correct way to implement. right ? The tld files are taken from the hdiv-master\hdiv-struts-1\target\classes\META-INF\ and I replaced it in my application tld file location /WEB-INF/tld/ and mapped it correctly in the web.xml file. |
Hi, Are you creating the links and forms using these tags? |
Thanks for your reply Yes, all the forms are using html:form struts tag. But still the HDIV parameter token is not generated. I am not sure where I am going wrong. I am still figuring it out ! |
Ok, the forms are created using Struts tags, and what about the links? Are they created using |
My application do not have html:links tags. All of the actions are triggered by context path .do file. Struts token are inserted automatically as a hidden field in all JSP if I use saveToken() whereas I face issue with the token to be inserted with HDIV. jar |
Ok, if you are interested in link protection you have to use If you are not interested in link protection you have to exclude GET request protection. <hdiv:startPages method="get">/.*</hdiv:startPages> Including this config you will skip the protection of all requests that use method GET. Another important question, which Hdiv version are you using? |
ok, after I change the start pages as suggested above. I get the below error
I use the version 3.3.2. ok. to use the 3.3.0 I download the codes for hdiv-config and hdiv-struts-1 from this link and compile it as a jar file https://github.com/hdiv/hdiv. is this the correct link ? update: after I include the below in hdiv config file
I get the same error as before
I can load my login page, I choose the role to login and click submit, I get the error as above.. (post action) |
Hi, It seems Hdiv Taglibs are not executing and the application is invoking Struts original tags instead. You can check it adding a breakpoint at this method: org.hdiv.taglib.html.FormTagHDIV.addHDIVParameter() If should stop every time a form is rendered. If it is not invoked, the Tld is not correctly configured. To check if the Hdiv taglib installation is correct, review this points:
|
Hi
I am trying to integrate HDIV with my web application using HDIV struts 1.jar
I encounter the below error when trying to load the login page.
(self-tuning)'][][](org.hdiv.logs.Logger) - HDIV_PARAMETER_DOES_NOT_EXIST;/abc/def/index.do;_HDIV_STATE_;;;127.0.0.1;127.0.0.1;anonymous;
Possible checks I did:
1.tried with addition of struts--el tag lib with HDIV--el tag lib
2.tried with filter mapping pattern to all url
Not sure where I am going wrong. Many searches do not provide me a proper solution. Any guidance is highly appreciated. Thank you
Attached the config files
pom.txt
web.txt
hdiv-config.txt
The text was updated successfully, but these errors were encountered: