Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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:48:12 +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=lVXWz6Z/+YgR9aonYTvXoW7yczMRwMi80F6FAt4upgQ=; b=u71Gw6ao78nB5zYT9zi+9dtyL7If+7XglFh/+uPnIa4nNkgBSqTl60cepoLNn4+5U0FXTzSXVoCWG+BKKWHEbXG+Sb0Mr0GNzM+zQq+ePgsQPKeM7ORenS12d0NAI4f/GopLPwAf3dz4L2DLftPSOMMB3RyzbTw7F3insdRk+y11NABnyfDAqMykTonuOsZYAjCjdmSUW0IWCv9QYLytWqOjCIkm7WV4asgloSg13tu9Enmr4B2QScRf+dLN3RmFB/2ycBnE1NH6p9VJvgYfcfox6uvRiKDvWPIVT/p4vaAQMXhiCFfs4VBus+TVsDVJxrGb5xoMk9Q7yJsx8Qzypw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XJSN+fTowWOZSL2f3vV/JO8a+kLW/vmAKKReeowyDFKlpYw41kBZdTdpKnKAFs75A5KWg5NSpQD4Ahc0HgnSFlTi5Z8TiKy2OQ5/S/Wx7NfSLDwzdJBkhjsFfyUP3O11IPBfGnucp9VPygrAOqk7Jav61Nmzg+Yf/GiUEoodEpkT4sjJRdK61Zvs5g66cRl1qeCc8HQ7/ymlGqRIp4wyCjqmnPC1XStXqF3+b2lYo8lFKM4zXmnZuaDHGYYLoxWTupmNiOGuK9DfVQy1Cv3ARWRF8WQ32pZDbR3HnuXibG4crNOnT7d6am4yLH3wf4ncCsExBKM4VMy59ccA7ru37w==
  • 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+ovL958Tw==
  • Thread-topic: 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, barExpr is ValueExpression[\#{foo}-\#{bar}-\#{foo}-\#{1+2}]
Inside setBarExpr, value is not of type ValueExpression, and is ValueExpression[\#{foo}-\#{bar}-\#{foo}-\#{1+2}]
Tag invoked
Before printing the expression
fooExpr=tuxedo-weblogic-tuxedo-3
barExpr=#{foo}-#{bar}-#{foo}-#{1+2}

template text:
tuxedo-weblogic-tuxedo-3

Attachment: el_bug.war
Description: el_bug.war


Back to the top