struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puneet Lakhina" <puneet.lakh...@gmail.com>
Subject Re: How to access Static Data in jsp file
Date Fri, 08 Sep 2006 06:03:50 GMT
On 9/8/06, Ashish Vijaywargiya <vijaywargiya.ashish@yahoo.com> wrote:
>
> Hi Puneet,
>
> Thx for the reply.
> I think if you have the facility to import classes then you should use the
> import statement at the top of JSP file.That's what I did in my case.
>
> Like this :
> <%@ page import="java.util.*, com.exporder.web.StaticData" %>


Yeah  ofcourse you can do this, I just thought this might be the problem for
the code not working. Just a shot in the dark u know :)

and then as simple as I used is shown below:
> <%
>
> request.setAttribute("hours", StaticData.hours);
> request.setAttribute("minutes", StaticData.minutes);
> %>
> Anyway I resolved my problem.
> Thanks for your precious time.
>
>
>
> ---------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
> rates starting at 1ยข/min.
>



-- 
Puneet

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message