jsp forward variable problem
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pradeep_kharvi
Posted On:   Wednesday, May 30, 2001 02:11 AM

Hi everybody i have a very tricky problem.. here i go i am trying to send some parameter via jsp:forward tag as shown below <%=email%>,pradeepkharvi@hotmail.com"/> now the problem is with sending parameter named "to" . i am sending one parameter which is list of email seperated by comma, in that one email is static (pradeepkharvi@hotmail.com) while other is dynamic ( <%=email%> ) <%=email%>,pradeepkharvi@hotmail.com"/> if i try to receive this variable "to" in sendMail.jsp page what i get is this to : as u can see above the dynamic varible is not getting resolved why ???    More>>

Hi everybody
i have a very tricky problem.. here i go

i am trying to send some parameter via jsp:forward tag as shown below



<%=email%>,pradeepkharvi@hotmail.com"/>



now the problem is with sending parameter named "to" .
i am sending one parameter which is list of email seperated by comma, in that one email is static (pradeepkharvi@hotmail.com) while other is dynamic ( <%=email%> )

<%=email%>,pradeepkharvi@hotmail.com"/>

if i try to receive this variable "to" in sendMail.jsp page what i get is this to :

as u can see above the dynamic varible is not getting resolved why ???

if i send only <%=email%> as a parameter i am able to receive it in sendMail.jsp as to : prad@expopoint.com

pls tell me why such a problem

email me at pradeepkharvi@hotmail.com

thanks in advance

   <<Less

Re: jsp forward variable problem

Posted By:   Anonymous  
Posted On:   Wednesday, May 30, 2001 08:59 AM

Il seems that when you are mixing together a scriplet and some text it is not working correctly.

Try using value="<%= email + ",pradeepkharvi@hotmail.com" %>".

What servlet container are you using?

Regards

Re: jsp forward variable problem

Posted By:   Monika_Sharma  
Posted On:   Wednesday, May 30, 2001 08:58 AM

value clause expects a string only, I don't think so, u can concatenate it the way u have done, so try this--

<%
email = email + ",pradeepkharvi@hotmail.com";
%>



About | Sitemap | Contact