Re: Issue with ServletActionContext.getRequest() returning null in JSP (Struts 7)

2025-03-31 Thread Lukasz Lenart
śr., 26 mar 2025 o 09:38 Lidin NT napisał(a): > Why is ServletActionContext.getRequest() returning null in JSP? Calling JSPs directly is a Bad Idea https://struts.apache.org/security/#never-expose-jsp-files-directly And calling JSPs directly means you skip the whole Action related machinery, wit

Re: Issue with ServletActionContext.getRequest() returning null in JSP (Struts 7)

2025-03-26 Thread Wolfgang Knauf
Hi, how do you invoke the jsp? I had a (maybe) similar issue and learned that I cannot invoke JSPs directly (by browsing to the jsp url), but have to call an ".action" url instead. Best regards Wolfgang Am 26.03.25 um 09:37 schrieb Lidin NT: Hi all, I'm working on a Struts 7 application

Issue with ServletActionContext.getRequest() returning null in JSP (Struts 7)

2025-03-26 Thread Lidin NT
Hi all, I'm working on a Struts 7 application and facing an issue where userViewUtil is showing an empty value in JSP. Setup: I'm using and to create and set values in JSP: When I try to display the values, they are empty: Code Details: UserViewUtilWrapper Class: Th