RE: Why is Checkbox s.till marked??

2001-11-21 Thread Marcel Andres

Hi Thomas, 

Is it possible, that the value in the form bean is not set false or the scope of your 
action (struts-config.xml) is set to session instead of request?

Marcel 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: Why is Checkbox s.till marked??


Hi there,

I have a form with one checkbox (defined with html:checkbox) which must be marked when 
something is to be deleted. The checkbox is validated and the is an error message when 
the user chooses delete but doesn't confirm it with the checkbox. 
This works, BUT: when submitted the action perform method forwards to the same form.  
And although there is a reset method which sets the boolean value (confirmdel) to 
false - servlet.log tells me that this is done - the checkbox is still marked!! Why? I 
tried everything...

Please help me and thanks in advance

Thomas

:-) As sceptical as one can be! (-:



--
Personalise your email address at http://another.com
THINK: your slogan or email address on a gorgeous mousemat
CLICK HERE http://another-shop.com

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




RE: Why is Checkbox s.till marked?? HELP DID NOT GET IT!

2001-11-21 Thread Marcel Andres

Thomas,

I really can't think of something else. So, I checked in the mailing-list for an 
explanation. Maybe, this can help you: 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15638.html (RE: wrong 
behavior of checkboxes in forms?). Let me know, if this is the solution.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 12:04 PM
To: [EMAIL PROTECTED]
Subject: RE: Why is Checkbox s.till marked?? HELP DID NOT GET IT!


Thanks for answer, Marcel,

but both is set to the correct values. I have to set the confirmdel explicitly to 
false, then it works. Very strange to my since the reset method do the same thing. I 
think I haven't get it until now: I set another value explicity to the table name and 
then forward to the same jsp. I thought it is a request parameter - but this value is 
forgotten!!!???
That means for me: reset method doesn't work correctly. I have to reset explicitly 
(setConfirmdel(false)) but - another value which is set the same manner is forgotten 
(setTablename(table)).

I don't understand this PLEASE TO EVERYBODY - HELP or I will drown...

Regards and thanks to advance
Thomas

-Original Message-
From : Marcel  Andres [EMAIL PROTECTED]
To : struts-user [EMAIL PROTECTED]
Date : 21 November 2001 09:51:49
Subject : RE: Why is Checkbox s.till marked??
Hi Thomas, 
Is it possible, that the value in the form bean is not set false or the scope of your 
action (struts-config.xml) is set to session instead of request?

Marcel 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: Why is Checkbox s.till marked??


Hi there,

I have a form with one checkbox (defined with html:checkbox) which must be marked 
when something is to be deleted. The checkbox is validated and the is an error 
message when the user chooses delete but doesn't confirm it with the checkbox. 
This works, BUT: when submitted the action perform method forwards to the same form.  
And although there is a reset method which sets the boolean value (confirmdel) to 
false - servlet.log tells me that this is done - the checkbox is still marked!! Why? 
I tried everything...

Please help me and thanks in advance

Thomas

:-) As sceptical as one can be! (-:



--
Personalise your email address at http://another.com
THINK: your slogan or email address on a gorgeous mousemat
CLICK HERE http://another-shop.com

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



:-) As sceptical as one can be! (-:



--
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
from http://another.com

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




RE: Please help - I'm not getting anywhere with this

2001-11-16 Thread Marcel Andres

Marco,

I don't know if your question is a general JSP question, or related to struts. With 
struts, if you want to get a value set the first time you call the page, you should 
not use the .jsp. If you need the value to be set, you have to make sure, the action 
is called before the JSP will be displayed. So, make sure that you call the page with 
.do instead of .jsp.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 3:53 PM
To: [EMAIL PROTECTED]
Subject: Please help - I'm not getting anywhere with this


Any ideas?

 -Original Message-
 From: Scriven, Marcos 
 Sent: 16 November 2001 11:00
 To: 'Struts Users Mailing List'
 Subject: Struts JSP not reading parameters from URL
 
 
 Hi
 
 I've got a JSP which when rendered contains the line:
 
 input type=text name=tradeProduct.ISIN 
 maxlength=17 size=17
 value= onblur=javascript:validateName(this); class=form2
 
 Now, if I open this page with the URL 
 mypage.jsp?tradeProduct.ISIN=abcd
 
 The ISIN field is not set - I fear it's being ignored, and 
 then set from the
 form bean.
 
 How, therefore, do I set the form field to a value when it is 
 first loaded?
 Basically, I want to load this page with the ISIN number of 
 the product I
 wish to edit.
 
 Thanks
 
 Marcos
 
 --
 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]

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




RE: Trying to understand the Action and Form paradigm

2001-11-15 Thread Marcel Andres

Hi Nicolas,

The perform is called when you invoke the .do. If you invoke the .jsp the action 
is not called. As much as I know, if you expect the value of password2 to be set when 
you forward to the register page, you should forward to the .do instead of the 
.jsp.

Hope this helps,

Marcel 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 5:16 AM
To: [EMAIL PROTECTED]
Subject: Trying to understand the Action and Form paradigm


Hi,

From the title of this email you probably can understand that I am a
newcomer to struts. I am very excited to try this out and use it in my
own projects.

However there is something that I don't quite understand after trying a
lot of the sample applications and reading the docs.

Currently I am trying to develop a login application as an exercise, and

I am getting this problem:

/register.jsp(60,46) Attribute password2 has no value

I have defined 2 pages for now. One page that is called login.jsp and is

associated with a LoginForm and LoginAction class, and a register.jsp
page that is associated with a RegisterAction and RegisterForm classes.

The login.jsp page has a form and a submit button to allow people to
login, and a link to the register.jsp page. This link looks like this:
html:link forward=registerRegister here/html:link

In my struts-config.xml file I have register defined as a
global-forward like this:
forward
 name=register
 path=/register.jsp/

And my actions in the struts-config.xml look like this:

action
  path=/login
  type=org.esterlingen.ui.actions.LoginAction
  name=loginForm
  scope=request
  validate=true
  input=/login.jsp
  forward
 name=continue
 path=/login.jsp/
/action
action
  path=/register
  type=org.esterlingen.ui.actions.RegisterAction
  name=registerForm
  scope=request
  validate=true
  input=/register.jsp
  forward
 name=continue
 path=/index.jsp/
/action

I checked and double checked, the attribute password2 is defined in my
RegisterForm class, as well as
in the register.jsp file.

What am I doing wrong? Is there something that I misunderstand in the
documentation?
When exactly are the perform methods from the Action classes called?
When I first load the .jsp file
associated to it, or when I submit the form that is on the jsp page?

Thanks for your help
Nicolas




--
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: problem with bean:write in an include

2001-11-15 Thread Marcel Andres

Hi Ken, 

are you sure, the value is set in the form? I think, this could be the same problem, 
which has been asked by Nicolas. See subject Trying to understand the Action and Form 
paradigm.

Marcel 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 12:28 AM
To: [EMAIL PROTECTED]
Subject: problem with bean:write in an include


I'm using includes that have bean:write tags and custom link tags.  When
my page displays, I can see the custom link tags with no problem.  However,
the values for the bean:write aren't being displayed and I get a jasper
compiler error (I'm using iPlanet 6.0 SP3) like this:

2001-11-14 05:18:35 - error-the file '\jsp\retireResultFull.jsp' generated
the following parse exception: org.apache.jasper.compiler.ParseException:
D:\iplanet\ias6\ias\APPS\prototype\prototype\jsp\calc.jsp(17,138) Attribute
has no value

The text in the included jsp (calc.jsp) show up, just not the bean:write
values

Anyone else having similar problems?

Ken Fletcher
Teacher Retirement System of Texas

--
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: Trying to understand the Action and Form paradigm

2001-11-15 Thread Marcel Andres

O.k., it is not that you want to pre-set some values. Could you include your jsp. As 
Maciej wrote, it could be a problem on the jsp, too.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 11:07 AM
To: [EMAIL PROTECTED]
Subject: Re: Trying to understand the Action and Form paradigm


Hi Marcel,

I don't want anything to be set. My RegisterForm and RegisterAction are expected to be 
called
whenever I  submit on the register.jsp page. I just want to go to register.jsp when I 
hit the link from
login.jsp.

Thanks
Nicolas

Marcel Andres wrote:

 Hi Nicolas,

 The perform is called when you invoke the .do. If you invoke the .jsp the action 
is not called. As much as I know, if you expect the value of password2 to be set when 
you forward to the register page, you should forward to the .do instead of the 
.jsp.

 Hope this helps,

 Marcel

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 5:16 AM
 To: [EMAIL PROTECTED]
 Subject: Trying to understand the Action and Form paradigm

 Hi,

 From the title of this email you probably can understand that I am a
 newcomer to struts. I am very excited to try this out and use it in my
 own projects.

 However there is something that I don't quite understand after trying a
 lot of the sample applications and reading the docs.

 Currently I am trying to develop a login application as an exercise, and

 I am getting this problem:

 /register.jsp(60,46) Attribute password2 has no value

 I have defined 2 pages for now. One page that is called login.jsp and is

 associated with a LoginForm and LoginAction class, and a register.jsp
 page that is associated with a RegisterAction and RegisterForm classes.

 The login.jsp page has a form and a submit button to allow people to
 login, and a link to the register.jsp page. This link looks like this:
 html:link forward=registerRegister here/html:link

 In my struts-config.xml file I have register defined as a
 global-forward like this:
 forward
  name=register
  path=/register.jsp/

 And my actions in the struts-config.xml look like this:

 action
   path=/login
   type=org.esterlingen.ui.actions.LoginAction
   name=loginForm
   scope=request
   validate=true
   input=/login.jsp
   forward
  name=continue
  path=/login.jsp/
 /action
 action
   path=/register
   type=org.esterlingen.ui.actions.RegisterAction
   name=registerForm
   scope=request
   validate=true
   input=/register.jsp
   forward
  name=continue
  path=/index.jsp/
 /action

 I checked and double checked, the attribute password2 is defined in my
 RegisterForm class, as well as
 in the register.jsp file.

 What am I doing wrong? Is there something that I misunderstand in the
 documentation?
 When exactly are the perform methods from the Action classes called?
 When I first load the .jsp file
 associated to it, or when I submit the form that is on the jsp page?

 Thanks for your help
 Nicolas

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


--
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: Struts Beginner

2001-11-13 Thread Marcel Andres

Another good source is http://www.husted.com/struts/ (for example * Strut by Strut).

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: Struts Beginner


Hello:

I am new to Struts and I would like to know if anyone knows of any resources
on the web for beginners.

I am interested in how to exactly use the html tags and how to for example
maintain their state throughout an application. For example drop-downs,
radio buttons, checkboxes etc

I went over the sample app that comes with struts, but it's a somewhat bare
bones application.

Any help would be appreciated

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


--
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: Defining Form elements based on db ids

2001-11-13 Thread Marcel Andres

The easiest way to do handle a list on a form is with an index. 
Use the logic:iterate tag to iterate the list. 
For the checkbox you use something like this:

input type=checkbox name='%= name[ + index + ]%' value='%= value[ + index 
+ ]%'

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 5:57 PM
To: [EMAIL PROTECTED]
Subject: Defining Form elements based on db ids


I am just starting out with Struts and I am trying to do something fairly
simple.  I have a form with 1 to x number or rows that were retrieved from a
database.  Each one can be selected via a checkbox.  Initially I wanted to
name the checkbox process_xxx where xxx is the key from the database (i.e.
process_345; process_621...) - that way I can easily tell which rows were
selected and do my backend processing.  I don't think I can do this being
that the form class has to have the fields defined beforehand.  What is the
best way to go about what I am trying to do?  Is the indexed attribute
intended for this use?

Thanks,
Mike

--
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: struts-example.war

2001-11-02 Thread Marcel Andres

Hi Andy, 

First of all, don't break your head on the desk, use a pillow! Now, to your problem:
Did you instal all the prerequisite software, how it is described on 
http://jakarta.apache.org/struts/installation-1.0.html?

Marcel



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: struts-example.war


After a week of banging my head on my desk I am still no closer to getting
any struts example to work.
I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
file.nI have tried it on 2 macheines with the same result. I displays the
first Jsp but the image on it is missing as it has been given a stupid url
(sturtspower.gif;jsessionid=837983). When i try to submit any form in the
example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
number. If i click on registration i am redirected to
.../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
I realise i have brought this up before but i thought i should re-itterate
the problem before asking any questions.

Does anyone know of any prerequisite software i might be missing in order
for this to be happening? It happens with any strusts application i try.

Thanks for your time

Andy


--
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: struts-example.war

2001-11-02 Thread Marcel Andres

Andy, if everything is configured well, I can't think of what is wrong. As much as I 
understand, you did reiceve the logon form. after signing on you are redirected back 
to the logon form. Right? As much as I remember the example (it is quiet a long time 
ago, I used it), it will redirect you to the logon form, as long as you did not logon 
to the application.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: RE: struts-example.war


Indeed I did. The only thing I dont have is the:

 JDBC 2.0 Optional Package Classes - Struts supports an optional
implementation of javax.sql.DataSource, so it requires the API classes to be
compiled. They can be downloaded from
http://java.sun.com/products/jdbc/download.html.

I want sure if these were compulsory, but i downloaded the class files, i
just dont know where to put them, but i dont think this is the problem.

Andy

-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:34 PM
To: struts-user
Subject: RE: struts-example.war


Hi Andy,

First of all, don't break your head on the desk, use a pillow! Now, to your
problem:
Did you instal all the prerequisite software, how it is described on
http://jakarta.apache.org/struts/installation-1.0.html?

Marcel



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: struts-example.war


After a week of banging my head on my desk I am still no closer to getting
any struts example to work.
I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
file.nI have tried it on 2 macheines with the same result. I displays the
first Jsp but the image on it is missing as it has been given a stupid url
(sturtspower.gif;jsessionid=837983). When i try to submit any form in the
example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
number. If i click on registration i am redirected to
../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
I realise i have brought this up before but i thought i should re-itterate
the problem before asking any questions.

Does anyone know of any prerequisite software i might be missing in order
for this to be happening? It happens with any strusts application i try.

Thanks for your time

Andy


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


--
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: problem with i18n

2001-10-31 Thread Marcel Andres

hi, 

1. Did you insert the param-nameapplication/param-name (I guess, yes)?
2. Like you, I have also to deal with different languages (de.ch/fr.ch/it.ch/...you 
know what I mean for CH).
I just checked my resource filesmaybe, you have a problem, because you 
named it ApplicationResources_de-ch.properties instead of 
ApplicationResources_de_ch.properties (note the _ instead of -).

Cheers, Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 3:30 PM
To: [EMAIL PROTECTED]
Subject: problem with i18n


Hello struts-user,

I have a problem with i18n.
I have setup in the web.xml file this
param-valuech.netcetera.webapp.struts.ApplicationResources/param-value
and I added in the ch/netcetera/webapp/struts directory two files:
ApplicationResources.properties
ApplicationResources_de-ch.properties

With jsp I look witch language I use and this is OK. But struts us
ever the ApplicationResources.properties.

%
  String lang = request.getHeader(Accept-Language);
  out.println(lang);
  boolean headerSuccess = false;
  if (lang != null){
if (lang.length() = 2){
  session.putValue(org.apache.struts.action.Action.LOCALE_KEY, new 
java.util.Locale(lang.substring(0, 2), ) );
  headerSuccess = true;
}
  }
  if (headerSuccess){
%bean:message key=index.title /%
  }
  else{
out.println(Header 'Accept-Language' either not found or has no recognisable 
value.);
  }
%

This jsp code print me always the string key for index.title in the
ApplicationResources.properties.

Have someone a answer to that problem?


-- 
Best regards,
 rgi  mailto:[EMAIL PROTECTED]


--
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: HOW TO span a FormBean over several JSP's

2001-10-23 Thread Marcel Andres

Instead of having the parameter scope (in struts-conf.xml) set to request you should 
change it to session. 
Example:

action path=/yourpath
type=yourAction
name=yourForm
scope=session
input=yourJSP1.jsp
forward name=success path=/yourJSP2.jsp/
/action

This should work.

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 2:27 PM
To: [EMAIL PROTECTED]
Subject: HOW TO span a FormBean over several JSP's


Hi,

I am looking for an example how to span a formbean over more than one JSP. I
read that it is possible but I dont know exactly how to set up the
struts-conf.xml
Can anyone help?

Thanks



RE: Problem with iterate tag

2001-10-23 Thread Marcel Andres

John, can you give some more informations? For example:

Your iterate-tag in the jsp.
Did you define the iterate-tag on top of the page %@ taglib 
uri=/WEB-INF/struts-logic.tld prefix=logic %.
Do you get any errors?

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 3:55 PM
To: [EMAIL PROTECTED]
Subject: Problem with iterate tag



I have a collection (an ArrayList) that I stored in the request scope in an
action class:

request.setAttribute(trans, transactions);

In my JSP, I am attempting to use the iterate tag to access this collection
and iterate over the contents (the collection contains
com.juniper.app.site.databean.TransactionBean instances).

No matter what technique or options I use for the iterate tag, I get no
iteration on this collection.  Can someone enlighten me on how to get this
tag to work properly with a collection stored in the request scope?   Can
the tag be used in this manner, or does the collection need to be a property
of another bean?

FYI: When using plain scriptlet code, the iteration works fine, the iterate
tag usage is the problem.

Thanks for the assistance.

John




___ 

Juniper Bank 
Rated #1 in Customer Confidence 
Gomez Inc., Summer 2001 Internet Credit Card Scorecard 
www.juniper.com 
___ 

This e-mail and any files transmitted with it may contain confidential
and/or proprietary information. It is intended solely for the use of the
individual or entity who is the intended recipient. Unauthorized use of this
information is prohibited. If you have received this in error, please
contact the sender by replying to this message and delete this material from
any system it may be on.



RE: How to: Workflow-management with struts

2001-10-23 Thread Marcel Andres

There exist a simple workflow-extension for struts. See 
http://www.husted.com/struts/resources/workflow.htm. Perhaps, this can help you.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 4:17 PM
To: [EMAIL PROTECTED]
Subject: How to: Workflow-management with struts


Hi,

does a possibility exists for workflow-management with struts?

Thanks!



RE: Form to a database

2001-10-23 Thread Marcel Andres

In my opinion, it is not a proper way, if you write from a form directly into a 
database. Better practice would be, that you write a seperate data access class, which 
handles the interaction with the database.
 
Marcel
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 4:12 PM
To: [EMAIL PROTECTED]
Subject: Form to a database


Hello.
I have a question about database. 
I want to use a Oracle database and I configured it to use built-in as connection pool.
Is it possible that I can write content from a form directly in the database?
In the struts-example I saw, that it's possible, that you can write the from in a 
hashtable.
thx, rg







RE: Initializing ArrayList used by options tag

2001-10-23 Thread Marcel Andres

Hi Lisa,

Best practice for a database access is, to hide these things in a seperate business 
object. This object can be invoked from the action class, from which you can set all 
the properties in the form bean (something like form.setProperty(...);. With this 
approach, you get a proper MVC application, and it is easier to reuse your components.

Marcel



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: Initializing ArrayList used by options tag


Hi,

I have an ArrayList which I use to populate the options on one of my JSP 
pages.  Where is the best place to initialize this ArrayList?  At the moment 
I am making database calls from within my form bean, so that when the form 
is initialized the values will be present.  Should I be doing this from 
within my Action class?  I guess my question is whether or not there are any 
complications doing it the way I am doing it.

Thanks alot for your speedy response.

Lisa


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



RE: html:link forward question

2001-10-23 Thread Marcel Andres

If I understand you right, you would like to have access to the same information on 
the next form as well. If this is what you want to do, you should define the action in 
the struts-config.xml file with the attribute scope=session. This gives you the 
chance to have access to a bean during the entire lifetime of a session.

for example:

action path=/yourpath
type=yourAction
name=yourForm
scope=session
input=yourJSP1.jsp
forward name=success path=/yourJSP2.jsp/
/action

Cheers, Marcel
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: html:link forward question


Hi,

Can anyone please tell me how to achieve forwarding of one page to another 
as well as have the information in the form submitted to the form bean in 
the process.  Is this this possible or do I just have the wrong idea.

Please help.

Thank you for your speedy response.

Lisa

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



Difficulty to integrate struts validator

2001-09-26 Thread Marcel Andres

Hi

I developed a struts application (jakarta-tomcat-3.2.1, struts 1.0). So far, 
everything runs well. Then, I integrated the Struts Validator by David Winterfeldt 
(version 0.5). From now on, I get the following error as soon as I call a page whith 
field, which should be validated. Is there something wrong whith the validator, did I 
miss to download some files or is there something important, which I missed when I 
integrated it to my application?

For the struts validator, I am using Struts_Validator-20010308.jar and 
jakarta-regexp-1.2.jar.

FYI: I am able to run the example application struts-validator-example, but I don't 
get my own application work together with the struts validator. 

Any tips how I can solve my problem ?

Marcel


table width=100% border=0 cellspacing=0 cellpadding=4

form name=editForm method=post 
action=/kosa/kosa/jsp/edit.doh1Included servlet error: 500/h1
h2Location: /kosa/kosa/jsp/edit.jsp/h2
h2Error Location: /kosa/kosa/jsp/edit1.jsp/h2bInternal Servlet 
Error:/bbrprejavax.servlet.ServletException: org/apache/regexp/RESyntaxException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
kosa.jsp._0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0._jspService(_0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0.java:288)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
/pre
bRoot cause:/b
prejavax.servlet.jsp.JspException: org/apache/regexp/RESyntaxException
at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at 
kosa.jsp._0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0._jspService(_0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0.java:266)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
/pre



RE: logic:empty

2001-09-18 Thread Marcel Andres

The logic:empty tag is not avaiable before struts 1.1. So, use the logic:present as, 
Alexander wrote, or upgrade to struts 1.1. The information on the struts homepage is 
based on the nightly built, therefore you can find some information on it, which does 
not relay on the struts 1.0.

marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 2:34 PM
To: [EMAIL PROTECTED]
Subject: RE: logic:empty


Could you use logic:present ?

-Original Message-
From: Aurélie Lucet - Atlog [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2001 13:31
To: Struts-User
Subject: logic:empty


Hi,
do you know how to evaluate if an object or a variable exists or not ? I
tried the logic:empty tag showed here
(http://jakarta.apache.org/struts/struts-logic.html#empty), but this tag
does not exists in my libs.
Thanks,
Aurélie
http://www.tombraiderworld.fr.st/
Soon : http://www.khamoon.com/



***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



RE: Problem with mappings and html:form tag

2001-09-17 Thread Marcel Andres

hi alex

if you want to use an action /do/createProject?action=submit, you have to make sure, 
that the according settings are made in the struts-config.xml. Make an entry like this 
in the action mappings definition:

actionpath=/do/createProject
.
/action

cheers, marcel

-Original Message-
From: Jesse Alexander (KABS 11) 
Sent: Monday, September 17, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Problem with mappings and html:form tag


Hi,

I am using Struts 1.0; the template tags and Tomcat 3.2.1 as server.

In my web.xml I have the following action-mapping:
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/do/*/url-pattern
  /servlet-mapping

In the main-template-jsp I have the following lines:
html:html locale=true
html:base/

If I a form like this 
html:form action=/createProject.do?action=submit
everything works fine


If I define a form as follows:
html:form action=/do/createProject?action=submit

this results in the following dump (in the HTML-source):
!--/td
td width=820 valign=top colspan=2h1Included servlet error: 500/h1
h2Location: /bugs/createProject.jsp/h2
h2Error Location: /bugs/createProject_work.jsp/h2bInternal Servlet 
Error:/bbrprejavax.servlet.ServletException: Cannot retrieve mapping for action 
/do/createProject
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
_0002fcreateProject_0002ejspcreateProject_jsp_0._jspService(_0002fcreateProject_0002ejspcreateProject_jsp_0.java:270)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at com.csg.cs.tfw.servlet.CSActionServlet.doGet(CSActionServlet.java:596)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.csg.cs.tfw.servlet.CSActionServlet.service(CSActionServlet.java:858)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
/pre
bRoot cause:/b
prejavax.servlet.jsp.JspException: Cannot retrieve mapping for action 
/do/createProject
at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at 
_0002fcreateProject_0002ejspcreateProject_jsp_0._jspService(_0002fcreateProject_0002ejspcreateProject_jsp_0.java:260)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
at 

RE: Multiple Submit Buttons per Form

2001-09-15 Thread Marcel Andres

Hi

I handle something like this, how you describe it at last. I route both buttons to a 
single action class, and this class decides, based on the pressed button (value), what 
to do. As much as I know it is not possible to submit buttons to different action, 
because you decide in the html:form tag, which action will be invoked.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 15, 2001 5:51 AM
To: [EMAIL PROTECTED]
Subject: Multiple Submit Buttons per Form



I'm pretty new to struts so please forgive me if this question been asked
before (I searched the archives and didn't find anything like it).  I have
an OPENSTEP / WebObjects background.

Is it possible to have 2 submit buttons (or image buttons) within the same
form that route to different action classes?

For example if I have a page that has a popup and 2 buttons (maybe a create
button and a modify button).  I'd like the create button to invoke
perform(blah) on a CreateAction class and the modify button to invoke
perform(blah) on a ModifyAction class.

1 way to do it could be to put both buttons in different forms.  However
that won't work because I want to check the selection in the popup in both
my create and modify classes.

Another way to do it could be route both buttons to a single action class,
which would conditionalize based on which button was clicked.  I find this
approach particularly inelegant tho.

Anybody done anything like this?  If so how did u set this up?

thanks.

-shehryar



RE: Does html:errors not work proper?

2001-09-11 Thread Marcel Andres

Hi all

I finally could solve my problem...ufff. Special thank to Andre, Tobias and Keith 
which leaded me to the solution. For thus who are interested what went wrong, here a 
short description (maybe, it can help someone else on an other opportunity):

In my case, the problem was not only part of the struts tag. It was as well an 
internal error, because I had to convert an error, which I receive from a corba 
service, into the according struts error. Thereby, I got some problems with upper 
and lower cases. Make sure you don't step into this trap! 

Second, because I am creating a multilanguage application, I have to deal with five 
different ApplicationResources.properties. You can imagine, that sometimes you mistype 
something!

Thank you again

Marcel



Does html:errors not work proper?

2001-09-10 Thread Marcel Andres

Hi there

Like most of you, I am using the html:errors-tag to show errors on the JSP page. My 
problem is, that I don't get any message on the JSP page. I do the following check 
before I return to the form:

if (!errors.empty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}

When I check the values, errors.empty() it is set to false, and the value for 
errors.size() is 1.

On the JSP, I am using a template with header, main, and footer. In the header I 
declared this:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %



!- Handling the Errors -
table border=0 cellspacing=0 cellpadding=0 width=100% height=18
 tr
  font class=error
   html:errors/
  /font
 /tr
/table


Any comments would be appreciated.

Marcel



RE: Does html:errors not work proper?

2001-09-10 Thread Marcel Andres

hi juraj

thanks for your responde. yes, in my action I have the following code:

ActionErrors errors = new ActionErrors();
...
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error_name));

Is it not right, like this?

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: AW: Does html:errors not work proper?


hi marcel,

did you have registered an error in your actionServlet?
you have to put something like : errors.add(test, new
ActionError(test.error));
your Application Ressource describes the key: test.error=This is an error

in your jsp you can then output the error with:
html:errors property=test /

the way with validate values in the form bean, like yours, is similar.


juraj


-Ursprüngliche Nachricht-
Von: Marcel Andres [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 17:06
An: struts-user
Betreff: Does html:errors not work proper?


Hi there

Like most of you, I am using the html:errors-tag to show errors on the JSP
page. My problem is, that I don't get any message on the JSP page. I do the
following check before I return to the form:

if (!errors.empty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}

When I check the values, errors.empty() it is set to false, and the value
for errors.size() is 1.

On the JSP, I am using a template with header, main, and footer. In the
header I declared this:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %



!- Handling the Errors -
table border=0 cellspacing=0 cellpadding=0 width=100% height=18
 tr
  font class=error
   html:errors/
  /font
 /tr
/table


Any comments would be appreciated.

Marcel



RE: Does html:errors not work proper?

2001-09-10 Thread Marcel Andres

Hi Kim  Andre

Yes, the errors (in my case just one error) are defined in the 
ApplicationResources.properties. But what do you mean Andre, with redirection? I 
think that after the command return (new ActionForward(mapping.getInput()));, I 
return control to the struts ActionServlet, and so, don't have any control on what 
happens next? Am I wrong?

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Does html:errors not work proper?


One possibility is that there's a redirection occuring somewhere.
Since error bean is stored in request scope, it would be lost after a
redirection
(a new request).

Andre Paradis

-Original Message-
From: MacKellar, Kimberly [mailto:[EMAIL PROTECTED]]
Sent: September 10, 2001 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Does html:errors not work proper?


Are all of your errors defined in the ApplicationResources.properties?

Kim MacKellar

-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 10:06 AM
To: struts-user
Subject: Does html:errors not work proper?


Hi there

Like most of you, I am using the html:errors-tag to show errors on the
JSP
page. My problem is, that I don't get any message on the JSP page. I do
the
following check before I return to the form:

if (!errors.empty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}

When I check the values, errors.empty() it is set to false, and the
value
for errors.size() is 1.

On the JSP, I am using a template with header, main, and footer. In the
header I declared this:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %



!- Handling the Errors -
table border=0 cellspacing=0 cellpadding=0 width=100%
height=18
 tr
  font class=error
   html:errors/
  /font
 /tr
/table


Any comments would be appreciated.

Marcel



RE: ActionForm question ?

2001-09-04 Thread Marcel Andres

As much as I know, if you redisplay your form, and you use session for your scope, 
it will show you the values.
If you need a initialized form, use request instead.

marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: ActionForm question ?


Hello,

I've got a functionnal problem with ActionForm:

I fill a form and submit then when I re-display this
form, my old value are display on the form. 

How can I initialize the ActionForm after sumit ?

Where the ActionForm is stocked (session, request, ...
) ?

Thanx.

___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



logic:equal tag with more than one value?

2001-09-04 Thread Marcel Andres

Hello, 

I could not find information on the following topic:

I would like to use the logic:equal tag, but instead of using just one value to 
compare, I would like to use several values. 
Is this possible without the if-then-else-tag or switch-tag from Niall Pemberton? Is 
there an other possibility to do this compare?

Thanks, Marcel



RE: new at stucts

2001-09-03 Thread Marcel Andres

Hello, 

I am not sure, if I got your question right. But I try
In addition to the action-mappings definitions, you should also define the form-bean 
definition in your struts-config.

In your example it is something like this:

!-- logon form bean --
form-bean  name=lesson1
type=com.jspinsider.struts.lesson1.logonform/ 

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 03, 2001 11:26 AM
To: [EMAIL PROTECTED]
Subject: new at stucts


Hi !!

I'm new at structs and so i read the tutorial from the site
http://www.jspinsider.com/tutorials/jsp/struts/lesson1/l1b_struts.view
My Problem is here:
Were is the logonform integrated ?
In logon.jsp is the action of the form the longon.do.
I think I understand that:
action-mappings

!-- lesson1 action --
action   path=/lesson1/logon.jsp
  type=com.jspinsider.struts.lesson1.logonaction
  name=lesson1
forward name=homepath=/lesson1/home.jsp/
forward name=logon   path=/lesson1/logon.jsp/
/action
   
 /action-mappings

but where do i define that when the Enter-Button in the logon.jsp is pressed
that the logonform should be used ??
You understand my problem ???
I think its very trivial but I don't find an anwser ...



use of logic-tags

2001-08-23 Thread Marcel Andres

Hi all, 

Two general questions:

1. Has someone an idea how to implement an ELSE with the logic-tags? Till now, I 
always made something like this (example):

logic:equal .

/logic:equal
logic:notEqual .

/logic:notEqual


2. Instead of using a string, which I can set to true or false, is there a 
possiblity to set a property to true or false (boolean) in the form,  and use it 
later on from a jsp page?


Thanks

Marcel



RE: html:link

2001-08-22 Thread Marcel Andres

Hello Bernhard,

I am not sure if I got your problem right. Do you want to format the link name or the 
link itself?

If you want to format the link, I would try to do someting like:

a href=/main.do?NameForParameter=bean:write name=chooseForm property=vecOptions 
type=com.xxx.Option id=option/

I did not create a link like this before, but I use a similar construct, where I 
access the value of a bean property. This is not using the sturts html:link tag, but 
it should work, too.

Marcel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:28 AM
To: [EMAIL PROTECTED]
Subject: html:link



I have a logic:iterate tag in which I list items to a table. In a column
at the right side I want to add a details link which should link to
detailed information of this item.

How can I use the html:link tag delivering a code of an item in my
iteration loop to my action?

logic:iterate name=chooseForm property=vecOptions type=com.xxx.Option 
id=option
tr
  td
bean:write name=option property=code/
  /td
  td
bean:write name=option property=text/
/td
td
  html:link page=/main.do ???  details
  /html:link
/td
/tr
/logic:iterate


This is my iteration tag. In the 3rd row I want a link which calls the
action main and the code from the 1st row should be delivered.

Thanks for any help!

B.



RE: [URI];jsessionid=iyn9hmlc31

2001-08-22 Thread Marcel Andres

this is the session-id you are working with.

marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 5:12 PM
To: [EMAIL PROTECTED]
Subject: [URI];jsessionid=iyn9hmlc31


Hi,

When a construct a form with tag form:form ... /

form:form action=arbitrage.do form:submit
value=Arbitrage //form:form

I've got this : 

form name=arbitrageForm method=POST
action=/assurance/arbitrage.do;jsessionid=iyn9hmlc31
input type=submit name=submit
value=Arbitrage/form  

What is jsessionid ?


___
Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos : http://fr.photos.yahoo.com



RE: The most efficient way to use templates

2001-08-15 Thread Marcel Andres

Hello

I figured out, that it is quiet flexible to use jsp templates the way it is described 
in http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html. It gives you 
the possiblity to have different layouts and you can change them for any reason. Also, 
you gain an advantage, because you can reuse different part of html/jsp code to plug 
together your pages. If you didn't try it, you should take a look on this.

I am not using a tool like dreaweaver, instead I use an editor. So, can't give you a 
hint on that. 

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 2:15 PM
To: [EMAIL PROTECTED]
Subject: The most efficient way to use templates


Hi,

What is the best way to use templates? We have tried several approaches now:

1. Include the layout on the top and bottom of each contentpage. (include header and 
footer). Problem: what to do if the layout around it is very dynamic? And how to use 
with a tool like dreamweaver?
2. Make a template and include the contentpage in the template. Problem: how to 
include actions?

Other options are simply making a lot of templates that are all almost the same, but 
for different sections of the site. 

We are not sure what is the best way to do it. 

Side question: our customer wants something like a Lime like tool. But is there 
anything out there that does this with jsp's/struts? I didn't think so. 

G. Nuijen.



RE: BeanUtils.java PropertyUtils.java in Version 1.1-dev

2001-08-10 Thread Marcel Andres

Thank you Craig, this took a load off my mind! I will use the new ones, and if I 
figure out it doen't work, I know who can help me ;-).

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 6:44 PM
To: [EMAIL PROTECTED]
Subject: Re: BeanUtils.java  PropertyUtils.java in Version 1.1-dev




On Thu, 9 Aug 2001, Marcel  Andres wrote:

 Hi, 
 
 I downloaded the latest nightly built to take advantage of new
 features. Now, I figured out, that the two classes BeanUtils.java and
 PropertyUtils.java are not in anymore. I checked if this two classes
 are deprecated, but I could not found any information about that.
 

They are in the commons-beanutils.jar file.

 Does the nightly built not contain all classes (including those which
 have not changed)? Does someone know what happend to them?
 

What happened is that several of the utility components in Struts proved
to be so popular that developers wanted to use them outside of Struts, in
other environments.  Thus, the Jakarta Commons project was created
http://jakarta.apache.org/commons/; to house this sort of thing, and the
BeanUtils and Digester classes of Struts (plus other cool stuff from other
people) was contributed.

Struts 1.1 uses the commons versions of these classes, which was why
they were deprecated in 1.0.  The commons versions are functionally
equivalent, so you would only need to modify your import statements.

 
 Will be greatful for any help!
 
 Marcel
 

Craig




RE: what's about org.apache.struts.taglib.html.MessagesTag ?

2001-08-09 Thread Marcel Andres

Hi Mete
 
As much as I know, the Struts web site generally documents what is available in the 
latest nightly build. The documentation for any given build is available in the 
struts-documentation.war file for that build, so you should refer to that for the 
specifics of what is available in the build you are running.
 
Marcel
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:05 AM
To: [EMAIL PROTECTED]
Subject: what's about org.apache.struts.taglib.html.MessagesTag ?


Hi,
what's about the MessagesTag -class (org.apache.struts.taglib.html.MessagesTag)
, which is documented in the javadocs, but is not placed in the framework ?
Is it deprecated and 'deleted' or have the developer forgotten to put it to the place 
where it should be ?
 
cheers
mete



RE: jbuilder5

2001-08-09 Thread Marcel Andres

Hallo Nicole

When you run your project with Start Tomcat..., did you check in the message viewer, 
if the classpath is set right?

Gruss und viel Glück / Cheers

Marcel
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: jbuilder5


ive got problems with jbuilder5 and struts! 

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale:   Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0  Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren 
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in 
error) please notify the sender immediately and destroy this e-mail. 
Any unauthorised copying, disclosure or distribution of the material 
in this e-mail is strictly forbidden.



RE: jbuilder5

2001-08-09 Thread Marcel Andres

I'm not sure if Mike means the Struts Support Addin from 
http://codecentral.borland.com/. But if your application is built as a WAR archive, 
this could help.

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:54 PM
To: [EMAIL PROTECTED]
Subject: Re: jbuilder5


I was having similar problems with JB5 until I installed two OpenTools that
I got
from Borlands CodeCentral...Now, everything works great.

For more on this, go to http://www.tamaracka.com/search.htm and search on
keywords:  struts jar ken chan

Good luck.  -- Mike

- Original Message -
From: Marcel Andres [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:08 AM
Subject: RE: jbuilder5


Hallo Nicole

When you run your project with Start Tomcat..., did you check in the
message viewer, if the classpath is set right?

Gruss und viel Glück / Cheers

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: jbuilder5


ive got problems with jbuilder5 and struts!

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale: Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0 Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte

Re: logic:notEmpty tag not found

2001-07-26 Thread Marcel Andres

Is it possible to get a pre-release of 1.1 (if yes, where?), so I could use the 
logic:notEmpty tag? Does anybody know an alternative for this tag?

Marcel Andres

-

From:   [EMAIL PROTECTED]
Sent:   Freitag, 20. Juli 2001 09:31
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:Re: logic:notEmpty tag not found

The logic:empty and logic:notEmpty tags were introduced for Struts 1.1,
so they are not available if you are using Struts 1.0.

The Struts web site generally documents what is available in the latest
nightly build. The documentation for any given build is available in the
struts-documentation.war file for that build, so you should refer to that
for the specifics of what is available in the build you are running.

--
Martin Cooper


- Original Message -
From: Carlos Sham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 9:58 PM
Subject: logic:notEmpty tag not found



 I'm trying to use the logic:notEmpty tag. But it is not
 with the 1.0 or 1.0b03 distribution. However, it is still
 documented in the Logic tags library reference on the site.

 This is what I'm trying to do:

 logic:notEmpty name=myForm property=theString
 bean:write name=myForm preperty=theString/
 /logic:notEmpty

 Any alternative to achieve this or pointer to get the
 'notEmpty' tag would be very helpful.

 Thanks.

 --
 Carlos Sham
 [EMAIL PROTECTED]





RE: HotSpot Virtual Machine Error, Internal Error !!

2001-07-26 Thread Marcel Andres

I use the same configuration as you do, but without hotspot. This runs well. So the 
problem might be the hostspot (it also says that it is a hotspot virtual machine 
errror). Try it without hotspot and send the error to sun. This will help them to 
improve their produkt :-).

Marcel Andres

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 2:35 PM
To: [EMAIL PROTECTED]
Subject: HotSpot Virtual Machine Error, Internal Error !!


I have the following error in the Tomcat window when running my application:

...
2001-07-26 02:33:17 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-07-26 02:33:17 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 47454E45524154452F4F502D41500E435050084B
#

abnormal program termination


Has anyone already seen this error and what is the cause ? Tomcat, Hotspot ?
I'm running Tomcat 3.2.2 and JDK 1.3.0_02 with Struts 1.0.

Thanks
Adriano Labate



RE: Apache, IIS , html:img tag

2001-07-11 Thread Marcel Andres

hi andy

the following mailings from end of june, will give you at least an answer to the 
question, why the session-id is used in the tag.

marcel




From:   [EMAIL PROTECTED]
Sent:   Freitag, 22. Juni 2001 12:18
To: [EMAIL PROTECTED]
Subject:Re: URL encoding in html:image and html:img tags

DUBOIS Fabrice typed the following on 11:34 AM 6/22/2001 +0200
I don't understand why Struts's html:image and html:img tags encodes GIF's names 
with session's ID ? 

I am using : 
* html:image tag with html:form  
* html:img tag with html:link  
* html:img standalone 
in my JSP's pages. 

For me, it seems to be useless to encode SRC attribute for those two tags since 
html:form and html:link encodes ACTION and PAGE attribute with session's ID.

In the third case (html:img standalone), I really don't understand why session's ID 
is added to image path ??? 

The session ID is encoded into a URL so that, when the URL is loaded
by the client, the servlet engine knows which session the client belongs
to. 

The action encoding of the form is used when the form is submitted.
The URL encoding of the image is used when the image is loaded.
These happen at different times, on different requests, so having the form 
action URL encoded doesn't help the image URL. The same presumably
goes for the link - the image is loaded as a different request from the
one where the user clicks the link, so each needs to have the session
ID encoded separately.

So then the question may be, why does an image URL need to have
the session ID encoded into it - since images are static content, the
server shouldn't care what session it belongs to. The answer is that
not all images are static, some images are generated by servlets,
so struts needs to support encoding the URL.

-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:59 PM
To: [EMAIL PROTECTED]
Subject: Apache, IIS , html:img tag


The code html:img src=struts-power.gif alt=Powered by Struts/ gives me
the HTML below.
img src=struts-power.gif;jsessionid=k54f1xn3y1 alt=Powered by Struts

This results in the image not being displayed when I use tomcat with apache
web server 
It is displayed fine when I use tomcat with iis though!

For what reason does it append the sessionid to it?? 
Do you know why it works with iis and not apache?

cheers

Andy


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes



Does someone has experience implementing automatic properties?

2001-06-29 Thread Marcel Andres

Hello

I started to implement some automatic properties according to the information from 
Thor Kristmundsson on the following web-page: 
http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts.html.

Now, I got to the point, that I figured out, Thor used method/classes, which are 
deprecated. For org.apache.struts.util.BeanUtils.getPropertyValue(Object, String) I 
should use PropertyUtils.getProperty().

Did some else implement the automatic properties within the new method/class?

Regards,

Marcel Andres



RE: Non-Web-based Application with STRUTS

2001-06-29 Thread Marcel Andres

In my opinion: forget about struts for a fat client. You can't use the advantage of 
the taglib within a fat client. You need to work with AWT/Swing to create an 
application for a fat client.

But, I would be interested if someone has a good idea how this two things fit together.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 29, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject: Non-Web-based Application with STRUTS


Hi there

I have done some prototyp with Struts.
Now a new requirement is that the application runs not only  with a Broser.
It should also run with a fat java client.

Has somebody experiences with this?

Is it possible? and if yes, with what kind of architecture?


I very intressted in your answer


Andy






*** PLEASE NOTE ***
This message, along with any attachments, may be confidential or legally
privileged.  It is intended only for the named person(s), who is/are the
only authorized recipients. If this message has reached you in error,
kindly destroy it without review and notify the sender immediately. Thank
you for your help.
**



RE: problem running struts example ..

2001-06-28 Thread Marcel Andres

Hello

This is a well known problem. I used to have the same troubles. I attach you the 
following information from the mailing-list (last week). By changing the doEndTag() 
method I could solve the mistake. I hope in a future version of Tomcat, this will be 
fixed.

Marcel



This is a known problem.  Websphere has a bug (inherited from the old
version of Tomcat they used) that does not remove attributes from request
scope, even though this is perfectly legal.

Until Websphere fixes this, the only solution is to remove two lines from
the doEndTag() method (the two pageContext.removeAttribute() calls) and
rebuild Struts.

Stephen.

 -Original Message-
 From: Rick Smith [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, June 22, 2001 11:41 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Struts Question
 
 Charles, 
 
 I ran into the same problem trying to run struts on Tomcat 3.1. Removing
 attributes isn't supported in the older jsp specification or something
 like that. Try running the test page using Tomcat 3.2 if you can. 
 
 Rick 
 
 Charles Baker wrote:
  
  Quick question,
  I?m using VA ?s Web Test  Env and I?m getting an error using a
 simple test
  page from the IBM web site. I?m still new to Struts so can someone let
 me
  know if this is a simple mistake that I?m making? The single page JSP
 and
  full error message are following.
  Message: Server caught unhandled exception from servlet [jsp]: cant
 remove
  Attributes from request scope
  
  Thanks in advance for any help.
  CEB
  
  JSP Page
  %@taglib uri=/WEB-INF/struts-html.tld prefix=html%
  html:html locale=false
  html:errors/
  html:form action=processNewEmployee.do
  *First Name: html:text  property=firstName/BR
  *Last Name: html:text  property=lastName/BR
  *Phone Number: html:text  property=phoneNumber/BR
  Office Number: html:text  property=officeNumber/BR
  Backup: html:text  property=backup/BR
  Backup Phone Number: html:text  property=backupPhoneNumber/BR
  html:submit /
  /html:form
  /html:html
  
  Error 500
  An error has occured while processing
  request:http://localhost:8080/employeelist/processNewEmployee.do
  Message: Server caught unhandled exception from servlet [action]: Server
  caught unhandled exception from servlet [jsp]: cant remove Attributes
 from
  request scope
  
  Target Servlet: action
  StackTrace:
  
  Root Error-1: cant remove Attributes from request scope
  java.lang.IllegalArgumentException: cant remove Attributes from request
  scope java.lang.Throwable(java.lang.String)
  java.lang.Exception(java.lang.String)
  java.lang.RuntimeException(java.lang.String)
  java.lang.IllegalArgumentException(java.lang.String) void
 
 org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String
 ,
  int) int org.apache.struts.taglib.html.FormTag.doEndTag() void
 
 jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletRequest,
  javax.servlet.http.HttpServletResponse) void
 
 org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServl
 etRequest,
  javax.servlet.http.HttpServletResponse) void
  javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
  javax.servlet.ServletResponse) void
 
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servl
 et.http.HttpServletRequest,
  javax.servlet.http.HttpServletResponse, boolean) void
 
 org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.Htt
 pServletRequest,
  javax.servlet.http.HttpServletResponse, java.lang.String,
  java.lang.Throwable, boolean) void
 
 org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServle
 tRequest,
  javax.servlet.http.HttpServletResponse) void
  javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
  javax.servlet.ServletResponse) void
 
 com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servle
 t.ServletRequest,
  javax.servlet.ServletResponse) void
 
 com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servle
 t.ServletRequest,
  javax.servlet.ServletResponse) void
 
 com.ibm.servlet.engine.webapp.ServicingServletState.service(com.ibm.servle
 t.engine.webapp.StrictLifecycleServlet,
  javax.servlet.ServletRequest, javax.servlet.ServletResponse) void
  com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
  
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com


---

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 10:08 AM
To: [EMAIL PROTECTED]
Subject: problem running struts example ..


Hi :
Need help ..
I get this error when I run the struts-example under Tomcat ..
Error: 500

Location: /struts-example/logon.jsp

Internal Servlet Error:
javax.servlet.ServletException: cant remove Attributes from request scope

RE: Is struts really loading the resources?

2001-06-27 Thread Marcel Andres

Bob,

Did you make sure, that your jsp-page has the following entry, so it can use the 
bean:message-tag:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: Is struts really loading the resources?


I am new to struts and trying to get down some of the
basics.  I am trying to use the command: 
bean:message key=header.title/

When I do, I get the following exception:
javax.servlet.jsp.JspException: Missing message for
key header.title

I have verified that my ApplicationResources file does
contain:
header.title=MY TEST

Checking the log earlier, I find the following
confirmation that the ApplicationResources properties
were loaded, or were they:
2001-06-27 09:20:31 - path=/test :action: Loading
application resources from resource
ApplicationResources

The previous log entry mentions nothing about the
resource file being found and loaded successfully.  Am
I missing something?  How do I know that they
properties file was definately loaded?  How can I view
the properties that are currently available?  I am
just not sure what avenue of debugging to pursue at
this point.

Thank You,
Bob Byron



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: problem executing an example provided by bluestone.com

2001-06-26 Thread Marcel Andres

It seems to be a general problem, because I'm facing exactly the same problem (Tomcat 
3.2.2). So, is there anybody out there who has a hint how to overcome this error?
 
Thanks, Marcel
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 9:17 PM
To: [EMAIL PROTECTED]
Subject: RE: problem executing an example provided by bluestone.com


Ameer,
 
I was going through the Struts archive and found out that you had faced similar problem
that I am facing.  Can you please let me know how you managed to overcome this
problem (see your email below). Note, I am using iPlanet Web Server 6.0 and not
weblogic as in your error log. I guess this shouldn't matter as long as proper 
classpath
is set. Can you please let me know the fix you did to remove the error.
 
Thanks,
 

Nizar Bhamani
ProActTechnologies
Powering Human Resourcefulness(tm)
(770) 291 7180
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  

-Original Message-
From: ameer [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 1:53 AM
To: [EMAIL PROTECTED]
Subject: problem executing an example provided by bluestone.com


im facing problem in excuting an example source provided by the link:
http://gallery.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/Trail4.1.htm
 
http://gallery.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/Trail4.1.htm
 
im running this example in weblogic 6.0 and i get following errors. i have kept 
struts.jar in server classpath.. still i get following errors.
Jun 1, 2001 9:36:22 AM GMT+05:30 Error HTTP [WebAppServletContext(7901117
,HelloWorld)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans co
llection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:703)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
at jsp_servlet._input._jspService(_input.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:246)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
Ameer Hussain SS
s/w engineer
Yashaa Infotech Pvt.Ltd.
http://www.yashaa.com http://www.yashaa.com 




can the html:link-tag be used as a mailto-link?

2001-06-26 Thread Marcel Andres

Hi there

I have a link in an existing page like this:

a href=mailto:[EMAIL PROTECTED];
  span class=link
bean:message key=footer.mailto/
  /span
/a

Is there a possibility to use the html:link-tag for this? And if yes, which 
parameter do I need?
I couldn't find any example for something like this.

Marcel Andres



RE: workflow?

2001-06-25 Thread Marcel Andres

Hi ronel

A good idea to find out more about 'workflow' is the Workflow Management Coalition 
http://www.wfmc.org/. There are a lot of links and publications to this topic.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 10:21 PM
To: [EMAIL PROTECTED]
Subject: workflow?



I've seen some talk about this in the struts-dev group can somebody point me
to where i can read more about it.

I'm working on a framework that allows a struts developer to reuse certain
wizard based pages where the wizard doesn't change, but the start and end
points do i.e. Basically a way to plug in a use case into other use cases.
The result of the wizard would be a bean (foreign key) that would be
assigned to a bean that requested the service of the wizard.

I would like to find out if the 'workflow' stuff is for this situation

Thanks.

-ronel