User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 422,674 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,713 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 628 | Replies: 1
Reply
Join Date: Dec 2007
Posts: 2
Reputation: caldercay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
caldercay caldercay is offline Offline
Newbie Poster

pass bean property name across JSP pages

  #1  
Dec 27th, 2007
First, the sample code:

<%-- ================ some.jsp =============== --%>
<%-- bunch of code [...] --%>
<tr>
<td><bean:message key="prompt.desc" /></td>
<td><html:textarea property="desc" /></td>
</tr>
<tr>
<td>
<bean:message key="prompt.notes" />
<tiles:insert page="checkSpellTile.jsp" flush="false"></tiles:insert>
</td>
</tr>
<tr>
<td><html:textarea property="notes" /></td>
</tr>
<%-- ================ end some.jsp =============== --%>

<%-- ================ checkSpellTile.jsp =============== --%>
<%-- some JSP code [...] --%>

<spellingComp:executeSpelling
mode="popup"
textComponentName="notes"
/>
<%-- ================ end checkSpellTile.jsp =============== --%>

Using WebSphere 5.1.

So, my first foray into JSP programming - I have a number of
different JSP pages that need spell check widgets associated
to some text fields. The sample code shown works fine. The
prompt, "Notes ...:" is following by the spell check
[clickable] widget. Then the user clicks the widget, the
spell check is launched and it checks the text in the
"notes" field for the form.

The sticky situation that I can't seem to solve is that each
of the forms associated with each of the different JSP pages
has a different name for the text field (that needs to be
spell checked).

I've tried doing this (between the <tiles:insert...></tiles:insert...>):
<tiles:put name="theNotes" beanName="orderForm" beanProperty="notes"/>

... and then in the checkSpellTile.jsp, inserting this:
<tiles:importAttribute name="theNotes"/>

... and then for the "textComponentName" attribute:
textComponentName="theNotes"

Any ideas how do solve this problem?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 2
Reputation: caldercay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
caldercay caldercay is offline Offline
Newbie Poster

Re: pass bean property name across JSP pages

  #2  
Dec 28th, 2007
whew !!! looks like this one stumped everyone!!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 4:33 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC