Re: Any Idea about Paging Logic

2002-10-06 Thread Eddie Bush

Is there any chance you've already searched the archive?  I generally 
skip that and go to Google, myself.  Tried that?

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Struts+Paging

There was a recent discussion on the list about paging that ... got 
pretty involved and contained some good suggestions.  If all other 
avenues fail, search the archive within the last ... 2 weeks max I'd 
say.  This is been a very, very discussed topic.

Kalaiselvan wrote:

Hii all,

  I'm using struts for my application. I have reterive data from DB and
shown in table. Where i have thousands of records in my DB. So i want to
show the data 100 for each page. I'm using logic:iterate tag for
displaying the data. Where how can i seperate the data and how can implement
my requirement. Any idea will be more helpful for me.

Thanx in Advance,
Kalaiselvan

-- 
Eddie Bush




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: [OT] Should I use a persistence layer?

2002-10-06 Thread Ralf E. Stranzenbach

Hi,

i would like to underline that. My own (toy) project is also based on
hibernate and i spend much time doing very basic things, reinventing the
wheel. May be there are many of us out there all doing the same who could at
least act as a sparring partner.

- Ralf

-Ursprüngliche Nachricht-
Von: Matt Veitas [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 3. Oktober 2002 22:48
An: Struts Users Mailing List
Betreff: Re: [OT] Should I use a persistence layer?


Is there anyway that you could post some more info about your thoughts,
suggestions, ideas, etc about Huts.  Maybe even post a link to a
zip/tar with the current work you have? I would be very interested in
this and helping out with the project as I am using a combination of
Struts and Hibernate both at work and home and find them BOTH very useful!

Matt


Cliff Rowley wrote:

Hibernate rocks :)  I've been using it lots - I'm glad to see other
people are using it too.  I've been working on an extension to the
Struts framework to support Hibernate (a plugin and associated vanilla
CRUD actions) - but my time has been limited recently (I have another 2
personal projects, one being a Struts Wiki) and all of my efforts are
being ploughed into my latest contract (which just turned up trumps, as
I'm going to be paid more than I thought I was - almost half the amount
again in fact).

As soon as I am in a position to continue development on the framework
(which is currently codenamed 'Huts') I'll be sure to make available for
public scrutiny.

Don't hold your breath though, life is pretty much upside down at the
moment (financially, emotionally, physically, mentally) and I'm really
not sure when and if I'll get to work on it again.  If I decide I can't
work on it I'll have no qualms about giving it away for someone else to
work on.



-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 20:46
To: Struts Users Mailing List
Subject: RE: [OT] Should I use a persistence layer?


I've been playing around with Hibernate
(http://hibernate.sourceforge.net) on personal project and it
seems to be pretty easy to work with and has good performance.

--Kevin

-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Should I use a persistence layer?


Thanks for this, what good persistence layers are there? Is
there something that works with struts and is simple?

Dean Chen




-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 2:41 PM
To: Struts Users Mailing List
Subject: RE: Should I use a persistence layer?


Yes.  The standard approach is to only keep in memory results
that are currently on the page.  Have a persistence layer
(either EJB or O/R mapping tool, or a combination of the two)
page the results for you. i.e., you give it search criteria,
sort criteria, a begin index, and an end index, and it gives
you back the results.  This solves two problems:  The one you
are encountering with bad results with two different windows,
and the memory problems associated with very large result sets.

There are examples of this sort of implementation out there;
sorry I can't provide links. :(

peace,
Joe



-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 10:13 AM
To: 'Struts Users Mailing List'
Subject: Should I use a persistence layer?


Hi,

For an web application, is there a way for a user to


paginate through


(similar to google) a lot of data across multiple browser windows.

The usual way of paginating with session scope works fine.
However, if a
user has 2 windows open on the same application. When he/she
queries on one,
then queries on another, and then comes back to the first
window and click
Next, he/she will get bad results.

Does this lead to EJB or any other persistence layers?

Thanks,


Dean Chen


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:struts-user-[EMAIL PROTECTED]
For
additional commands,
e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:struts-user-[EMAIL PROTECTED]
For
additional commands,
e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:struts-user-[EMAIL PROTECTED]
For
additional commands,
e-mail: mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.393 / Virus Database: 223 - Release Date: 30/09/2002





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.393 / Virus Database: 223 - Release Date: 30/09/2002



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For 

Re: NullPointerException in TabsLayout??

2002-10-06 Thread Curtney Jacobs

Hi,

It seems that the tabList variable is null. I checked the 
tiles-examples-defs.xml to make sure the variable is properly initialize or 
constructed. Everything appears to be OK. The following is an excerpt from 
the  tiles-examples-defs.xml file.

!-- ===  --
  !-- Tabs test page and definitions  
 --
  !-- ===  --

!-- tabs page --
  definition name=examples.tabs.page extends=examples.masterPage
  put name=title  value=Tiles 1.1 Tabs layout example /
  put name=body   value=examples.tabs.body /
  /definition

  !-- body using tabs --
  definition name=examples.tabs.body path=/layouts/tabsLayout.jsp 
put name=selectedIndex  value=0 /
put name=parameterName  value=selected /
putList name=tabList 
  item value=Doc Home
link=/index.jsp /
  item value=Quick overview
link=/doc/quickOverview.jsp /
  item value=Tutorial
link=/doc/tutorial.jsp /
  item value=Examples Home
link=/examples/index.jsp /
  item value=Tutorial Home
link=/tutorial/index.jsp /
  item value=Login
link=/examples/tiles/portal/login.jsp /
  item value=Messages
link=/examples/tiles/portal/messages.jsp /
  item value=NewsFeed
link=/examples/tiles/portal/newsFeed.jsp /
  item value=Stocks
link=/examples/tiles/portal/stocks.jsp /
  item value=WhatsNew
link=/examples/tiles/portal/whatsNew.jsp /
/putList
  /definition

  !-- ===  --
  !-- Summaries in tabs   
 --
  !-- ===  --

!-- tabs page --
  definition name=examples.tabs.summaries.page 
extends=examples.masterPage
  put name=title  value=Tiles 1.1 Summaries in Tabs /
  put name=body   value=examples.tabs.summaries.body /
  /definition

  !-- body using tabs --
  definition name=examples.tabs.summaries.body 
path=/layouts/tabsLayout.jsp 
put name=selectedIndex  value=0 /
put name=parameterName  value=selected /
putList name=tabList 
  item value=Portal
link=/examples/tiles/portalSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=my Portal
link=/examples/tiles/myPortalSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Menu
link=/examples/tiles/menuSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=my Menu
link=/examples/tiles/myMenuSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Tabs
link=/examples/tiles/tabsSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Rss Channels
link=/examples/tiles/rssChannelsSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Admin
link=/examples/tiles/adminSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=i18n
link=/examples/tiles/i18nSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Multi Channels
link=/examples/tiles/multiChannelsSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Components
link=/examples/tiles/componentsSummary.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
/putList
  /definition 

_CJ

On Sunday 06 October 2002 6:11 am, David M. Karr wrote:
  Curtney == Curtney Jacobs [EMAIL PROTECTED] writes:

 Curtney Greetings!!
 Curtney I am having problems viewing the tiles-documentation example,
 specifically the Curtney tab examples. Everything else works fine except
 the tabs.

 Curtney There was a similar question posted to the group on July 17,
 2002, Curtney titled Struts Tabs Example Error by Peggy Davidson.
 However, the problem was Curtney not resolved or no one posted a fix to
 the problem. If anyone has encountered Curtney a similar problem and found
 a solution, please advise me.

 Curtney I am running tomcat  version 4.1.12.
 Curtney I am using jakarta-struts-1.1-b2

 Curtney Below is the error message I am receiving.

 Curtney - Root Cause -
 Curtney 

No Context Configured to Process this request

2002-10-06 Thread Divakar Satyanarayan

Hi ,

  I have a pop up window that opens when the user clicks on a button. I have
made use of the action parameter/popUp to be sent as the URL. I have
defined a forward for the action in my struts-config.xml.

 Below is my content of my struts-config.

form-beans
form-bean name=messageForm  type=messageInputForm
/form-bean
/form-beans
action-mappings
action path=/display
type=messageInputAction
name=messageForm
forward name=success
 path=/jsp/DisplayMessage.jsp
 redirect=false
/forward
/action
action path=/popUp
forward=/jsp/modalInput.jsp
/action
/action-mappings
  

 This is the code where I am passing the action as a parameter to open new
window

html:button value=Open Window property=message onclick =
javascript:openAdvSrcWindow('/popUp')/

 but when I click on the button I get the following error 

  HTTP 500 - No context configured to process this request. What is it that
I doing wrong here ?

 Please do give in ur suggestion.

Thanks in Advance,
Divakar  


DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: No Context Configured to Process this request

2002-10-06 Thread Divakar Satyanarayan

Hi,

 I resolved this .. I had to pass the full path when I am passing action as
a paramter ..

Regards,
Divakar

 -Original Message-
 From: Divakar Satyanarayan [SMTP:[EMAIL PROTECTED]]
 Sent: Sunday, October 06, 2002 1:34 PM
 To:   'Struts Users Mailing List'
 Subject:  No Context Configured to Process this request
 
 Hi ,
 
   I have a pop up window that opens when the user clicks on a button. I
 have
 made use of the action parameter/popUp to be sent as the URL. I have
 defined a forward for the action in my struts-config.xml.
 
  Below is my content of my struts-config.
 
   form-beans
   form-bean name=messageForm  type=messageInputForm
   /form-bean
   /form-beans
   action-mappings
   action path=/display
   type=messageInputAction
   name=messageForm
   forward name=success
path=/jsp/DisplayMessage.jsp
redirect=false
   /forward
   /action
   action path=/popUp
   forward=/jsp/modalInput.jsp
   /action
   /action-mappings
   
 
  This is the code where I am passing the action as a parameter to open new
 window
 
 html:button value=Open Window property=message onclick =
 javascript:openAdvSrcWindow('/popUp')/
 
  but when I click on the button I get the following error 
 
   HTTP 500 - No context configured to process this request. What is it
 that
 I doing wrong here ?
 
  Please do give in ur suggestion.
 
 Thanks in Advance,
 Divakar
 
 
 DISCLAIMER: Information contained and transmitted by this E-MAIL is
 proprietary to Mascot Systems Limited and is intended for use only by the
 individual or entity to which it is addressed, and may contain information
 that is privileged, confidential or exempt from disclosure under
 applicable
 law. If this is a forwarded message, the content of this E-MAIL may not
 have
 been sent with the authority of the Company. If you are not the intended
 recipient, an agent of the intended recipient or a person responsible for
 delivering the information to the named recipient, you are notified that
 any
 use, distribution, transmission, printing, copying or dissemination of
 this
 information in any way or in any manner is strictly prohibited. If you
 have
 received this communication in error, please delete this mail  notify us
 immediately at [EMAIL PROTECTED] Before opening attachments,
 please scan for viruses. 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: [OT] Should I use a persistence layer?

2002-10-06 Thread Cliff Rowley

Yeah, I'm totally for it - I need some time to spend tidying up and
documenting what I've done (I did reply to Matt personally), but then
I'm happy to feed it to the lions.  As I said to Matt, it's just a brain
dump and needs a shed load of work.  I'm hoping to get some time after
Tuesday.

In the meantime, is your toy available for scrutiny?

-Original Message-
From: Ralf E. Stranzenbach [mailto:[EMAIL PROTECTED]] 
Sent: 06 October 2002 08:47
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: AW: [OT] Should I use a persistence layer?


Hi,

i would like to underline that. My own (toy) project is also 
based on hibernate and i spend much time doing very basic 
things, reinventing the wheel. May be there are many of us out 
there all doing the same who could at least act as a sparring partner.

- Ralf

-Ursprüngliche Nachricht-
Von: Matt Veitas [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 3. Oktober 2002 22:48
An: Struts Users Mailing List
Betreff: Re: [OT] Should I use a persistence layer?


Is there anyway that you could post some more info about your 
thoughts, suggestions, ideas, etc about Huts.  Maybe even 
post a link to a zip/tar with the current work you have? I 
would be very interested in this and helping out with the 
project as I am using a combination of Struts and Hibernate 
both at work and home and find them BOTH very useful!

Matt


Cliff Rowley wrote:

Hibernate rocks :)  I've been using it lots - I'm glad to see other 
people are using it too.  I've been working on an extension to the 
Struts framework to support Hibernate (a plugin and 
associated vanilla 
CRUD actions) - but my time has been limited recently (I have 
another 2 
personal projects, one being a Struts Wiki) and all of my efforts are 
being ploughed into my latest contract (which just turned up 
trumps, as 
I'm going to be paid more than I thought I was - almost half 
the amount 
again in fact).

As soon as I am in a position to continue development on the 
framework 
(which is currently codenamed 'Huts') I'll be sure to make available 
for public scrutiny.

Don't hold your breath though, life is pretty much upside down at the 
moment (financially, emotionally, physically, mentally) and 
I'm really 
not sure when and if I'll get to work on it again.  If I 
decide I can't 
work on it I'll have no qualms about giving it away for 
someone else to 
work on.



-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 20:46
To: Struts Users Mailing List
Subject: RE: [OT] Should I use a persistence layer?


I've been playing around with Hibernate
(http://hibernate.sourceforge.net) on personal project and 
it seems to 
be pretty easy to work with and has good performance.

--Kevin

-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Should I use a persistence layer?


Thanks for this, what good persistence layers are there? Is there 
something that works with struts and is simple?

Dean Chen




-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 2:41 PM
To: Struts Users Mailing List
Subject: RE: Should I use a persistence layer?


Yes.  The standard approach is to only keep in memory 
results that are 
currently on the page.  Have a persistence layer (either EJB or O/R 
mapping tool, or a combination of the two) page the 
results for you. 
i.e., you give it search criteria, sort criteria, a begin index, and 
an end index, and it gives you back the results.  This solves two 
problems:  The one you are encountering with bad results with two 
different windows, and the memory problems associated with 
very large 
result sets.

There are examples of this sort of implementation out there; sorry I 
can't provide links. :(

peace,
Joe



-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 10:13 AM
To: 'Struts Users Mailing List'
Subject: Should I use a persistence layer?


Hi,

For an web application, is there a way for a user to


paginate through


(similar to google) a lot of data across multiple browser windows.

The usual way of paginating with session scope works fine. However, 
if a user has 2 windows open on the same application. When he/she
queries on one,
then queries on another, and then comes back to the first
window and click
Next, he/she will get bad results.

Does this lead to EJB or any other persistence layers?

Thanks,


Dean Chen


--
To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail: 
mailto:struts-user-[EMAIL PROTECTED]
For
additional commands,
e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: 
mailto:struts-user-[EMAIL PROTECTED]
For
additional commands,
e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail: 

RE: No Context Configured to Process this request

2002-10-06 Thread K Br

can you clarify? I thought you are passing the full path
(/popUp) as the parameter?

THank you

/Kobe


On Sun, 6 Oct 2002 15:24:56 +0530  Divakar Satyanarayan [EMAIL PROTECTED] 
wrote:
Hi,

 I resolved this .. I had to pass the full path when I am passing action as
a paramter ..

Regards,
Divakar

 -Original Message-
 From:Divakar Satyanarayan [SMTP:[EMAIL PROTECTED]]
 Sent:Sunday, October 06, 2002 1:34 PM
 To:  'Struts Users Mailing List'
 Subject: No Context Configured to Process this request
 
 Hi ,
 
   I have a pop up window that opens when the user clicks on a button. I
 have
 made use of the action parameter/popUp to be sent as the URL. I have
 defined a forward for the action in my struts-config.xml.
 
  Below is my content of my struts-config.
 
  form-beans
  form-bean name=messageForm  type=messageInputForm
  /form-bean
  /form-beans
  action-mappings
  action path=/display
  type=messageInputAction
  name=messageForm
  forward name=success
   path=/jsp/DisplayMessage.jsp
   redirect=false
  /forward
  /action
  action path=/popUp
  forward=/jsp/modalInput.jsp
  /action
  /action-mappings
   
 
  This is the code where I am passing the action as a parameter to open new
 window
 
 html:button value=Open Window property=message onclick =
 javascript:openAdvSrcWindow('/popUp')/
 
  but when I click on the button I get the following error 
 
   HTTP 500 - No context configured to process this request. What is it
 that
 I doing wrong here ?
 
  Please do give in ur suggestion.
 
 Thanks in Advance,
 Divakar   
 
 
 DISCLAIMER: Information contained and transmitted by this E-MAIL is
 proprietary to Mascot Systems Limited and is intended for use only by the
 individual or entity to which it is addressed, and may contain information
 that is privileged, confidential or exempt from disclosure under
 applicable
 law. If this is a forwarded message, the content of this E-MAIL may not
 have
 been sent with the authority of the Company. If you are not the intended
 recipient, an agent of the intended recipient or a person responsible for
 delivering the information to the named recipient, you are notified that
 any
 use, distribution, transmission, printing, copying or dissemination of
 this
 information in any way or in any manner is strictly prohibited. If you
 have
 received this communication in error, please delete this mail  notify us
 immediately at [EMAIL PROTECTED] Before opening attachments,
 please scan for viruses. 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Specifying button-specific actions in a form

2002-10-06 Thread K Br

I have a form with three commands (add, delete and logout). It appears to me that I 
must forward them
to a single action and conveying the specific
operation using a property as in:

 html:form method=GET action=processCommand.do
 //...
 html:submit property=action value=Add /
 html:submit property=action value=Delete /
 html:submit property=action value=Logout /
 /html:form

I would like to make the JSP more readable by
specifying distinct actions to distinct buttons:
   Add - /performAdd.do
   Delete - /performDelete.do
   Logout - /logout.do

(these actions may be implemented by the same
Action class, but that's hidden from the JSP 
author).

Is there a way to do this?
 
Tx,

/Kobe



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Specifying button-specific actions in a form

2002-10-06 Thread Pavel Kolesnikov

On 6 Oct 2002, K Br wrote:

 I would like to make the JSP more readable by
 specifying distinct actions to distinct buttons:
Add - /performAdd.do
Delete - /performDelete.do
Logout - /logout.do
 
 (these actions may be implemented by the same
 Action class, but that's hidden from the JSP 
 author).

@see org.apache.struts.actions.DispatchAction

pavel



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: NullPointerException in TabsLayout??

2002-10-06 Thread Curtney Jacobs

Greetings!!

Well, I managed to get the tabs to work. However, I am not to sure if it was a 
proper solution to the problem or  just a hack.

I changed the following:

tiles:useAttribute name=tabList classname=java.util.List /

to 

tiles:useAttribute id=tabList name=tabList classname=java.util.List /


The id attribute was missing.

Thanks David. It looks like a little debugging time did the job.

(Cedric please let me know if this is correct).

_CJ

On Sunday 06 October 2002 12:32 am, Curtney Jacobs wrote:
 Hi,

 It seems that the tabList variable is null. I checked the
 tiles-examples-defs.xml to make sure the variable is properly initialize or
 constructed. Everything appears to be OK. The following is an excerpt from
 the  tiles-examples-defs.xml file.

 !-- ===  --
   !-- Tabs test page and definitions
 --
   !-- ===  --

 !-- tabs page --
   definition name=examples.tabs.page extends=examples.masterPage
 put name=title  value=Tiles 1.1 Tabs layout example /
 put name=body   value=examples.tabs.body /
   /definition

 !-- body using tabs --
   definition name=examples.tabs.body path=/layouts/tabsLayout.jsp 
   put name=selectedIndex  value=0 /
   put name=parameterName  value=selected /
 putList name=tabList 
   item value=Doc Home
   link=/index.jsp /
   item value=Quick overview
   link=/doc/quickOverview.jsp /
   item value=Tutorial
   link=/doc/tutorial.jsp /
   item value=Examples Home
   link=/examples/index.jsp /
   item value=Tutorial Home
   link=/tutorial/index.jsp /
   item value=Login
   link=/examples/tiles/portal/login.jsp /
   item value=Messages
   link=/examples/tiles/portal/messages.jsp /
   item value=NewsFeed
   link=/examples/tiles/portal/newsFeed.jsp /
   item value=Stocks
   link=/examples/tiles/portal/stocks.jsp /
   item value=WhatsNew
   link=/examples/tiles/portal/whatsNew.jsp /
 /putList
   /definition

   !-- ===  --
   !-- Summaries in tabs 
 --
   !-- ===  --

 !-- tabs page --
   definition name=examples.tabs.summaries.page
 extends=examples.masterPage
 put name=title  value=Tiles 1.1 Summaries in Tabs /
 put name=body   value=examples.tabs.summaries.body /
   /definition

 !-- body using tabs --
   definition name=examples.tabs.summaries.body
 path=/layouts/tabsLayout.jsp 
   put name=selectedIndex  value=0 /
   put name=parameterName  value=selected /
 putList name=tabList 
   item value=Portal
   link=/examples/tiles/portalSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=my Portal
   link=/examples/tiles/myPortalSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=Menu
   link=/examples/tiles/menuSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=my Menu
   link=/examples/tiles/myMenuSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=Tabs
   link=/examples/tiles/tabsSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=Rss Channels
   link=/examples/tiles/rssChannelsSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=Admin
   link=/examples/tiles/adminSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=i18n
   link=/examples/tiles/i18nSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=Multi Channels
   link=/examples/tiles/multiChannelsSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
   item value=Components
   link=/examples/tiles/componentsSummary.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
 /putList
   /definition

 _CJ

 On Sunday 06 October 2002 6:11 am, David M. Karr wrote:
   Curtney == Curtney Jacobs [EMAIL PROTECTED] writes:
 
  Curtney Greetings!!
  Curtney I am having problems viewing the tiles-documentation
  example, specifically the Curtney tab examples. Everything else works
  fine except the tabs.
 
  Curtney 

Re: NullPointerException in TabsLayout??

2002-10-06 Thread Matt Veitas

That is the correct fix for it. Someone posted a patch for this earlier 
this week. :-D

Curtney Jacobs wrote:

Greetings!!

Well, I managed to get the tabs to work. However, I am not to sure if it was a 
proper solution to the problem or  just a hack.

I changed the following:

tiles:useAttribute name=tabList classname=java.util.List /

to 

tiles:useAttribute id=tabList name=tabList classname=java.util.List /


The id attribute was missing.

Thanks David. It looks like a little debugging time did the job.

(Cedric please let me know if this is correct).

_CJ

On Sunday 06 October 2002 12:32 am, Curtney Jacobs wrote:
  

Hi,

It seems that the tabList variable is null. I checked the
tiles-examples-defs.xml to make sure the variable is properly initialize or
constructed. Everything appears to be OK. The following is an excerpt from
the  tiles-examples-defs.xml file.

!-- ===  --
  !-- Tabs test page and definitions
 --
  !-- ===  --

!-- tabs page --
  definition name=examples.tabs.page extends=examples.masterPage
put name=title  value=Tiles 1.1 Tabs layout example /
put name=body   value=examples.tabs.body /
  /definition

!-- body using tabs --
  definition name=examples.tabs.body path=/layouts/tabsLayout.jsp 
  put name=selectedIndex  value=0 /
  put name=parameterName  value=selected /
putList name=tabList 
  item value=Doc Home
  link=/index.jsp /
  item value=Quick overview
  link=/doc/quickOverview.jsp /
  item value=Tutorial
  link=/doc/tutorial.jsp /
  item value=Examples Home
  link=/examples/index.jsp /
  item value=Tutorial Home
  link=/tutorial/index.jsp /
  item value=Login
  link=/examples/tiles/portal/login.jsp /
  item value=Messages
  link=/examples/tiles/portal/messages.jsp /
  item value=NewsFeed
  link=/examples/tiles/portal/newsFeed.jsp /
  item value=Stocks
  link=/examples/tiles/portal/stocks.jsp /
  item value=WhatsNew
  link=/examples/tiles/portal/whatsNew.jsp /
/putList
  /definition

  !-- ===  --
  !-- Summaries in tabs 
 --
  !-- ===  --

!-- tabs page --
  definition name=examples.tabs.summaries.page
extends=examples.masterPage
put name=title  value=Tiles 1.1 Summaries in Tabs /
put name=body   value=examples.tabs.summaries.body /
  /definition

!-- body using tabs --
  definition name=examples.tabs.summaries.body
path=/layouts/tabsLayout.jsp 
  put name=selectedIndex  value=0 /
  put name=parameterName  value=selected /
putList name=tabList 
  item value=Portal
  link=/examples/tiles/portalSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=my Portal
  link=/examples/tiles/myPortalSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Menu
  link=/examples/tiles/menuSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=my Menu
  link=/examples/tiles/myMenuSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Tabs
  link=/examples/tiles/tabsSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Rss Channels
  link=/examples/tiles/rssChannelsSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Admin
  link=/examples/tiles/adminSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=i18n
  link=/examples/tiles/i18nSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Multi Channels
  link=/examples/tiles/multiChannelsSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
  item value=Components
  link=/examples/tiles/componentsSummary.jsp
  classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
/putList
  /definition

_CJ

On Sunday 06 October 2002 6:11 am, David M. Karr wrote:


Curtney == Curtney Jacobs [EMAIL PROTECTED] writes:


Curtney Greetings!!
Curtney I am having problems viewing the tiles-documentation
example, specifically the Curtney tab examples. Everything else works

Re: enforcing max upload file size - before its too late!

2002-10-06 Thread jfc

jfc wrote:

 Hi,

 I have implemented the functionality for file uploads as demonstrated 
 in struts-upload.war however I have a question.

 How could I implement the example such that the file is uploaded chunk 
 by chunk thereby giving the server the opportunity of stopping the 
 upload at a given max file upload size and redirecting to the error page.

 Although I have a validation method on my form bean which has the 
 FormFile as a property, it appears as though the file is uploaded in 
 its entirety before the size is checked.

 The obvious concern here is that someone might decide to upload a file 
 the size of the internet to my server which would struggle to cope 
 with such a large file.

 Perhaps I am overlooking some simple fact to the way this upload works 
 but I don't see a solution at the moment other than somehow uploading 
 the file chunk by chunk.

 Any advice is much appreciated.

 Jfc


 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]


I have to believe this has been covered before but I can find no 
previous posts which answer the question. Any takers?

Chees
jfc



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Using CheckLogin tag from within tiles

2002-10-06 Thread Alan P Sexton


I am switching from plain JSP to using tiles. I was using a CheckLogin
tag on my JSP based on the one in the example for struts. This checks if
there is a valid user in the session and, if not, creates an ActionError
indicating that the session has timed out and forwards to logon.

Now I have a simpleLayout.jsp similar to that in the tiles section of
the Chuck Cavaness's online book draft: I insert a header, a body and a
footer in the simpleLayout for my normal pages.

Now I have a problem with the CheckLogin tag:

- If I put it in the body insert, then when the login check fails
  (because of session timeout) it throws an exception saying that it
  couldn't forward because the output was already committed (I presume
  that the preceding tiles do a flush).

- If I put it at the top of the simpleLayout.jsp (which I thought would
  be before anything was flushed) then it detects the error (and creates
  the correct ActionError) but the forward to the logon page doesn't
  work (the current page is displayed) and the page skip of the
  CheckLogin tag doesn't work.

Can anyone explain to me what is going on and how to fix it?


Alan Sexton




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: enforcing max upload file size - before its too late!

2002-10-06 Thread Thomas Eichberger

Hi,

here is my piece of source code for that problem:


stream = file.getInputStream();

zipFile = new File( user.path, user.kurzname + -upload.zip );
bos = new BufferedOutputStream( new FileOutputStream( zipFile ) );

int bytesRead = 0;
int count = 0;
byte[] buffer = new byte[ 8192 ];
while ( ( bytesRead = stream.read( buffer, 0, 8192 ) ) != -1 )
{
bos.write(buffer, 0, bytesRead);
count += bytesRead;

 if ( count  200 ) // THIS IS THE MAXIMUM SIZE
 {
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError( error.upload.file ) );
 return mapping.findForward( failure );
 }
 }


And I have a finally block surrounding this where I close all streams :-)


Thomas




At 17:58 06.10.2002 +, jfc wrote:
jfc wrote:

Hi,

I have implemented the functionality for file uploads as demonstrated in 
struts-upload.war however I have a question.

How could I implement the example such that the file is uploaded chunk by 
chunk thereby giving the server the opportunity of stopping the upload at 
a given max file upload size and redirecting to the error page.

Although I have a validation method on my form bean which has the 
FormFile as a property, it appears as though the file is uploaded in its 
entirety before the size is checked.

The obvious concern here is that someone might decide to upload a file 
the size of the internet to my server which would struggle to cope with 
such a large file.

Perhaps I am overlooking some simple fact to the way this upload works 
but I don't see a solution at the moment other than somehow uploading the 
file chunk by chunk.

Any advice is much appreciated.

Jfc


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

I have to believe this has been covered before but I can find no previous 
posts which answer the question. Any takers?

Chees
jfc



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: enforcing max upload file size - before its too late!

2002-10-06 Thread James Higginbotham

Realistically, something is needed in the core web server (Apache, or in
the lower layers of the socket listeners in the servlet spec) to stop
incoming POST requests that exceed a certain amount. With this code
(which I've used before as well), you can't stop the upload and close
the connection, you have to accept all the bytes and then process once
control is given to your servlet/JSP/Struts action. By that time, the
user may have tried to take down your server by pushing many threads
with large files to fill up your drive space (or at least
unintentionally caused you grief). 

Anyone know of a more aggressive method of handling this without getting
rid of uploads all together?

James

 -Original Message-
 From: Thomas Eichberger [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, October 06, 2002 1:42 PM
 To: Struts Users Mailing List
 Subject: Re: enforcing max upload file size - before its too late!
 
 
 Hi,
 
 here is my piece of source code for that problem:
 
 
 stream = file.getInputStream();
 
 zipFile = new File( user.path, user.kurzname + -upload.zip 
 ); bos = new BufferedOutputStream( new FileOutputStream( zipFile ) );
 
 int bytesRead = 0;
 int count = 0;
 byte[] buffer = new byte[ 8192 ];
 while ( ( bytesRead = stream.read( buffer, 0, 8192 ) ) != -1 
 ) { bos.write(buffer, 0, bytesRead); count += bytesRead;
 
  if ( count  200 ) // THIS IS THE MAXIMUM SIZE
  {
  errors.add(ActionErrors.GLOBAL_ERROR,
  new ActionError( error.upload.file ) );
  return mapping.findForward( failure );
  }
  }
 
 
 And I have a finally block surrounding this where I close all 
 streams :-)
 
 
 Thomas
 
 
 
 
 At 17:58 06.10.2002 +, jfc wrote:
 jfc wrote:
 
 Hi,
 
 I have implemented the functionality for file uploads as 
 demonstrated 
 in
 struts-upload.war however I have a question.
 
 How could I implement the example such that the file is 
 uploaded chunk 
 by
 chunk thereby giving the server the opportunity of stopping 
 the upload at 
 a given max file upload size and redirecting to the error page.
 
 Although I have a validation method on my form bean which has the
 FormFile as a property, it appears as though the file is 
 uploaded in its 
 entirety before the size is checked.
 
 The obvious concern here is that someone might decide to 
 upload a file
 the size of the internet to my server which would struggle 
 to cope with 
 such a large file.
 
 Perhaps I am overlooking some simple fact to the way this 
 upload works
 but I don't see a solution at the moment other than somehow 
 uploading the 
 file chunk by chunk.
 
 Any advice is much appreciated.
 
 Jfc
 
 
 --
 To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 I have to believe this has been covered before but I can find no 
 previous
 posts which answer the question. Any takers?
 
 Chees
 jfc
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[NESTED TAGS] Questions regarding nested:iterate and indexid....

2002-10-06 Thread Jeff_Mychasiw

I am using 1.1b1
Summary: I cannot make use of the indexId reference in side a java method, unless I 
specify an id=XX attribute.
The funny thing is that the id attribute can be named anything.


I have been coding my list in this manner for some time without problems.
I am using the logic:iterate with the indexid=counter passed into a java function 
that swaps the row style.
The toggleRow method assumes that the counter reference is an Integer object.

 logic:iterate name=customerHistoryForm
   property=pageList
   id=item
   
type=com.nlg.ar.common.datatransfer.vo.CustomerHistoryVO
   indexId=counter 

 tr class=%= WebFormatter.toggleRow(counter) %
 tdbean:write name=item property=userName//td
 /tr
 /logic:iterate

I would like to use the nested library and near as I can I should be able to use this:
 nested:iterate property=pageList indexId=counter
tr class=%= WebFormatter.toggleRow(counter) %
  td nested:write property=userName//td
/tr
/nested:iterate

This will result in a compile error: Undefined variable: counter

I get the code to work by adding an id attribute with any value in it.
nested:iterate property=pageList indexId=counter   id=XYZ 
tr class=%= WebFormatter.toggleRow(counter) %
  td nested:write property=userName//td
/tr
/nested:iterate
This code works as the above code I started with.

Is this a bug in 1.1b1 that has been fixed in 1.1b2 ?



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: [NESTED TAGS] Questions regarding nested:iterate and indexid....

2002-10-06 Thread David M. Karr

 Jeff == Jeff Mychasiw [EMAIL PROTECTED] writes:

Jeff I am using 1.1b1
Jeff Summary: I cannot make use of the indexId reference in side a java method, 
unless I specify an id=XX attribute.
Jeff The funny thing is that the id attribute can be named anything.

It may not be relevant, but it might be important to know what web container
and version you're using.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Session management for cached resources

2002-10-06 Thread Andrew Hill

Im running 1.1, so in your case, running 1.0 you would need to make changes
in the ActionServlet, as afaik the RequestProcessor is a 1.1 thing.

-Original Message-
From: James A. Hillyerd [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 05, 2002 01:21
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Subject: RE: Session management for cached resources


On Wed, 2002-10-02 at 19:14, Andrew Hill wrote:
 Im doing something rather like this, only I called it an
OperationContext
 which comprises a hashtable of attributes and an id to store it under in
the
 session (passed in the request). I simply overrode the RequestProcessor so
 it knew to look for an actionform in the OperationContext first if the
form
 scope is session.
 Works quite nicely.

That sounds pretty close to what I want to do.  Which version of Struts
are you running?  I'm still on 1.0 right now.

Something else I was considering was to use a naming convention like
context.name, and then have a utility method that would iterate
through the session and remove mymodule.*.  Not quite as elegant as
your solution though. =)

-james

--
[]  James A. Hillyerd [EMAIL PROTECTED] - Java Software Engineer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Any Idea about Paging Logic

2002-10-06 Thread Brian Alexander Lee

I looked at the display tag library:
http://edhill.its.uiowa.edu/display/

Did I majorly screw something up or is this tag not thread safe? I noticed
when I sorted a page of data, the next user to hit the page got that default
sort. It was quite infuriating. I hope it was just me.

BAL

- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, October 06, 2002 2:32 AM
Subject: Re: Any Idea about Paging Logic


 Is there any chance you've already searched the archive?  I generally
 skip that and go to Google, myself.  Tried that?

 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Struts+Paging

 There was a recent discussion on the list about paging that ... got
 pretty involved and contained some good suggestions.  If all other
 avenues fail, search the archive within the last ... 2 weeks max I'd
 say.  This is been a very, very discussed topic.

 Kalaiselvan wrote:

 Hii all,
 
   I'm using struts for my application. I have reterive data from DB
and
 shown in table. Where i have thousands of records in my DB. So i want to
 show the data 100 for each page. I'm using logic:iterate tag for
 displaying the data. Where how can i seperate the data and how can
implement
 my requirement. Any idea will be more helpful for me.
 
 Thanx in Advance,
 Kalaiselvan
 
 --
 Eddie Bush




 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Specifying button-specific actions in a form

2002-10-06 Thread K Br

DispatchAction works fine. Thanks.

However I need to submit different ActionForms
with different subactions in

 html:form ...
   html:submit ...add...
   html:submit ...delete...
   ...

Since DispatchAction multiplexes different
subactions using the same action mapping
entry, it will use the same ActionForm.

The other way is to define distinct action mappings 
for different subactions (add, delete, ...) and
specify different form beans for each entry in
struts-config.

I prefer to use DIspatchAction, as I think its neater.
Is there a way for me to tell DispatchAction to
use different forms beans for different methods?

Tx

/Kobe


On Sun, 6 Oct 2002 16:16:27 +0200 (CEST) Pavel Kolesnikov [EMAIL PROTECTED] wrote:
On 6 Oct 2002, K Br wrote:

 I would like to make the JSP more readable by
 specifying distinct actions to distinct buttons:
Add - /performAdd.do
Delete - /performDelete.do
Logout - /logout.do
 
 (these actions may be implemented by the same
 Action class, but that's hidden from the JSP 
 author).

@see org.apache.struts.actions.DispatchAction

pavel




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem when writing bean value into textbox

2002-10-06 Thread Kalaiselvan

Hii

html:text property=functionName size=15  value=bean:write name=function 
scope=request property=functionName/
/
Its not working.  How can i write ( set ) the bean value for my textbox 

input type=text size=15 name=functionName value=bean:write name=function 
scope=request property=functionName/

Its working.

May be it will be very simple.  But i couldnt get the solution yet.
Any suggestion will helpe me better.

Thanx
Kalaiselvan.



Re: Problem when writing bean value into textbox

2002-10-06 Thread Eddie Bush

Well, you can't nest tags the way your first example shows - it's 
invalid XML, I believe.  Your second example should work, but I have to 
question what you're calling function and functionName.  The name 
attribute should be the name of a bean - in request scope (since you've 
stated that's where it is) - and property should only be the name of the 
property you wish to retrieve the value of -- not the name of the accessor.

Ex:  class Foo - has attribue bar (and accessors getBar() and 
setBar(String bar)) - instance in request is foo:

bean:write name=foo property=bar scope=request/

If that doesn't help, maybe you could give a broader overview of what 
you're trying to actually do :-)  My guess is that you want to specify 
default values for a form.  There are a couple of other ways you can do 
that:

- use a Dyna*Form and specify the initial (probably String) value
- preface the call to the page with an action that will populate the 
form and then forward to your JSP

Repost if that doesn't help - explain your scenario a little better 
though, please :-)

Kalaiselvan wrote:

Hii

html:text property=functionName size=15  value=bean:write name=function 
scope=request property=functionName/
/
Its not working.  How can i write ( set ) the bean value for my textbox 

input type=text size=15 name=functionName value=bean:write name=function 
scope=request property=functionName/

Its working.

May be it will be very simple.  But i couldnt get the solution yet.
Any suggestion will helpe me better.

Thanx
Kalaiselvan.

-- 
Eddie Bush




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]