Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Integrating Old School JSP Development Methods with new school ideas
I am refactoring some old JSP code, trying to use JSTL and I am running
into a problem, hopefully someone can help me.

In the JSP, it accesses a Bean that returns an ActionPlan object that I
write the values of out in a web form, for example, at the top of the
form I have:

<% ActionPlan ap1 = iBean.getActionPlan(request.getParameter("id")); %>

and then, throughout the web form, I have
<input type="text" value="<%= ap1.getTitle() %>" />

This works great for most things, but I would like to pass
ap1.getTitle() as an attribute value for a custom tag.  For example:

<mytag:ActionPlanStatusPickList selected="${ap1.getStatus()}" />

The problem is, it doesn't seem that ap1.getStatus() is available as an
EL expression.

Any ideas how to overcome this?

thanks

-- brian


Report this thread to moderator Post Follow-up to this message
Old Post
Brian Munroe
04-27-05 01:58 AM


Re: Integrating Old School JSP Development Methods with new school ideas
Brian Munroe <brian.e.munroe@gmail.com> wrote:
> I am refactoring some old JSP code, trying to use JSTL and I am running
> into a problem, hopefully someone can help me.
>
> In the JSP, it accesses a Bean that returns an ActionPlan object that I
> write the values of out in a web form, for example, at the top of the
> form I have:
>
> <% ActionPlan ap1 = iBean.getActionPlan(request.getParameter("id")); %>
>
> and then, throughout the web form, I have
> <input type="text" value="<%= ap1.getTitle() %>" />
>
> This works great for most things, but I would like to pass
> ap1.getTitle() as an attribute value for a custom tag.  For example:
>
> <mytag:ActionPlanStatusPickList selected="${ap1.getStatus()}" />
>
> The problem is, it doesn't seem that ap1.getStatus() is available as an
> EL expression.

Can you access the bean "ap1"? If so, you can probably access the property
"ap1.title".


--
Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2

Report this thread to moderator Post Follow-up to this message
Old Post
Oscar kind
04-27-05 08:59 AM


Re: Integrating Old School JSP Development Methods with new school ideas
Oscar kind wrote:

>
> Can you access the bean "ap1"? If so, you can probably access the
property
> "ap1.title".
>

I suppose I can make that attribute public and try it that way..

thanks

-- brian


Report this thread to moderator Post Follow-up to this message
Old Post
Brian Munroe
04-27-05 08:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:35 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.