1

Newbie here. I am trying to include jsp page(s) from another jsp that. The main jsp see all action methods but include jsp page does not see the action's value-stack. I am using jsp:include but s:include requires configuring action, I think.

How can I use same value-stack in all included jsp pages while using single action for the main jsp page.

Roman C
  • 49,761
  • 33
  • 66
  • 176
Ona
  • 23
  • 1
  • 5

1 Answers1

0

Assuming you are not simply forgetting to put

<%@ taglib prefix="s" uri="/struts-tags" %>

on the included JSP pages, I've encountered this problem some times ago, and I've documented my case in this Q&A:

How to read Action attributes from JSP fragments included with <jsp:include />?

I've also opened a JIRA, recently closed as not reproducible; I think it must be something related to a specific (customized?) environment.

Try the solution I've used to overcome the problem (the allowStaticMethodAccess one) and, if it works, please come back here and post all the details about your application server, so we can reopen the JIRA. Thanks.

Community
  • 1
  • 1
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243