Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jsp-dev] Tag attribute value in #{expr} syntax with page directive attribute deferredSyntaxAllowedAsLiteral=true
  • From: Padmanabha Bhat <padmanabha.bhat@xxxxxxxxxx>
  • Date: Tue, 4 Feb 2025 10:49:52 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TxDjf+tOgf3+P8UwbnEvZBHhIjdYYVmZny+WS0SDJOs=; b=iOUkwR9NXt8cT52n4r2NFSqKOZ+aW+Yq/RYrenOh6mqEsjgnagakCjUY/Z0ovaI2hoh2g+OrFnwhWTCADE7VhgtRZsE8UFxrl6P190oSvFtnt88QVlNm7xjV12DD+fN1mqoMX9mM9X6+z9y+XrVA+Jo1q9DRP41qROJZIZqJcHxFEgjRA+kz2SwNXBXAmRGhOk7EVkYfXKcbL6krfUpu3KqVuAVviTQpGJ++NwhmFMcoLq5cBMWlHHviq/WXYy/Xldpy46q3qWpWENvYxpbXJxASAFHHx7Rx/GHVR9vA/reLVT81uhMjMEW5uxmvgmvrh9j8X97rVVOv8nvxJuxrmw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i0ldIsBw3CjAOFEo0TCfB5bgkOY0dIGVhJ15Jk5vFUMOWk4BtOBxPvGoxJiVASn1Zq3ihfUfBhTKPhxq3UQ/DGfvnlyZUdNfyGKrJGLlQIjCNGHeCL77QjqMtimOURScjx6+8fzzpT4aeWZ9Y+nrcdAadaMS7vUgncKfrJP4PqiNOBBiNiT74R61o+SWMxawqNar0v8B22ifeBp0IkecobiKNi4NH7/JTBfEgHgrUiohvHqehlII66QwVpIfyR0jfIkSICX+bmCHNLu6NtvoYvktcBAef3NGdZC0iP5ji39Z3ntd0duYbgZzDcHX8ZuL98jrFOok75uz6WRwtKKKCQ==
  • Delivered-to: jsp-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jsp-dev/>
  • List-help: <mailto:jsp-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jsp-dev>, <mailto:jsp-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jsp-dev>, <mailto:jsp-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHbdvASSC05YUzLDUSPq+ovL958T7M29tAb
  • Thread-topic: Tag attribute value in #{expr} syntax with page directive attribute deferredSyntaxAllowedAsLiteral=true

Hi, I missed to attach the response from WebLogic in my earlier e-mail. Please find the attachment.

 

Regards,

--Bhat

 

From: Padmanabha Bhat <padmanabha.bhat@xxxxxxxxxx>
Date: Tuesday, 4 February 2025 at 4:18
PM
To: jsp-dev@xxxxxxxxxxx <jsp-dev@xxxxxxxxxxx>
Cc: Padmanabha Bhat <padmanabha.bhat@xxxxxxxxxx>
Subject: Tag attribute value in #{expr} syntax with page directive attribute deferredSyntaxAllowedAsLiteral=true

Hi All,

   I am sending this e-mail to understand the expected behavior on accessing the test.jsp from the attached .war file. I have kept the source SimpleTag.java for your reference. Also please ignore WEB-INF/weblogic.xml. I have also attached the sample response from WebLogic (weblogic_response.log) and GlassFish (glassfish_response.log). I have used GlassFish 7.0.21, built with commit 8dadcddebd0bb8151d4f82052ca810226c340227 for this exercise.

 

With my limited understanding of the JSP spec, with page directive attribute deferredSyntaxAllowedAsLiteral=true, the setter method setBarExpr in SimpleTag.java won't set the value for barExpr as the value is not a ValueExpression. If it is not correct, can you please explain the expected behavior and the reason for the same ?

 

Thanks,

--Bhat

tag handle:
Inside setFooExpr, value is a String
Inside setBarExpr, value is not of type ValueExpression, and is #{foo}-#{bar}-#{foo}-#{1+2}
Tag invoked
Before printing the expression
fooExpr=tuxedo-weblogic-tuxedo-3
barExpr=java.lang.Object@7e437656

template text:
tuxedo-weblogic-tuxedo-3

Back to the top