作者:银仔-zxy | 来源:互联网 | 2023-05-17 18:09
InmymainjspIamincludinganotherjsptodisplayafragmentofthepage.Ineedtopassaparame
In my main jsp I am including another jsp to display a fragment of the page. I need to pass a parameter to this include:
在我的主jsp中,我包含另一个jsp来显示页面的片段。我需要传递一个参数包括:
I know about:
我知道:
My problem is that the value needs to be a complicated string (which probably needs to be escaped) (e.g. ..
). In other words, the value needs to be a bit of markup itself. What is the proper way to get the string over to the include without breaking the markup?
我的问题是值必须是一个复杂的字符串(可能需要转义)(例如 ..)。换句话说,该值本身需要一点标记。在不破坏标记的情况下将字符串转换为包含的正确方法是什么?
1 个解决方案