RE: [Re: [Re: how to dynamically change form in a tag]]

2002-03-22 Thread Gaulin . David

Maybe I am wrong here, but try


It is the quote causing the problem.  At least in my case (WebSphere 4.0).

Hope this helps

David

-Original Message-
From: Sudipta Sarkar [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 11:15 AM
To: Struts Users Mailing List
Subject: Re: [Re: [Re: how to dynamically change form in a tag]]


 No this also does not work.
"Nicolas De Loof" <[EMAIL PROTECTED]> wrote:
Does 
   "> 
work ?




The solution you said works.
but 
   "> does not work
although
   <% String id = (String)request.getParameter("id"); %>
   
  works.
Is there anything that I am doing wrong in case 1.

Thanks
Sudipta  




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: [Re: [Re: how to dynamically change form in a tag]]

2002-03-22 Thread Sudipta Sarkar

 No this also does not work.
"Nicolas De Loof" <[EMAIL PROTECTED]> wrote:
Does 
   "> 
work ?




The solution you said works.
but 
   "> does not work
although
   <% String id = (String)request.getParameter("id"); %>
   
  works.
Is there anything that I am doing wrong in case 1.

Thanks
Sudipta  




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Re: how to dynamically change form in a tag]

2002-03-22 Thread Jay sissom

The  tag and the <%= ... %> tags are server tags.  They get 
compiled into Java code that compiles on the server.  From what I've 
discovered, you can't nest these tags.  I'm sure someone will correct me 
if I'm wrong.  I have found that you can nest server tags within browser 
tags like this:



In tomcat, when a JSP is run, the compiled version and source code is put 
into a work directory.  When I run tomcat under jbuilder, the work 
directory is within my project.  If you find the source code for your 
example below, you'll see that the value "<%= request.getParameter... %>" 
is being put in the action property, not the evaluated version.

Again, this is from my poking around on tomcat.  I haven't read the 
servlet spec about this so I don't know for sure that this happens on all 
servlet containers.

To boil it all down, you can't nest server compiled tags.  That's why your 
solution doesn't work.

Jay

On Fri, 22 Mar 2002, Sudipta Sarkar wrote:

> The solution you said works.
> but 
>"> does not work
> although
><% String id = (String)request.getParameter("id"); %>
>
>   works.
> Is there anything that I am doing wrong in case 1.
> 
> Thanks
> Sudipta  
> 
> "Nicolas De Loof" <[EMAIL PROTECTED]> wrote:
> JSP Tags use an XML syntax, so you must have the same number of opening and
> closing "html:form" jsp tags in your jsp. This is why your JSP engine
> failed.
> 
> acording to struts-form.tld, action attribute in html:form tag can be JSP
> computed. Try this:
> 
> <%
> String actionPath;
> if( something) {
> actionPath =" /AccountMaint";
> }
> else {
> actionPath =" /CreateAccount";
> }
> %>
> 
> 
> 
> 
> ..
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Re: how to dynamically change form in a tag]

2002-03-22 Thread Nicolas De Loof

Does 
   "> 
work ?




The solution you said works.
but 
   "> does not work
although
   <% String id = (String)request.getParameter("id"); %>
   
  works.
Is there anything that I am doing wrong in case 1.

Thanks
Sudipta  




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Re: how to dynamically change form in a tag]

2002-03-22 Thread Sudipta Sarkar

The solution you said works.
but 
   "> does not work
although
   <% String id = (String)request.getParameter("id"); %>
   
  works.
Is there anything that I am doing wrong in case 1.

Thanks
Sudipta  

"Nicolas De Loof" <[EMAIL PROTECTED]> wrote:
JSP Tags use an XML syntax, so you must have the same number of opening and
closing "html:form" jsp tags in your jsp. This is why your JSP engine
failed.

acording to struts-form.tld, action attribute in html:form tag can be JSP
computed. Try this:

<%
String actionPath;
if( something) {
actionPath =" /AccountMaint";
}
else {
actionPath =" /CreateAccount";
}
%>




..






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: