on 2024 Aug 09 4:12 PM
Hi there
I'm using preconfigured servererror.jsp page in web.xml. I'm aware I cannot use hybris context here. How can I inject some variables like userName and other custom variables? Do I need to implement an annotated method inside a controller? Do you have an example?
Thanks
@oscar_sancompassmobile wrote:Hi there
I'm using preconfigured servererror.jsp page in web.xml. I'm aware I cannot use hybris context here. How can I inject some variables like userName and other custom variables? Do I need to implement an annotated method inside a controller? Do you have an example?
Thanks
You can pass custom variables like userName by implementing a controller with an annotated method to handle exceptions. Then, forward the request to your servererror.jsp page with the desired parameters. This allows you to inject variables as needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.