Re: UPON APPLICATION STARTUP!!!!!!!!!!!!!!!!

2003-08-14 Thread Curtney Jacobs
Thanks  Nathan, Andrew.

I am sorry that my earliler post was not specific and a little bit on the 
sassy side.

Yes. My forms are session mapped forms and I will be getting the default 
values from my database.

Andrew, the reason why I decided not use an action to load the default values 
in the forms is that this would be a  query to the database *everytime*. 
Since, theses default values are static (will never change), I thought it 
makes more sense to load then upon application startup and have it within the 
current session. Oops, they should span accross multiple sessions, therefore, 
as you and Nathan suggested they should be put within the servlet context.


Andrew, can you elaborate a littile bit more on the ActionForm reset issue 
that you mentioned?

Thanks.

_CJ

On Sunday 10 August 2003 11:08 pm, Andrew Hill wrote:
 Yeh alright mate. Keep ya hair on and enough with the shouting already!

 Since the forms are only instantiated when a request for that mapping comes
 in its gonna be kinda hard to prepopulate values on them cos they dont
 exist yet. Indeed unless you are using session mapped forms (such as for a
 multipage wizard or such like) the form is only going to exist for the
 scope of the request.

 Now Im assuming that you need to read these default values from somewhere
 (which must be why you dont just slap em into the form constructors
 directly). Since they dont change while the app is running (another
 assumption your post didnt bother clarifying) your best bet would be to
 read them into some kind of config objects (perhaps even a 'prototype'
 instance of the forms in question) and store these in the servlet context.
 Implement a struts plugin to do this at startup time.

 You could initialise the values in the form instance from these config
 objects in the reset method. Dont forget to do this only on the first reset
 (or you will overwite input).

 I reckon you would be best off doing as you were advised and copying the
 defaults into the form in an action though rather than overloading the
 reset method for this purpose.

 As for the lists of selectable choices in things such as drop downs - that
 would best be left as shared beans in servlet scope (like Nathan says in
 his reply to your post) - you would only want to copy values into the form
 instance for defaults for stuff, as you can have your tags access the
 shared beans directly for such tasks as rendering options in selects...


 -Original Message-
 From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
 Sent: Monday, 11 August 2003 13:46
 To: Struts Users Mailing List
 Subject: UPON APPLICATION STARTUP


 Greetings!

 I would like to load default values in my forms upon application startup.
 Is this possible with STRUTS? Seriously, is this possible with STRUTS? If
 not, I
 will have to look some where else for this.

 Many of my forms have drop down list that enables the user to choose the
 appropriate values. It would be nice that UPON APPLICATION STARTUP forms
 that
 need default values are automatically populated with said values.

 I am aware that I can call an action that can prepopulate my forms with
 those
 values. However, it seems tedious to always call an action to populate a
 form
 with default values.

 Has anyone done this before, if so, I would greatly appreciate some
 assistance.


 This is like the upteen post concerning this. I find it hard that no one
 else
 needs this or has done this.

 Regards,

 Curtney

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


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


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



UPON APPLICATION STARTUP!!!!!!!!!!!!!!!!

2003-08-14 Thread Curtney Jacobs
Greetings!

I would like to load default values in my forms upon application startup. Is 
this possible with STRUTS? Seriously, is this possible with STRUTS? If not, I 
will have to look some where else for this.

Many of my forms have drop down list that enables the user to choose the 
appropriate values. It would be nice that UPON APPLICATION STARTUP forms that 
need default values are automatically populated with said values.

I am aware that I can call an action that can prepopulate my forms with those 
values. However, it seems tedious to always call an action to populate a form 
with default values.

Has anyone done this before, if so, I would greatly appreciate some 
assistance.


This is like the upteen post concerning this. I find it hard that no one else 
needs this or has done this.

Regards,

Curtney

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



Calling a default Action upon App startup

2003-08-14 Thread Curtney Jacobs
Greetings everyone!


I would like to preopulate serveral forms with default values retrieve from a 
database upon application startup or after a successful login by the user.

I have an approach in mind, however, I am not sure if it is the most efficient 
or best approach. My approach is to use a filter that creates and stores in 
memory default ActionForms. The ActionForm will contain default values for 
select fields (or any other fields) retrieved from a database. The 
ActionForms will be stored within the current user session and then controll 
will be given over to Struts ActionServlet.


Another similar approach would be to register a listerner 
(HttpSessionAttributeListener) that would essentially  wait for a specific 
attribute to be added into the session (i.e SETUP_FORMS) then it would query 
the database for neccessary application setup data.


I read the message archive, and a few have suggested calling a setup action 
per request that prepopulates the default values in the ActionForm. This is a 
valid approach, but IMHO only for small applications. It just seems that 
there will be to much traffic going on between the app and the database. 
Correct me if I am wrong.

If you have gotten this far please share your thoughts on this topic.

Curtney

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



Re: Calling A default Action Upon Application Startup

2003-08-14 Thread Curtney Jacobs
Greetings Carlos. Thanks for replying.

Yes. I can populate a form that way. However, it wouldn't quite give me what I 
want. For instance, as the application is initially loaded there should be 
default values already in the forms; this should be done prior to any user 
action.

I like your one action approach. Is there a way to call this action as the 
application is initially loaded. Again, no user interaction should trigger 
this action class.

Thanks,

Curtney

On Monday 04 August 2003 05:09 pm, Aguirre Carlos Federico wrote:
 if you need to populate a form, you can do in one action
 and then forward to jsp, why you need to pre-populate ??

 Curtney Jacobs [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]

  Greetings everyone!
 
 
  I would like to preopulate serveral forms with default values retrieve

 from a

  database upon application startup or after a successful login by the
  user.
 
  I have an approach in mind, however, I am not sure if it is the most

 efficient

  or best approach. My approach is to use a filter that creates and stores

 in

  memory default ActionForms. The ActionForm will contain default values
  for select fields (or any other fields) retrieved from a database. The
  ActionForms will be stored within the current user session and then

 controll

  will be given over to Struts ActionServlet.
 
 
  Another similar approach would be to register a listerner
  (HttpSessionAttributeListener) that would essentially  wait for a
  specific attribute to be added into the session (i.e SETUP_FORMS) then it
  would

 query

  the database for neccessary application setup data.
 
 
  I read the message archive, and a few have suggested calling a setup

 action

  per request that prepopulates the default values in the ActionForm. This

 is a

  valid approach, but IMHO only for small applications. It just seems that
  there will be to much traffic going on between the app and the
  database. Correct me if I am wrong.
 
  If you have gotten this far please share your thoughts on this topic.
 
  Curtney

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


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



Re: Calling a default Action upon App startup

2003-08-07 Thread Curtney Jacobs
Greetings Mohan. Thanks for replying.

The reasons why I mentioned the listener approach because I am also loading 
the user profile upon successful login. You are correct in that the mixing of 
servlet listeners and  Struts forms is not a good idea.

Your ServletContextListener approach seems interesting though. The data I am 
using to populate the forms are merely reference/lookup data that the user 
can select from. Thus the data is very static, does not change at all. Are 
you currently using the ServletContextListener for such data?

Another approach would be to override the ActionForm reset method to load the 
default values  in the form. However that violates separation of concerns. 
the ActionForm should not be doing any kind of database lookup.

_CJ

On Tuesday 05 August 2003 12:11 am, Mohan Radhakrishnan wrote:
  This is what I think about the listener approach. In our project even
 though we use HttpSessionAttributeListener, we are loading only the login
 user profile as a java bean. We don't mix servlet listeners and Struts
 forms. We could load data into POJO's and then copy it into ActionForms
 whenever they are needed. I am not sure about the efficiency of this
 approach for large number of forms.

  The filter is hit even before the ActionServlet is hit the VERY first
 time. So Struts is not even loaded unless you use the load on startup tag.
 Again here we load our own javabeans. But when we need to prepopulate we
 set up our ActionForms Just-in-Time.

   Our data that don't change often is in javabeans loaded by our
 ServletContextListener.

 Mohan

 -Original Message-
 From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 9:33 AM
 To: Struts Users Mailing List
 Subject: Calling a default Action upon App startup


 Greetings everyone!


 I would like to preopulate serveral forms with default values retrieve from
 a
 database upon application startup or after a successful login by the user.

 I have an approach in mind, however, I am not sure if it is the most
 efficient
 or best approach. My approach is to use a filter that creates and stores in
 memory default ActionForms. The ActionForm will contain default values for
 select fields (or any other fields) retrieved from a database. The
 ActionForms will be stored within the current user session and then
 controll will be given over to Struts ActionServlet.


 Another similar approach would be to register a listerner
 (HttpSessionAttributeListener) that would essentially  wait for a specific
 attribute to be added into the session (i.e SETUP_FORMS) then it would
 query the database for neccessary application setup data.


 I read the message archive, and a few have suggested calling a setup
 action
 per request that prepopulates the default values in the ActionForm. This is
 a
 valid approach, but IMHO only for small applications. It just seems that
 there will be to much traffic going on between the app and the database.
 Correct me if I am wrong.

 If you have gotten this far please share your thoughts on this topic.

 Curtney

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


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


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



Calling A default Action Upon Application Startup

2003-08-04 Thread Curtney Jacobs
Greetings everyone!


I would like to preopulate serveral forms with default values retrieve from a 
database upon application startup or after a successful login by the user.

I have an approach in mind, however, I am not sure if it is the most efficient 
or best approach. My approach is to use a filter that creates and stores in 
memory default ActionForms. The ActionForm will contain default values for 
select fields (or any other fields) retrieved from a database. The 
ActionForms will be stored within the current user session and then controll 
will be given over to Struts ActionServlet.


Another similar approach would be to register a listerner 
(HttpSessionAttributeListener) that would essentially  wait for a specific 
attribute to be added into the session (i.e SETUP_FORMS) then it would query 
the database for neccessary application setup data.


I read the message archive, and a few have suggested calling a setup action 
per request that prepopulates the default values in the ActionForm. This is a 
valid approach, but IMHO only for small applications. It just seems that 
there will be to much traffic going on between the app and the database. 
Correct me if I am wrong.

If you have gotten this far please share your thoughts on this topic.

Curtney

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



Form action url get rewritten.

2003-08-02 Thread Curtney Jacobs
Greetings!!

I am getting this strange behavior in my forms. Within my jsp form I have my 
action written as the following:

action=/student/update.do

However, when the form is displayed via the browser, and a doing a view 
source, I see the following:

action=/sesm/student/update.do

It seems that my web application root directory gets tacked onto the logical 
url.

Can someone explain to me why this is happening.

Thanks,

Curtney

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



Re: Form action url get rewritten.

2003-08-02 Thread Curtney Jacobs
Oopse, 

I forge to add that my action is no longer being called. It was working fine 
two days ago. I don't know what broke it. The only thing I notice was what I 
have written below. Also, I have pasted the relevant parts of my 
struts-config.xml file. The funny thing is that all of my other actions works 
fine. I have just notice that the logical url of the other actions for my 
forms are also being re-written, attaching the application root, but seems to 
work OK.

Help Please.

_CJ

form-bean name=StudentForm type=com.jacobs.sesm.struts.form.StudentForm 
/

 action
 path=/student/update
 type=com.jacobs.sesm.struts.action.UpdateStudentAction
 name=StudentForm
 scope=session
 input=/struts/jspform/StudentForm.jsp
 parameter=id 
   
  
forward name=success path=/content/page/student.jsp?Student 
redirect=true /
   
  
  /action


On Friday 25 July 2003 11:47 am, Curtney Jacobs wrote:
 Greetings!!

 I am getting this strange behavior in my forms. Within my jsp form I have
 my action written as the following:

 action=/student/update.do

 However, when the form is displayed via the browser, and a doing a view
 source, I see the following:

 action=/sesm/student/update.do

 It seems that my web application root directory gets tacked onto the
 logical url.

 Can someone explain to me why this is happening.

 Thanks,

 Curtney

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


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



Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Curtney Jacobs
Greetings everyone!

I have an input form where my users can update their profile. After the user 
have select the Update button I would like the form to reflect the updated 
information the user has just submitted.

What is the best way to implement this?

I can think of one way; in my update action class after the data has been 
successfully updated in the database, copy the fields from my value object 
(updated data) back into the ActionForm and subsequently put it back into the 
current session. Is this the most efficient/elegant way of doing this?


Thanks inadvance,

_CJ 

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



Re: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Curtney Jacobs
The form is first populated with the user information from a database. So, 
their is a populated ProfileActionForm that is within the current user 
session.

If I make some changes to the profile information then submit the form the 
database does have the updated information, however, the form does not 
reflect the updated information after submit, it shows the data it was first 
populated with. 

What I would like is that, after submitting the form the redisplayed form to 
show the updated information.

(Note: after submitting the form, the form redisplay again)

_CJ


On Tuesday 29 July 2003 04:45 am, Mainguy, Mike wrote:
 You shouldn't have to do that.  If your form already has all of the values
 coming in, unless you reinitialize your form, it will still have them going
 out.  The only things you may have to fool with are values that where not
 submitted with the form.

 Am I missing something?

 -Original Message-
 From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 10:38 AM
 To: Struts Users Mailing List
 Subject: Reflecting Changes in a Form After data has been updated

 Greetings everyone!

 I have an input form where my users can update their profile. After the
 user

 have select the Update button I would like the form to reflect the
 updated

 information the user has just submitted.

 What is the best way to implement this?

 I can think of one way; in my update action class after the data has been
 successfully updated in the database, copy the fields from my value object
 (updated data) back into the ActionForm and subsequently put it back into
 the
 current session. Is this the most efficient/elegant way of doing this?


 Thanks inadvance,

 _CJ

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


 This message and its contents (to include attachments) are the property of
 Kmart Corporation (Kmart) and may contain confidential and proprietary
 information. You are hereby notified that any disclosure, copying, or
 distribution of this message, or the taking of any action based on
 information contained herein is strictly prohibited. Unauthorized use of
 information contained herein may subject you to civil and criminal
 prosecution and penalties. If you are not the intended recipient, you
 should delete this message immediately.



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


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



Re: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Curtney Jacobs
No. The same form displays and update the data.

When the user clicks on his/her name the form is populated with his/her 
profile information. The information can then be edited by the user. After 
editing the information the user clicks update. The data is updated and the 
same form redisplays again reflecting the updated information.

It just seems that the session still holds on to the previous information 
(before the update).

_CJ

On Tuesday 29 July 2003 09:05 am, Mainguy, Mike wrote:
 So you're saying the form that is used to update the data is different than
 the form that is used to display it?

 -Original Message-
 From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 12:05 PM
 To: Struts Users Mailing List
 Subject: Re: Reflecting Changes in a Form After data has been updated

 The form is first populated with the user information from a database. So,
 their is a populated ProfileActionForm that is within the current user
 session.

 If I make some changes to the profile information then submit the form the
 database does have the updated information, however, the form does not
 reflect the updated information after submit, it shows the data it was
 first

 populated with.

 What I would like is that, after submitting the form the redisplayed form
 to

 show the updated information.

 (Note: after submitting the form, the form redisplay again)

 _CJ

 On Tuesday 29 July 2003 04:45 am, Mainguy, Mike wrote:
  You shouldn't have to do that.  If your form already has all of the
  values coming in, unless you reinitialize your form, it will still have
  them

 going

  out.  The only things you may have to fool with are values that where not
  submitted with the form.
 
  Am I missing something?
 
  -Original Message-
  From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 23, 2003 10:38 AM
  To: Struts Users Mailing List
  Subject: Reflecting Changes in a Form After data has been updated
 
  Greetings everyone!
 
  I have an input form where my users can update their profile. After the
  user
 
  have select the Update button I would like the form to reflect the
  updated
 
  information the user has just submitted.
 
  What is the best way to implement this?
 
  I can think of one way; in my update action class after the data has been
  successfully updated in the database, copy the fields from my value
  object (updated data) back into the ActionForm and subsequently put it
  back into the
  current session. Is this the most efficient/elegant way of doing this?
 
 
  Thanks inadvance,
 
  _CJ
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  This message and its contents (to include attachments) are the property
  of Kmart Corporation (Kmart) and may contain confidential and proprietary
  information. You are hereby notified that any disclosure, copying, or
  distribution of this message, or the taking of any action based on
  information contained herein is strictly prohibited. Unauthorized use of
  information contained herein may subject you to civil and criminal
  prosecution and penalties. If you are not the intended recipient, you
  should delete this message immediately.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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


 This message and its contents (to include attachments) are the property of
 Kmart Corporation (Kmart) and may contain confidential and proprietary
 information. You are hereby notified that any disclosure, copying, or
 distribution of this message, or the taking of any action based on
 information contained herein is strictly prohibited. Unauthorized use of
 information contained herein may subject you to civil and criminal
 prosecution and penalties. If you are not the intended recipient, you
 should delete this message immediately.



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


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



Re: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Curtney Jacobs
Sovle it. 

Thanks for the replies Mike, it got my brain thinking.

The problem and solution is listed below, just in case anyone else is having a 
similar problem.

The  problem was I was storing the prepopulated ActionForm in the session 
scope while the new updated ActionForm was stored in the current request 
scope. Thus, after the update request was completed that instance of the 
ActionForm was lost and the ActionForm stored in the session (old data) was 
just redisplayed. Therefore, all I had to do was change my  update action 
within my action mapping from request to session.


_CJ

My problem was I was storing

On Tuesday 29 July 2003 10:12 am, Mainguy, Mike wrote:
 That seems odd. Are you sure you aren't somehow loading the old data
 somewhere before you actually do the update operation.  Perhaps you are
 inadvertently doing a POST-LoadFromDB-SaveToDB-Respond.  I had that
 particular problem at one point.

 On another note, there is another thread currently active on the mailing
 list that is rather similar (Subject is:  Form Bean Help?)

 -Original Message-
 From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 1:57 PM
 To: Struts Users Mailing List
 Subject: Re: Reflecting Changes in a Form After data has been updated

 No. The same form displays and update the data.

 When the user clicks on his/her name the form is populated with his/her
 profile information. The information can then be edited by the user. After
 editing the information the user clicks update. The data is updated and
 the
 same form redisplays again reflecting the updated information.

 It just seems that the session still holds on to the previous information
 (before the update).

 _CJ

 On Tuesday 29 July 2003 09:05 am, Mainguy, Mike wrote:
  So you're saying the form that is used to update the data is different

 than

  the form that is used to display it?
 
  -Original Message-
  From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 23, 2003 12:05 PM
  To: Struts Users Mailing List
  Subject: Re: Reflecting Changes in a Form After data has been updated
 
  The form is first populated with the user information from a database.
  So, their is a populated ProfileActionForm that is within the current
  user session.
 
  If I make some changes to the profile information then submit the form
  the database does have the updated information, however, the form does
  not reflect the updated information after submit, it shows the data it
  was first
 
  populated with.
 
  What I would like is that, after submitting the form the redisplayed form
  to
 
  show the updated information.
 
  (Note: after submitting the form, the form redisplay again)
 
  _CJ
 
  On Tuesday 29 July 2003 04:45 am, Mainguy, Mike wrote:
   You shouldn't have to do that.  If your form already has all of the
   values coming in, unless you reinitialize your form, it will still have
   them
 
  going
 
   out.  The only things you may have to fool with are values that where

 not

   submitted with the form.
  
   Am I missing something?
  
   -Original Message-
   From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 23, 2003 10:38 AM
   To: Struts Users Mailing List
   Subject: Reflecting Changes in a Form After data has been updated
  
   Greetings everyone!
  
   I have an input form where my users can update their profile. After the
   user
  
   have select the Update button I would like the form to reflect the
   updated
  
   information the user has just submitted.
  
   What is the best way to implement this?
  
   I can think of one way; in my update action class after the data has

 been

   successfully updated in the database, copy the fields from my value
   object (updated data) back into the ActionForm and subsequently put it
   back into the
   current session. Is this the most efficient/elegant way of doing this?
  
  
   Thanks inadvance,
  
   _CJ
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   This message and its contents (to include attachments) are the property
   of Kmart Corporation (Kmart) and may contain confidential and

 proprietary

   information. You are hereby notified that any disclosure, copying, or
   distribution of this message, or the taking of any action based on
   information contained herein is strictly prohibited. Unauthorized use
   of information contained herein may subject you to civil and criminal
   prosecution and penalties. If you are not the intended recipient, you
   should delete this message immediately.
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail

Re: OTP-Dynamically building an SQL Query from ActionForm inputs

2003-07-21 Thread Curtney Jacobs
Thanks David.  I understand.

_CJ

On Sunday 20 July 2003 01:03 pm, David Graham wrote:
 --- Curtney Jacobs [EMAIL PROTECTED] wrote:
  Greetings David.
 
  I understood everything up to the point where I have to read in a
  properties
  file. If it is not to much of a problem., can you please elaborate from
  that
  point downwards.

 Regardless of whether or not you store SQL in a properties file, the idea
 is that you have one map with criteria_name=user_value and another map
 with criteria_name=SQL_chunk.  That way, you can easily insert the value
 the user typed in into the matching SQL chunk that performs the query.
 You construct the full query string from the various chunks.

 David

  I thought that once I have the criteria I would just build the SQL
  query.
  However, your approach appears to be more elegant and flexible (the
  ability
  to easily add more criterias when needed).
 
  Thanks,
 
  CJ
 
  On Saturday 19 July 2003 04:15 pm, David Graham wrote:
   Name all of your search fields using this pattern:
   criteria(name).   For example,
   input name=criteria(firstName)
   input name=criteria(email)
  
   Now use a Map backed form attribute called criteria in your form bean
 
  with
 
   a method like this:
   public void setCriteria(Map criteria) {
  this.criteria=criteria;
   }
  
   When the form is submitted you'll now have each criteria + its value
 
  from
 
   the form in the Map like [EMAIL PROTECTED]
  
   Now read in a properties file of criteria_name=SQL_chunk, for example:
   email=AND schema.person.emailAddress=''{0}''
  
   Then loop through your criteria keys and use MessageFormat to insert
 
  the
 
   value into the SQL chunk and append it to the total query string.
 
  Notice
 
   that your SQL property names must be the same as the criteria names
 
  used
 
   on the form.  I used this technique recently (without Struts so I had
 
  to
 
   do the Map backed form business by hand); it's really not very much
 
  code
 
   and is easy to add criteria to.
  
   David
  
   --- Curtney Jacobs [EMAIL PROTECTED] wrote:
Hi everyone,
   
I know this is of the topic but I am hoping that someone has came
accross this
and wouldn't mine shareing with me how they eloquently solve this
problem.
   
   
I have an ActionForm (and corresponding Action class) that takes
 
  input
 
from
the user and does a search depending on the inputed criteria. With
 
  three
 
or
four criteria it is not a problem to dynamically build the query,
however my
input form will be growing to about 10-15 criteria.
   
Also, the search criteria may span serveral tables. If you have an
elegant
solution to this problem/task please share.
   
Currently, I have the following. Not very elegant.
   
StringBuffer queryStr = new StringBuffer();
   
queryStr.append(select * from  + TableNames.STUDENT_TABLE + 
 
  where
 
1=1);
   
 /* append additional conditions to where clause depending on the
 
  values
 
specified in studentVO */
   
if (studentVO.getStudentID()  0) {
queryStr.append ( and student_id = ' +
studentVO.getStudentID() +
');
 }
 if (studentVO.getLastName() != null 
(studentVO.getLastName().length())
   
 0 ) {
   
queryStr.append( and lastname = ' +
 
  studentVO.getLastName() +
 
');
 }
 if (studentVO.getFirstName() != null 
(studentVO.getFirstName().length() )  0) {
queryStr.append( and firstname = ' +
 
  studentVO.getFirstName()
 
+
');
 }
 queryStr.append(;);
   
   
   
Thanks inadvance,
   
Curtney Jacobs
 
  -
 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
   __
   Do you Yahoo!?
   SBC Yahoo! DSL - Now only $29.95 per month!
   http://sbc.yahoo.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

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


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



OTP-Dynamically building an SQL Query from ActionForm inputs

2003-07-19 Thread Curtney Jacobs
Hi everyone,

I know this is of the topic but I am hoping that someone has came accross this 
and wouldn't mine shareing with me how they eloquently solve this problem.


I have an ActionForm (and corresponding Action class) that takes input from 
the user and does a search depending on the inputed criteria. With three or 
four criteria it is not a problem to dynamically build the query, however my 
input form will be growing to about 10-15 criteria.

Also, the search criteria may span serveral tables. If you have an elegant 
solution to this problem/task please share.

Currently, I have the following. Not very elegant.

StringBuffer queryStr = new StringBuffer();

queryStr.append(select * from  + TableNames.STUDENT_TABLE +  where 1=1);

 /* append additional conditions to where clause depending on the values 
specified in studentVO */

if (studentVO.getStudentID()  0) {
queryStr.append ( and student_id = ' + studentVO.getStudentID() + 
');
 }
 if (studentVO.getLastName() != null  (studentVO.getLastName().length()) 
 0 ) {
queryStr.append( and lastname = ' + studentVO.getLastName() + '); 
 }
 if (studentVO.getFirstName() != null  
(studentVO.getFirstName().length() )  0) {
queryStr.append( and firstname = ' + studentVO.getFirstName() + 
');
 }
 queryStr.append(;); 



Thanks inadvance,

Curtney Jacobs

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



Re: OTP-Dynamically building an SQL Query from ActionForm inputs

2003-07-19 Thread Curtney Jacobs
Greetings David.

I understood everything up to the point where I have to read in a properties 
file. If it is not to much of a problem., can you please elaborate from that 
point downwards.

I thought that once I have the criteria I would just build the SQL query. 
However, your approach appears to be more elegant and flexible (the ability 
to easily add more criterias when needed).

Thanks,

CJ

On Saturday 19 July 2003 04:15 pm, David Graham wrote:
 Name all of your search fields using this pattern:
 criteria(name).   For example,
 input name=criteria(firstName)
 input name=criteria(email)

 Now use a Map backed form attribute called criteria in your form bean with
 a method like this:
 public void setCriteria(Map criteria) {
this.criteria=criteria;
 }

 When the form is submitted you'll now have each criteria + its value from
 the form in the Map like [EMAIL PROTECTED]

 Now read in a properties file of criteria_name=SQL_chunk, for example:
 email=AND schema.person.emailAddress=''{0}''

 Then loop through your criteria keys and use MessageFormat to insert the
 value into the SQL chunk and append it to the total query string.  Notice
 that your SQL property names must be the same as the criteria names used
 on the form.  I used this technique recently (without Struts so I had to
 do the Map backed form business by hand); it's really not very much code
 and is easy to add criteria to.

 David

 --- Curtney Jacobs [EMAIL PROTECTED] wrote:
  Hi everyone,
 
  I know this is of the topic but I am hoping that someone has came
  accross this
  and wouldn't mine shareing with me how they eloquently solve this
  problem.
 
 
  I have an ActionForm (and corresponding Action class) that takes input
  from
  the user and does a search depending on the inputed criteria. With three
  or
  four criteria it is not a problem to dynamically build the query,
  however my
  input form will be growing to about 10-15 criteria.
 
  Also, the search criteria may span serveral tables. If you have an
  elegant
  solution to this problem/task please share.
 
  Currently, I have the following. Not very elegant.
 
  StringBuffer queryStr = new StringBuffer();
 
  queryStr.append(select * from  + TableNames.STUDENT_TABLE +  where
  1=1);
 
   /* append additional conditions to where clause depending on the values
 
  specified in studentVO */
 
  if (studentVO.getStudentID()  0) {
  queryStr.append ( and student_id = ' +
  studentVO.getStudentID() +
  ');
   }
   if (studentVO.getLastName() != null 
  (studentVO.getLastName().length())
 
   0 ) {
 
  queryStr.append( and lastname = ' + studentVO.getLastName() +
  ');
   }
   if (studentVO.getFirstName() != null 
  (studentVO.getFirstName().length() )  0) {
  queryStr.append( and firstname = ' + studentVO.getFirstName()
  +
  ');
   }
   queryStr.append(;);
 
 
 
  Thanks inadvance,
 
  Curtney Jacobs
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

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


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



Bread crumb trail

2003-07-18 Thread Curtney Jacobs
Greetings!

About two weeks ago someone said they would post the Tiles implementation of a 
Bread crumb trail, if requested.

I requested. What happened to the Bread crumb trail post?


_CJ

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



Re: Bread crumb trail

2003-07-09 Thread Curtney Jacobs
Thank you Cal, sending the code would be great. I am interested in looking at 
the two different ways of implementing the breadcrumbs.

_CJ


On Wednesday 09 July 2003 7:57 am, Navjot Singh wrote:
 no better documentation than code itself ;-)
 can you post it?

 |-Original Message-
 |From: Holman, Cal [mailto:[EMAIL PROTECTED]
 |Sent: Wednesday, July 09, 2003 4:44 PM
 |To: Struts Users Mailing List
 |Subject: RE: Bread crumb trail
 |
 |
 |I have created breadcrumbs two ways one using a TilesAction to
 |read the tiles definitions and a simpler tag that access the tiles
 |definitions.  I can send you the code if you are interested.  I
 |have not created a tutorial.
 |
 |Cal
 |
 |http://www.calandva.com/
 |
 |-Original Message-
 |From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
 |Sent: Tuesday, July 01, 2003 16:25
 |To: Struts Users Mailing List
 |Subject: Bread crumb trail
 |
 |Greetings!!
 |
 |Does anyone know of a bread crumb trail implemenation using Struts
 |and Tiles?
 |A link to a tutorial/info would be helpful.
 |
 |Thanks inadvance,
 |
 |Curtney Jacobs
 |
 |
 |-
 |To unsubscribe, e-mail: [EMAIL PROTECTED]
 |For additional commands, e-mail: [EMAIL PROTECTED]
 |
 |
 |Learn more about Paymentech's payment processing services at

 www.paymentech.com
 THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are
 proprietary and confidential information intended only for the use of the
 recipient(s) named above.  If you are not the intended recipient, you may
 not print, distribute, or copy this message or any attachments.  If you
 have received this communication in error, please notify the sender by
 return e-mail and delete this message and any attachments from your
 computer.

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



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

-- 
U-Interface.com

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



Re: Bread crumb trail

2003-07-02 Thread Curtney Jacobs
Thanks sandeep. Will look into struts-layout.

_CJ


On Wednesday 02 July 2003 3:56 pm, Sandeep Takhar wrote:
 Don't know if this is one, but there is a
 struts-layout example.

 maybe try a google on struts-layout...

 sorry that's all I have..

 sandeep
 --- Curtney Jacobs [EMAIL PROTECTED]

 wrote:
  Greetings!!
 
  Does anyone know of a bread crumb trail
  implemenation using Struts and Tiles?
  A link to a tutorial/info would be helpful.
 
  Thanks inadvance,
 
  Curtney Jacobs

 -

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

 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

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

-- 
U-Interface.com

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



Bread crumb trail

2003-07-01 Thread Curtney Jacobs
Greetings!!

Does anyone know of a bread crumb trail implemenation using Struts and Tiles? 
A link to a tutorial/info would be helpful.

Thanks inadvance,

Curtney Jacobs


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



JUnit Error

2003-02-26 Thread Curtney Jacobs
Greetings everyone!!

I don't understand why I am receiving the following failure from JUnit. I am 
pretty sure that my log4j.xml file is properly constructed. 

I have checked the archive and someone did post a similiar question, however, 
there was no reply.

If you know the cause and solution to this error please don't be shy and 
reply.

_CJ

unit.framework.AssertionFailedError: Exception in constructor: testValidLogin 
(org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Log4JLogger does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:568)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:265)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
-- 
U-Interface.com

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



Making a Form non-editable

2003-01-21 Thread Curtney Jacobs
Greetings!!

Is there a way to make an entirre html form non-editable in struts? Meaning, 
all inputs, select, and radio fields would be disabled.

I am aware that the individual fields can be disabled by setting the disabled 
attribute to true for those fields. However, I would like to programmatically 
disable the entire form.

If the user has read-ony access, I would like the entire form to be disabled.

As far as I can see, the html:form / tag does not have a disabled attribute.

Any suggestions or comments are greatly appreciated.

_CJ
-- 
U-Interface.com

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




Re: Making a Form non-editable

2003-01-21 Thread Curtney Jacobs
Hello, 

Acutally, the user can read (see) the data, however, they cannot modify the 
data. What you are presenting actually prevents the user from seeing the data 
at all. 

Correct me if I am wrong.

_CJ


On Tuesday 21 January 2003 8:30 pm, Jarnot Voytek Contr AU HQ/SC wrote:
 That's what I do, I wrote a tag as such:

 myTags:ifUserInRole value=role1,role2
   markup in here is only visible to those in role1 or role2
 /myTags:ifUserInRole

 This breaks the 'presentation only' rule a little bit, but makes for a much
 more user-friendly UI.

-- 
U-Interface.com

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




Re: Making a Form non-editable

2003-01-21 Thread Curtney Jacobs
To everyone,


would it better to just have a seperate view to display read only data. In 
other words, do not use the form to display the queried data. But, simply  
use a JSP page to display the data (naturally, with proper formatting).

The above seems a tad bit cumbersome or redundant; having two seperate views 
for the display of the same data, however for different purposes.

Comments???

_CJ


On Tuesday 21 January 2003 1:05 pm, Curtney Jacobs wrote:
 Hello,

 Acutally, the user can read (see) the data, however, they cannot modify the
 data. What you are presenting actually prevents the user from seeing the
 data at all.

 Correct me if I am wrong.

 _CJ

 On Tuesday 21 January 2003 8:30 pm, Jarnot Voytek Contr AU HQ/SC wrote:
  That's what I do, I wrote a tag as such:
 
  myTags:ifUserInRole value=role1,role2
markup in here is only visible to those in role1 or role2
  /myTags:ifUserInRole
 
  This breaks the 'presentation only' rule a little bit, but makes for a
  much more user-friendly UI.

-- 
U-Interface.com

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




Re: Making a Form non-editable

2003-01-21 Thread Curtney Jacobs
Sorry Jarot,

I misunderstood you. I stand corrected. This will definetly prevent the user 
from submitting the form via the submit button.

_CJ

On Tuesday 21 January 2003 9:21 pm, Jarnot Voytek Contr AU HQ/SC wrote:
 I put the form submit button in that tag, they can see everything else.

-- 
U-Interface.com

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




Re: Making a Form non-editable

2003-01-21 Thread Curtney Jacobs
Hello Mark.

 
Just so I don't misuderstand, are you saying that for each input tag there 
is a corresponding hidden tag. If displaying read-only data, then input tag 
corresponding hidden tag is shown and the input tag is disabled. Correct??

If my understanding is correct, how do you programmatically disable the 
input tag? I know the disable attribute has to be set to true. At what 
point do I do this.

I am sorry if the answere to this is obvious :)

_CJ




On Tuesday 21 January 2003 9:41 pm, Mark Lepkowski wrote:
 We have a field that at times needs to be non-editable but displayed and
 other times editable independent of user role.

 To accomplish that we use a logic:equals tag to determine which to
 display the active inputs or the read-only display with hidden inputs.  If
 we're displaying read-only, then we carry the actual values in a
 html:hidden tag and disable the corresponding input tag (e.g.,
 checkbox)...

 - Original Message -
 From: Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, January 21, 2003 4:21 PM
 Subject: RE: Making a Form non-editable

  I put the form submit button in that tag, they can see everything else.
 
  --
  Voytek Jarnot
  Quidquid latine dictum sit, altum viditur.
 
 
  -Original Message-
  From: Curtney Jacobs [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 21, 2003 7:06 AM
  To: Struts Users Mailing List
  Subject: Re: Making a Form non-editable
 
 
  Hello,
 
  Acutally, the user can read (see) the data, however, they cannot modify
  the data. What you are presenting actually prevents the user from seeing
  the data
  at all.
 
  Correct me if I am wrong.
 
  _CJ
 
  On Tuesday 21 January 2003 8:30 pm, Jarnot Voytek Contr AU HQ/SC wrote:
   That's what I do, I wrote a tag as such:
  
   myTags:ifUserInRole value=role1,role2
 markup in here is only visible to those in role1 or role2
   /myTags:ifUserInRole
  
   This breaks the 'presentation only' rule a little bit, but makes for a
 
  much
 
   more user-friendly UI.
 
  --
  U-Interface.com
 
  --
  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]

-- 
U-Interface.com

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




Security Filter and ActionForm

2003-01-10 Thread Curtney Jacobs
Greetings!!

I have a login ActionForm (LogInForm) and a associated login Action class 
(LogInAction). When the form is submitted, the request is intercepted by a 
Security Filter. The Security filter authenticates and perform necessary 
authorization checks on the user via a ldap server.

If the user authentication fails, let say because of an invalid password, how 
can I use my ActionForm (LogInForm) to indicate this error to the user?

I am aware that the Struts ActionForm and Action  have not even been 
instantiated/intitialize, since the security filter intercepted the request.

I have thought of setting an attribute in the request scope, for example, an 
invalid flag that the ActionForm validate method can check for. This will 
then trigger the display of the login form and asociated error message to the 
user.

I am not sure if the above is good practice :(

Any suggestions or comments will be much appreciated.

Curtney Jacobs
-- 
U-Interface.com

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




Re: PrePopulation of FormBean Values

2003-01-06 Thread Curtney Jacobs
Hi, 
this has been discussed before. Do a search on the list archive

_CJ.


On Thursday 02 May 2002 10:23 am, ashokd wrote:
 Hi,

 How to propopulate the Form values in a Form (which is using the Struts
 FormBean)

 The scope of the FormBean is request.

 Please provide an example on this.

 Thanks in Advance,
 Ashok.D

-- 
U-Interface.com

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




Fwd: Re: Populating multiple forms from one action class

2002-12-05 Thread Curtney Jacobs

Sorry, this is for everyone too.

_CJ
--  Forwarded Message  --

Subject: Re: Populating multiple forms from one action class
Date: Wed, 4 Dec 2002 23:42:14 +
From: Curtney Jacobs [EMAIL PROTECTED]
To: Craig R. McClanahan [EMAIL PROTECTED]

Greetings Craig!!

just to verify.

So, it is possible to populate multiple forms (contained on a single JSP
 page) from within one action class.

For instance, I intend to have one action class that pre-populates three form
beans: education, guardian, and enrollment.

Currently, I have the action class pre-populating only one form bean and
putting it into the current session, however, the data is not shown in the
form when the jsp page is displayed. It only work when I associate the action
to the form bean within my struts-config.xml

Thanks in advance,

Curtney Jacobs

On Monday 02 December 2002 1:12 am, you wrote:
 On Fri, 29 Nov 2002, Curtney Jacobs wrote:
  Date: Fri, 29 Nov 2002 11:43:24 +
  From: Curtney Jacobs [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: Populating multiple forms from one action class
 
  Greetings!!
 
  I understand what you are saying. However,  I was thinking that  it might
  be possible to pre-populate the ActionForms with a generic action class
  (not tied to any particular form) and put them in the current session.
 
  The following is an excerpt from Mastering Jakarta Struts that supports
  my idea.
 
 
 
   if the sesion already includes an instance of the ActionForm named by
  the form element's name attribute, then the values stored in its data
  members will be used to prepopulate the input values. 

 Prepopulating input forms this way (by setting up the form bean in an
 Action that preceeds the display of the form) is a very standard approach
 in Struts based applications.  It's a perfectly reasonable thing to do.

 Whether you do it with a generic Action, or a customized Action for each
 type of form is pretty much up to you.

  If anyone else have any opinions on this please don't be afraid to
  comment :-)
 
  Thanks in advance,
 
  Curtney Jacobs

 Craig

--
U-Interface.com

---

-- 
U-Interface.com

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




Re: Fwd: Re: Populating multiple forms from one action class

2002-12-05 Thread Curtney Jacobs
Greetings!!

I have solved the problem, quite simple really.

I was not associating the ActionForm instance to the form bean declared in my 
struts-config.xml file.

However, I would like a cleaner approach to doing the association. Currently, 
I have the following in my generic action class:

request.getSession().setAttribute(StudentForm, sForm);
request.getSession().setAttribute(GuardianForm, gForm);

Thanks in advance,

Curtney Jacobs

On Thursday 05 December 2002 12:11 am, Curtney Jacobs wrote:
 Sorry, this is for everyone too.

 _CJ
 --  Forwarded Message  --

 Subject: Re: Populating multiple forms from one action class
 Date: Wed, 4 Dec 2002 23:42:14 +
 From: Curtney Jacobs [EMAIL PROTECTED]
 To: Craig R. McClanahan [EMAIL PROTECTED]

 Greetings Craig!!

 just to verify.

 So, it is possible to populate multiple forms (contained on a single JSP
  page) from within one action class.

 For instance, I intend to have one action class that pre-populates three
 form beans: education, guardian, and enrollment.

 Currently, I have the action class pre-populating only one form bean and
 putting it into the current session, however, the data is not shown in the
 form when the jsp page is displayed. It only work when I associate the
 action to the form bean within my struts-config.xml

 Thanks in advance,

 Curtney Jacobs

 On Monday 02 December 2002 1:12 am, you wrote:
  On Fri, 29 Nov 2002, Curtney Jacobs wrote:
   Date: Fri, 29 Nov 2002 11:43:24 +
   From: Curtney Jacobs [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: Re: Populating multiple forms from one action class
  
   Greetings!!
  
   I understand what you are saying. However,  I was thinking that  it
   might be possible to pre-populate the ActionForms with a generic action
   class (not tied to any particular form) and put them in the current
   session.
  
   The following is an excerpt from Mastering Jakarta Struts that
   supports my idea.
  
  
  
if the sesion already includes an instance of the ActionForm named by
   the form element's name attribute, then the values stored in its data
   members   will be used to prepopulate the input values. 
 
  Prepopulating input forms this way (by setting up the form bean in an
  Action that preceeds the display of the form) is a very standard approach
  in Struts based applications.  It's a perfectly reasonable thing to do.
 
  Whether you do it with a generic Action, or a customized Action for each
  type of form is pretty much up to you.
 
   If anyone else have any opinions on this please don't be afraid to
   comment :-)
  
   Thanks in advance,
  
   Curtney Jacobs
 
  Craig

-- 
U-Interface.com

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




Re: Populating multiple forms from one action class

2002-11-29 Thread Curtney Jacobs
Greetings!!

I understand what you are saying. However,  I was thinking that  it might be 
possible to pre-populate the ActionForms with a generic action class (not 
tied to any particular form) and put them in the current session.
  
The following is an excerpt from Mastering Jakarta Struts that supports my 
idea.  



 if the sesion already includes an instance of the ActionForm named by  
the form element's name attribute, then the values stored in its data   
members will be used to prepopulate the input values. 



If anyone else have any opinions on this please don't be afraid to comment :-)

Thanks in advance,

Curtney Jacobs

On Friday 29 November 2002 12:24 pm, Sven Frederik Pohl wrote:
 Hi Curtney,

 The forms could only be populated if the form data is send via the HTTP
 request. that only happens if the there is only one enclosing HTML form.
 Since (as far as I know) the html:form Tag is bound to exact one HTML
 form, I don't think that this is possible. You could possibly inherit one
 overall form from all the simple forms but you will run into problems with
 validation (hence only one validate method for the form) and the form name
 (the form extending all the other forms will be saved under a single
 overall name) and even properbly form bean property names if they
 interfere, so this does not seam a good approach to me. But you could try,
 or more straight forward use only one form for related fields that should
 be all populated together.

 Hope that helps,

 Sven
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

 -Original Message-
 From: Curtney Jacobs [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 28. November 2002 17:15
 To: [EMAIL PROTECTED]
 Subject: Populating multiple forms from one action class


 Greetings!

 is it possible to populate multiple forms on the same jsp page from only
 one action class?

 I have three forms (more may be added later on) on one jsp page. Each form
 is associated with its own action class for updating (submit) data.
 However, when I select an employee I would like to populate all three forms
 simutaneously.

 Thanks in advance,

 Curtney Jacobs

-- 
U-Interface.com

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




Populating multiple forms from one action class

2002-11-28 Thread Curtney Jacobs
Greetings!

is it possible to populate multiple forms on the same jsp page from only one 
action class? 

I have three forms (more may be added later on) on one jsp page. Each form is 
associated with its own action class for updating (submit) data. However, 
when I select an employee I would like to populate all three forms 
simutaneously.

Thanks in advance,

Curtney Jacobs

-- 
U-Interface.com

--
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

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

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

NullPointerException in TabsLayout??

2002-10-05 Thread Curtney Jacobs

Greetings!!

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

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

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

Below is the error message I am receiving.
 
(Sorry Cedric, I should have posted the error message earlier)

All help is greatly appreciated.

_CJ


- Root Cause -
java.lang.NullPointerException
at org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:121)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
at 
org.apache.jsp.classicLayout_jsp._jspx_meth_tiles_insert_2(classicLayout_jsp.java:160)
at org.apache.jsp.classicLayout_jsp._jspService(classicLayout_jsp.java:81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
at org.apache.jsp.tabs_jsp._jspx_meth_tiles_insert_0(tabs_jsp.java:76)
at org.apache.jsp.tabs_jsp._jspService(tabs_jsp.java:53)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 

Re: tabsLayout.jsp ServletException??

2002-10-04 Thread Curtney Jacobs

Hi,

I am using Resin EJB server.  I begining to think that the problems I am 
having could be due to the container. I will download tomcat and run your 
tiles examples on it. If that works, then I have to look closely at my resin 
configurations.

Thanks for your assistance,

_CJ

On Monday 30 September 2002 8:50 pm, Curtney Jacobs wrote:
 Sorry, just wanted to restate the last question.

 Does tabs works under the struts 1.1-b2?

 _CJ

 On Monday 30 September 2002 8:45 pm, Curtney Jacobs wrote:
  Hi,
  you are correct, the web server could not find the specified class. I
  included necessary information within my classpath environment variable.
  I no longer get that error. However, I still get the tab layout error:
  [ServletException in:/layouts/tabsLayout.jsp] null'
 
  It seem that some value is null, perhaps a  parameter the tabsLayout.jsp
  is requiring? I have checked the pre-conditions and everything seems to
  be in order.
 
  I have the beta version of struts: version 1.1-b2.
 
  Does the tabs works for you?
 
  _CJ
 
  On Monday 30 September 2002 9:52 am, Cedric Dumoulin wrote:
 So, the web server can't find the specified class. Can you check if
   the class is present in
   WEB-INF/classes/org/apache/struts/webapp/tiles/portal/. ? If not, check
   if it is in the war file. If still not there, it is a bug. Do you have
   the latest version of Tiles or Struts ?
  
   Cedric
  
   Curtney Jacobs wrote:
   Hi,
   thank you for replying. As you suggested, I tried to see if the
tiles-doc.war files work for my configuation. I am still getting the
same error with an additional error that
org.apache.struts.webapp.tiles.portal.UserMenuAction is not found.
   
   I have tried browsing through the API for this class and I could not
find it. Hmmm.
   
   The following is the exact error I got:
   
   [ServletException in:/layouts/vboxLayout.jsp] Error - Class not found
   
   :org.apache.struts.webapp.tiles.portal.UserMenuAction'
   
   [ServletException in:/layouts/tabsLayout.jsp] null'
   
   Again, anymore suggestion/advice would be helpful.
   
   _CJ
   
   On Friday 27 September 2002 10:12 am, Cedric Dumoulin wrote:
   Hi,
   
  Sorry for this late answer, I am abroad since 2 weeks, and have
some trouble with my mails.
   
   Don't you have more message error ?
   Maybe you have a problem with one of your tiles. Can you try them
   separately, especially the ones inserted inside tabs.
   Also, can you confirm that tabs from tiles-doc war files work for
your configuration ?
   
  Cedric
   
   Curtney Jacobs wrote:
 Greetings everyone!!
 
 I am trying to incoporate a tab layout in one of my jsp pages. I
  have
   
   download
   
 the tiles layout examples from the tiles website and I have
  configured my tiles-defs.xml similar to the examples.
 
 However I am getting the following error message:
 
  [ServletException in:/layout/tabsLayout.jsp]'
 
 
 Any comments or suggestions would be greatly appreciated.
 
 Thank you.
 ps.
 The Following is what my tiles-defs.xml look like:
 
 tiles-definitions
 
!--  --
!-- Master Layout--
!--  --
!-- Master layout and default layout used by all pages --
   definition name=sesm.master.page
  path=/layout/classicLayout.jsp put name=title
  value=Special Education Student Management
   
   Master
   
 Layout /
  put name=header  value=/common/default_header.jsp /
  put name=menuvalue=/common/default_menu.jsp /
  put name=footer  value=/common/default_footer.jsp /
  put name=bodyvalue=/common/default_body.jsp /
/definition
 
   definition name=sesm.index.page extends=sesm.master.page
  put name=title value=Specia Education Student Management
   
   (SESM) /
   
  put name=body  value=sesm.tab.body /
   /definition
 
   definition name=sesm.tab.page extends=sesm.master.page
  put name=title value=SESM TABS /
  put name=body  value=sesm.tab.body /
   /definition
 
   definition name=sesm.tab.body path=/layout/tabsLayout.jsp
  put name=selectedIndex value=0 /
  put name=parameterName value=selected /
 
  putList name=tabList
 item value=Header link=/common/default_header.jsp
 classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
 item value=Footer link=/common/default_footer.jsp
 classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
  /putList
   /definition
 
 
 
 /tiles-definitions
 
 I have checked my

-- 
U-Interface.com

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




Re: tabsLayout.jsp ServletException??

2002-09-30 Thread Curtney Jacobs

Hi,
you are correct, the web server could not find the specified class. I included 
necessary information within my classpath environment variable. I no longer 
get that error. However, I still get the tab layout error: [ServletException 
in:/layouts/tabsLayout.jsp] null'

It seem that some value is null, perhaps a  parameter the tabsLayout.jsp is 
requiring? I have checked the pre-conditions and everything seems to be in 
order.

I have the beta version of struts: version 1.1-b2.

Does the tabs works for you?

_CJ 

On Monday 30 September 2002 9:52 am, Cedric Dumoulin wrote:
   So, the web server can't find the specified class. Can you check if
 the class is present in
 WEB-INF/classes/org/apache/struts/webapp/tiles/portal/. ? If not, check
 if it is in the war file. If still not there, it is a bug. Do you have
 the latest version of Tiles or Struts ?

 Cedric

 Curtney Jacobs wrote:
 Hi,
 thank you for replying. As you suggested, I tried to see if the
  tiles-doc.war files work for my configuation. I am still getting the same
  error with an additional error that
  org.apache.struts.webapp.tiles.portal.UserMenuAction is not found.
 
 I have tried browsing through the API for this class and I could not find
  it. Hmmm.
 
 The following is the exact error I got:
 
 [ServletException in:/layouts/vboxLayout.jsp] Error - Class not found
 
 :org.apache.struts.webapp.tiles.portal.UserMenuAction'
 
 [ServletException in:/layouts/tabsLayout.jsp] null'
 
 Again, anymore suggestion/advice would be helpful.
 
 _CJ
 
 On Friday 27 September 2002 10:12 am, Cedric Dumoulin wrote:
 Hi,
 
Sorry for this late answer, I am abroad since 2 weeks, and have some
 trouble with my mails.
 
 Don't you have more message error ?
 Maybe you have a problem with one of your tiles. Can you try them
 separately, especially the ones inserted inside tabs.
 Also, can you confirm that tabs from tiles-doc war files work for
  your configuration ?
 
Cedric
 
 Curtney Jacobs wrote:
   Greetings everyone!!
   
   I am trying to incoporate a tab layout in one of my jsp pages. I have
 
 download
 
   the tiles layout examples from the tiles website and I have configured
my tiles-defs.xml similar to the examples.
   
   However I am getting the following error message:
   
[ServletException in:/layout/tabsLayout.jsp]'
   
   
   Any comments or suggestions would be greatly appreciated.
   
   Thank you.
   ps.
   The Following is what my tiles-defs.xml look like:
   
   tiles-definitions
   
  !--  --
  !-- Master Layout--
  !--  --
  !-- Master layout and default layout used by all pages --
 definition name=sesm.master.page
path=/layout/classicLayout.jsp put name=title   value=Special
Education Student Management
 
 Master
 
   Layout /
put name=header  value=/common/default_header.jsp /
put name=menuvalue=/common/default_menu.jsp /
put name=footer  value=/common/default_footer.jsp /
put name=bodyvalue=/common/default_body.jsp /
  /definition
   
 definition name=sesm.index.page extends=sesm.master.page
put name=title value=Specia Education Student Management
 
 (SESM) /
 
put name=body  value=sesm.tab.body /
 /definition
   
 definition name=sesm.tab.page extends=sesm.master.page
put name=title value=SESM TABS /
put name=body  value=sesm.tab.body /
 /definition
   
 definition name=sesm.tab.body path=/layout/tabsLayout.jsp
put name=selectedIndex value=0 /
put name=parameterName value=selected /
   
putList name=tabList
   item value=Header link=/common/default_header.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
   item value=Footer link=/common/default_footer.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
/putList
 /definition
   
   
   
   /tiles-definitions
   
   I have checked my

-- 
U-Interface.com

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




Re: tabsLayout.jsp ServletException??

2002-09-30 Thread Curtney Jacobs

Sorry, just wanted to restate the last question.

Does tabs works under the struts 1.1-b2?

_CJ
On Monday 30 September 2002 8:45 pm, Curtney Jacobs wrote:
 Hi,
 you are correct, the web server could not find the specified class. I
 included necessary information within my classpath environment variable. I
 no longer get that error. However, I still get the tab layout error:
 [ServletException in:/layouts/tabsLayout.jsp] null'

 It seem that some value is null, perhaps a  parameter the tabsLayout.jsp is
 requiring? I have checked the pre-conditions and everything seems to be in
 order.

 I have the beta version of struts: version 1.1-b2.

 Does the tabs works for you?

 _CJ

 On Monday 30 September 2002 9:52 am, Cedric Dumoulin wrote:
So, the web server can't find the specified class. Can you check if
  the class is present in
  WEB-INF/classes/org/apache/struts/webapp/tiles/portal/. ? If not, check
  if it is in the war file. If still not there, it is a bug. Do you have
  the latest version of Tiles or Struts ?
 
  Cedric
 
  Curtney Jacobs wrote:
  Hi,
  thank you for replying. As you suggested, I tried to see if the
   tiles-doc.war files work for my configuation. I am still getting the
   same error with an additional error that
   org.apache.struts.webapp.tiles.portal.UserMenuAction is not found.
  
  I have tried browsing through the API for this class and I could not
   find it. Hmmm.
  
  The following is the exact error I got:
  
  [ServletException in:/layouts/vboxLayout.jsp] Error - Class not found
  
  :org.apache.struts.webapp.tiles.portal.UserMenuAction'
  
  [ServletException in:/layouts/tabsLayout.jsp] null'
  
  Again, anymore suggestion/advice would be helpful.
  
  _CJ
  
  On Friday 27 September 2002 10:12 am, Cedric Dumoulin wrote:
  Hi,
  
 Sorry for this late answer, I am abroad since 2 weeks, and have some
  trouble with my mails.
  
  Don't you have more message error ?
  Maybe you have a problem with one of your tiles. Can you try them
  separately, especially the ones inserted inside tabs.
  Also, can you confirm that tabs from tiles-doc war files work for
   your configuration ?
  
 Cedric
  
  Curtney Jacobs wrote:
Greetings everyone!!

I am trying to incoporate a tab layout in one of my jsp pages. I
 have
  
  download
  
the tiles layout examples from the tiles website and I have
 configured my tiles-defs.xml similar to the examples.

However I am getting the following error message:

 [ServletException in:/layout/tabsLayout.jsp]'


Any comments or suggestions would be greatly appreciated.

Thank you.
ps.
The Following is what my tiles-defs.xml look like:

tiles-definitions

   !--  --
   !-- Master Layout--
   !--  --
   !-- Master layout and default layout used by all pages --
  definition name=sesm.master.page
 path=/layout/classicLayout.jsp put name=title  
 value=Special Education Student Management
  
  Master
  
Layout /
 put name=header  value=/common/default_header.jsp /
 put name=menuvalue=/common/default_menu.jsp /
 put name=footer  value=/common/default_footer.jsp /
 put name=bodyvalue=/common/default_body.jsp /
   /definition

  definition name=sesm.index.page extends=sesm.master.page
 put name=title value=Specia Education Student Management
  
  (SESM) /
  
 put name=body  value=sesm.tab.body /
  /definition

  definition name=sesm.tab.page extends=sesm.master.page
 put name=title value=SESM TABS /
 put name=body  value=sesm.tab.body /
  /definition

  definition name=sesm.tab.body path=/layout/tabsLayout.jsp
 put name=selectedIndex value=0 /
 put name=parameterName value=selected /

 putList name=tabList
item value=Header link=/common/default_header.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
item value=Footer link=/common/default_footer.jsp
classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
 /putList
  /definition



/tiles-definitions

I have checked my

-- 
U-Interface.com

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




Re: tabsLayout.jsp ServletException??

2002-09-28 Thread Curtney Jacobs

Hi,
thank you for replying. As you suggested, I tried to see if the tiles-doc.war 
files work for my configuation. I am still getting the same error with an 
additional error that org.apache.struts.webapp.tiles.portal.UserMenuAction 
is not found.

I have tried browsing through the API for this class and I could not find it. 
Hmmm.

The following is the exact error I got:

[ServletException in:/layouts/vboxLayout.jsp] Error - Class not found 
:org.apache.struts.webapp.tiles.portal.UserMenuAction'
 
[ServletException in:/layouts/tabsLayout.jsp] null'
 
Again, anymore suggestion/advice would be helpful.

_CJ


On Friday 27 September 2002 10:12 am, Cedric Dumoulin wrote:
 Hi,

Sorry for this late answer, I am abroad since 2 weeks, and have some
 trouble with my mails.

 Don't you have more message error ?
 Maybe you have a problem with one of your tiles. Can you try them
 separately, especially the ones inserted inside tabs.
 Also, can you confirm that tabs from tiles-doc war files work for your
 configuration ?

Cedric

 Curtney Jacobs wrote:
   Greetings everyone!!
   
   I am trying to incoporate a tab layout in one of my jsp pages. I have

 download

   the tiles layout examples from the tiles website and I have configured
my tiles-defs.xml similar to the examples.
   
   However I am getting the following error message:
   
[ServletException in:/layout/tabsLayout.jsp]'
   
   
   Any comments or suggestions would be greatly appreciated.
   
   Thank you.
   ps.
   The Following is what my tiles-defs.xml look like:
   
   tiles-definitions
   
  !--  --
  !-- Master Layout--
  !--  --
  !-- Master layout and default layout used by all pages --
 definition name=sesm.master.page path=/layout/classicLayout.jsp
put name=title   value=Special Education Student Management

 Master

   Layout /
put name=header  value=/common/default_header.jsp /
put name=menuvalue=/common/default_menu.jsp /
put name=footer  value=/common/default_footer.jsp /
put name=bodyvalue=/common/default_body.jsp /
  /definition
   
 definition name=sesm.index.page extends=sesm.master.page
put name=title value=Specia Education Student Management

 (SESM) /

put name=body  value=sesm.tab.body /
 /definition
   
 definition name=sesm.tab.page extends=sesm.master.page
put name=title value=SESM TABS /
put name=body  value=sesm.tab.body /
 /definition
   
 definition name=sesm.tab.body path=/layout/tabsLayout.jsp
put name=selectedIndex value=0 /
put name=parameterName value=selected /
   
putList name=tabList
   item value=Header link=/common/default_header.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
   item value=Footer link=/common/default_footer.jsp
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem/
/putList
 /definition
   
   
   
   /tiles-definitions
   
   I have checked my

-- 
U-Interface.com

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