Re: [Resin-interest] Unable to pass request parameter to custom taglibwith Resin 3.1.3

2007-10-10 Thread Ambar Hegde
Thanks, Mike and Mattias. Setting rtexprvalue=true solved it.

-Ambar
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mattias Jiderhamn
  Sent: Tuesday, October 09, 2007 10:11 PM
  To: General Discussion for the Resin application server
  Subject: Re: [Resin-interest] Unable to pass request parameter to custom 
taglibwith Resin 3.1.3


  Yes, Resin 3.x is much more picky about rtexprvaluetrue/rtexprvalue in 
your TLD files.
  That is most probably what you are seeing.

  Mike Wynholds wrote:

I am not sure exactly why it stopped working, but I have noticed that 
sometimes Resin, over time, becomes more and more spec-compliant.  this often 
means things that “worked” in the past, even though they were against the spec, 
stop working.



check your .tld file to make sure that the “moduleName” parameter is set to 
rtexpr=”true”.



also, you use EL to get the request parameter instead of scriptlets, like 
this:



mytaglib:loadFav moduleName=”${param.moduleName}”/



(no need for the request.getParameter(…))



..mike..






From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ambar Hegde
Sent: Tuesday, October 09, 2007 6:29 AM
To: General Discussion for the Resin application server
Subject: [Resin-interest] Unable to pass request parameter to custom 
taglibwith Resin 3.1.3



I'm having trouble trying to pass a request parameter to a custom taglib by 
setting an attribute.



The jsp looks like this:



%

String moduleName =request.getParameter(moduleName);

%



mytaglib:loadFav moduleName=%=moduleName%/



In the loadFav class, 



public void setModuleName(String moduleName) {
this.moduleName = moduleName;   

}



 public int doStartTag() throws JspException {
AppsLogger.debug(Entered LoadDefaultFavSearchTag.doStartTag(): 
+getModuleName());

}

The getModuleName method is returning the literal string %=moduleName% 
(minus quotes).



The moduleName parameter was being passed along fine when I was using Resin 
2.1.10. However I'm seeing this behaviour

in both Resin 3.1.2 and Resin 3.1.3. Is this a bug or am I doing something 
wrong?



TIA,



-Ambar








___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
  

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.1 and Struts iterate tag problems

2007-09-12 Thread Ambar Hegde
Tried it on Resin 3.1.2 and it works just fine. Thanks!
  -Original Message-
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jason Wang
  Sent: Tuesday, September 11, 2007 7:33 AM
  To: General Discussion for the Resin application server
  Subject: Re: [Resin-interest] Resin 3.1.1 and Struts iterate tag
problems


  3.1.2 is ok, I tested iterate page in struts example project both on 3.1.1
and 3.1.2
  the exception occurs on 3.1.1 but does not occur on 3.1.2


  On 9/11/07, Jason Wang [EMAIL PROTECTED] wrote:
Resin 3.1.1 doesn't allow to nest jsp statement in a taglib, I don't
know why, maybe just a bug, you can try 3.1.2

Jason


On 9/10/07, Ambar Hegde [EMAIL PROTECTED] wrote:
  Hi,

  I'm trying to move an existing application from Resin 2x to Resin
3.1.1,
  with JDK 1.5.

  The application uses Struts 1.1, however the problem persists with
Struts
  1.3.8 as well.

  Using the iterate tag from struts-logic.tld causes resin to throw the
  following error:

  /jsp/LocationReportMain.jsp:246: not a statement
  [19:36:22.319] java.lang.Integer null;
  [19:36:22.319]  ^
  [19:36:22.319] /jsp/LocationReportMain.jsp:246: ';' expected
  [19:36:22.319] java.lang.Integer null;
  [19:36:22.319]   ^


  The source jsp is:

  logic:iterate id=driverValues name=SingleUserLocReportInitializer
  property=teamMembers type= java.util.Hashtablehtml:option
  value='%=driverValues.get(USER_ID).toString()%'
  %=driverValues.get(NAME).toString()%/html:option/logic:iterate

  Would appreciate any help on this.

  TIA

  -Ambar



  ___
  resin-interest mailing list
  resin-interest@caucho.com
  http://maillist.caucho.com/mailman/listinfo/resin-interest




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.1 and Struts iterate tag problems

2007-09-11 Thread Ambar Hegde
Thanks Jason. I'm now trying this with Resin 3.1.2. However, it's taking a
painfully long time to start up - of the order of one
hour, where Resin2x and Resin 3.1.1 take 1-2 minutes to startup with the app
deployed. Is this related to the new startup listen()
change in resin 3.1.2? I'm using the default resin.conf file.

Thanks,
Ambar
  -Original Message-
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jason Wang
  Sent: Tuesday, September 11, 2007 7:33 AM
  To: General Discussion for the Resin application server
  Subject: Re: [Resin-interest] Resin 3.1.1 and Struts iterate tag
problems


  3.1.2 is ok, I tested iterate page in struts example project both on 3.1.1
and 3.1.2
  the exception occurs on 3.1.1 but does not occur on 3.1.2


  On 9/11/07, Jason Wang [EMAIL PROTECTED] wrote:
Resin 3.1.1 doesn't allow to nest jsp statement in a taglib, I don't
know why, maybe just a bug, you can try 3.1.2

Jason


On 9/10/07, Ambar Hegde [EMAIL PROTECTED] wrote:
  Hi,

  I'm trying to move an existing application from Resin 2x to Resin
3.1.1,
  with JDK 1.5.

  The application uses Struts 1.1, however the problem persists with
Struts
  1.3.8 as well.

  Using the iterate tag from struts-logic.tld causes resin to throw the
  following error:

  /jsp/LocationReportMain.jsp:246: not a statement
  [19:36:22.319] java.lang.Integer null;
  [19:36:22.319]  ^
  [19:36:22.319] /jsp/LocationReportMain.jsp:246: ';' expected
  [19:36:22.319] java.lang.Integer null;
  [19:36:22.319]   ^


  The source jsp is:

  logic:iterate id=driverValues name=SingleUserLocReportInitializer
  property=teamMembers type= java.util.Hashtablehtml:option
  value='%=driverValues.get(USER_ID).toString()%'
  %=driverValues.get(NAME).toString()%/html:option/logic:iterate

  Would appreciate any help on this.

  TIA

  -Ambar



  ___
  resin-interest mailing list
  resin-interest@caucho.com
  http://maillist.caucho.com/mailman/listinfo/resin-interest




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Resin 3.1.1 and Struts iterate tag problems

2007-09-10 Thread Ambar Hegde
Hi,

I'm trying to move an existing application from Resin 2x to Resin 3.1.1,
with JDK 1.5.

The application uses Struts 1.1, however the problem persists with Struts
1.3.8 as well.

Using the iterate tag from struts-logic.tld causes resin to throw the
following error:

/jsp/LocationReportMain.jsp:246: not a statement
[19:36:22.319] java.lang.Integer null;
[19:36:22.319]  ^
[19:36:22.319] /jsp/LocationReportMain.jsp:246: ';' expected
[19:36:22.319] java.lang.Integer null;
[19:36:22.319]   ^


The source jsp is:

logic:iterate id=driverValues name=SingleUserLocReportInitializer
property=teamMembers type=java.util.Hashtablehtml:option
value='%=driverValues.get(USER_ID).toString()%'
%=driverValues.get(NAME).toString()%/html:option/logic:iterate

Would appreciate any help on this.

TIA

-Ambar



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest