Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How can variables set in the tag attribute?

yupongyupong Member Posts: 15
hi all,

i have a code like this:

<%@ taglib prefix="database" uri="WEB-INF/database.tld" %>




<%
String id = request.getParameter("Title_ID");
String title = request.getParameter("Title");
String price = request.getParameter("Price");
String cid = request.getParameter("Category_ID");
%>






However, it doesn't work...

If i change From

To

it works.

So I would like to ask how i can set the variables into the tag attribute?

Thanks a lot!!

ypc

Comments

  • Chanders2002Chanders2002 Member Posts: 7
    try this
    " title="<%=title%>" price="<%=price%>" cid="<%=cid%" />

    Cheers
    Happy Coding
    Chander

    : hi all,
    :
    : i have a code like this:
    :
    : <%@ taglib prefix="database" uri="WEB-INF/database.tld" %>
    :
    :
    :
    :
    : <%
    : String id = request.getParameter("Title_ID");
    : String title = request.getParameter("Title");
    : String price = request.getParameter("Price");
    : String cid = request.getParameter("Category_ID");
    : %>
    :
    :
    :
    :
    :
    :
    : However, it doesn't work...
    :
    : If i change From
    :
    : To
    :
    : it works.
    :
    : So I would like to ask how i can set the variables into the tag attribute?
    :
    : Thanks a lot!!
    :
    : ypc
    :

Sign In or Register to comment.