Sample Struts app, LogonAction.java, missing UserDatabase

2003-11-07 Thread Mohammed Bustany
Hi all

I just started learning about struts.  I
have a simple question about LogonAction.java.  
Maybe someone can shed some light on it. 

The source file uses 'UserDatabase ' as in:
UserDatabase database = 
  (UserDatabase) servlet.getServletContext().
   getAttribute(Constants.DATABASE_KEY);
but there is no import stmt for UserDatabase!!!
I haven't tried compiling it yet, but how
is that possible???

Thank you

Mo

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-25 Thread Shabbir Khadir Mohammed
HI Bernhard,

Thanks for your valuable response. It worked fine.

Regards
Shabbir

-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 1:56 PM
To: 'Struts Users Mailing List'
Subject: AW: How to Show gif image instead of html button in the forms for 
html:submit tag ?


Good morning Shabbir!

try this:
html:image page=/images/enter.gif property=submit value=Enter/

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users Mailing List
Betreff: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

How to Show gif image instead of html button in the forms for html:reset tag ?

2003-02-25 Thread Shabbir Khadir Mohammed
Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.

html:reset/ 

It is displaying normal html button for reset
On clicking this button form will be resetting.
Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be reset (WITH OUT using Java Script) on clicking
that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Shabbir Khadir Mohammed

Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


How to call Action Bean Without doing any action by User

2002-12-30 Thread Shabbir Khadir Mohammed

Hi All
I want to do some Action before displaying one JSP page let's say.
How to achieve that one...???
I.e before displaying welcome.jsp if I want to call an Action Bean.

How shall I proceed.

Any suggestions..!!!


Regards
Shabbir

**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


RE: No getter for bean under name org.apache.struts.taglib.html.BEAN

2002-12-22 Thread Shabbir Khadir Mohammed
Hi 
Following is the reason for rhe Error.

I have not get set methods for property ATTRIBUTE defined in select TAG.


Here  i want to ask one more new Q.

Iam Displaying select option using select TAG.
If user selects any options then i have to show the options selected
by user as selected .Any one has worked in this.
*

Shabbir


-Original Message-
From: Shabbir Khadir Mohammed 
Sent: Saturday, December 21, 2002 5:27 PM
To: Struts Users Mailing List
Subject: No getter for bean under name
org.apache.struts.taglib.html.BEAN


Hi 
Iam getting follwoing error.
what could be the reason.
Iam having all the tld files in /WEB-INF folder

***
org.apache.jasper.JasperException: No getter method available for property type for 
bean under name org.apache.struts.taglib.html.BEAN
**

I think it is simple one But iam not getting what went wrong.

Shabbir

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 21, 2002 2:45 PM
To: Struts Users Mailing List
Subject: RE: html:select woes


Hi,
We tried using struts tags like that. I am sure it will work but
JSTL/Struts-EL makes things more simple like this.

c:forEach items=${xOptions} varStatus=status
 c:if test=${xOptions[status.count - 1].value == reportForm.xGroups[0]}
  c:out value=${xOptions[status.count - 1].label}/
/c:if
/c:forEach

 It makes complex things straightforward.

Mohan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 5:15 AM
To: [EMAIL PROTECTED]
Subject: html:select woes


Hi all,

I'm trying to figure out how to use the html:select tag and am having no
luck.  When I execute the jsp, I'm getting Cannot find bean under name
org.apache.struts.taglib.html.BEAN.  I've looked at the docs and the
html-select.jsp example but can't see what's different about my case.  My
struts-config file has this:

form-bean name=loggersForm type=com.wfsc.cam.ui.LoggersForm/

and this:

action path=/loggers 
  type=com.wfsc.cam.actions.HelloAction 
  name=loggersForm 
  input=/jsp/loggers.jsp 
  validate=false
  scope=session
forward name=hello path=/jsp/loggers.jsp/
/action

I've tried with and without the input attr.  My LoggersForm class extends
ActionForm and has one String property called newLevel that's null by
default.  I also have a reset() method that nulls-out newLevel.  My jsp does
this:

html:html
jsp:useBean id=loggersForm scope=session
class=com.wfsc.cam.ui.LoggersForm/html:form action=/loggers.do/
html:select property=newLevel
html:option value=oneOne/html:option
/html:select
html:submitSubmit/html:select
/html:html

The only relevant difference I can see between this and the html-select.jsp
example is that my jsp is under /jsp, but I've tried it both ways and it
doesn't seem to matter.

I'd appreciate a clue.

thanks

john

john gregg
Wells Fargo Service Corporation
Minneapolis, MN

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


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


RE: ValidatorForm

2002-12-20 Thread Shabbir Khadir Mohammed
Hi
Iam ALso getting same type of Error.
Can somebody helpout.

Shabbir

-Original Message-
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 7:42 AM
To: Struts Users Mailing List
Subject: ValidatorForm


I'm having trouble with my ValidatorForm bean. I'm getting this message 
'No getter method for property action of 
beanorg.apache.struts.taglib.html.BEAN '
Is my ValidatorForm bean being written properly ? I'd appreciate some 
comments. Here's my code below:

package com.makmal.struts.forms;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.validator.ValidatorForm;


public class LoginForm extends ValidatorForm implements 
java.io.Serializable {


 private String loginName;
 private String passwordValue;

 public LoginForm() {
 }

 public String getLoginName() {
 return loginName ;
 }
 public void setLoginName(String login_value) {
 loginName = login_value ;
 }

 public String getPasswordValue() {
 return passwordValue ;
 }
 public void setPasswordValue(String password_value) {
 passwordValue = password_value ;
 }

 public void reset(ActionMapping mapping, HttpServletRequest 
request)  {
 loginName = null ;
 passwordValue = null ;
 }



}



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


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


RE: form action doubt

2002-12-18 Thread Shabbir Khadir Mohammed
Hi 
MAKE SURE THAT THE action mapping  from bean are mentioned in struts-config.xml file
As below:

**

!-- == Form Bean Definitions === --
  form-beans

!-- Logon form bean --
form-bean  name=logonForm
   type=METION WHICH ACTION FROM BEAN U WANT TO INVOKE/
  /form-beans
!-- == Action Mapping Definitions == --
  action-mappings
!-- Process a screenLabelType --
actionpath=/screenLabelType
   type=METION WHICH ACTION BEAN U WANT TO INVOKE
  forward name=success  path=/METIONESOMEJSPFILE HERE/
/action
 /action-mappings
***


Let me know the result.!!!

Regards
Shabbir



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 11:20 AM
To: [EMAIL PROTECTED]
Subject: form action doubt


hi  all,

 i've used   html:form action=/screenLabelType in my jsp when i try to
execute  the jsp i get the exception
 
org.apache.jasper.JasperException: Cannot find ActionMappings or
ActionFormBeans collection
 
-[Mohammed_Rafeeq] 
 
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


TAG PROBLEM

2002-12-16 Thread Shabbir Khadir Mohammed
Hi Friends
Iam getting the follwoing Error.
What could be the Reason?
Iam using weblogic5.1 as Application Server.

*
Parsing of JSP File '/Sample Hello.jsp' failed:

 /Sample Hello.jsp(1): Could not parse deployment descriptor: 
org.xml.sax.SAXParseException: Could not parse taglib, starting at line 2
probably occurred due to an error in /Sample Hello.jsp line 1:
%@ taglib uri=/oreillySample.tld prefix=sample % 

Fri Dec 13 17:18:54 GMT+05:30 2002 

***



thanks  Regards
Shabbir

**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


RE: Could not parse taglib

2002-12-15 Thread Shabbir Khadir Mohammed
Hi
What could be the Problem for this error.
Can anyone suggest me.

*
Parsing of JSP File '/Sample Hello.jsp' failed:

 /Sample Hello.jsp(1): Could not parse deployment descriptor: 
org.xml.sax.SAXParseException: Could not parse taglib, starting at line 2
probably occurred due to an error in /Sample Hello.jsp line 1:
%@ taglib uri=/oreillySample.tld prefix=sample % 

Fri Dec 13 17:18:54 GMT+05:30 2002 

***

thanks  Regards
Shabbir

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


Could not parse taglib

2002-12-13 Thread Shabbir Khadir Mohammed
Hi Friends
Iam getting the follwoing Error.
What could be the Reason?
Iam using weblogic5.10 as app server.

*
Parsing of JSP File '/Sample Hello.jsp' failed:

 /Sample Hello.jsp(1): Could not parse deployment descriptor: 
org.xml.sax.SAXParseException: Could not parse taglib, starting at line 2
probably occurred due to an error in /Sample Hello.jsp line 1:
%@ taglib uri=/oreillySample.tld prefix=sample % 

Fri Dec 13 17:18:54 GMT+05:30 2002 

***



thanks  Regards
Shabbir

**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Problem forwarding to an action within another Action

2001-12-05 Thread Mohammed

Hi,


In my action1 with path /action1 ( in the struts-conf.xml file) I am
forwarding to Action2 with path /action2 as follow:

return new ActionForwar(/action1);

I am getting the the following error in the browser:

Error status 404

request resource ( /action1) is not available

thanks for your help

Mohammed


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




Re: Problem forwarding to an action within another Action

2001-12-05 Thread Mohammed

Hi Robert,
thank you , I found my error I musst do :
return new ActioForward(/action1. staft, false)
because I mapped my actionServlet to *.staft
Mohammed

- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 11:14 AM
Subject: RE: Problem forwarding to an action within another Action


 Mohammed,
 the code below comes from the ActionServlet.processActionForward()

 snip
 if (forward != null) {
 String path = forward.getPath();
 if (forward.getRedirect()) {
 if (path.startsWith(/))
 path = request.getContextPath() + path;
 response.sendRedirect(response.encodeRedirectURL(path));
 } else {
 RequestDispatcher rd =
 getServletContext().getRequestDispatcher(path);
 if (rd == null) {

 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,

 internal.getMessage(requestDispatcher,
path));
 return;
 }
 rd.forward(request, response);
 }
 }
 /snip

 It seems to indicate that your request is being redirected and therefore
the
 orignal request resource is lost.
 That's my best guess.

 robert

  -Original Message-
  From: Mohammed [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 05, 2001 5:02 AM
  To: Struts Users Mailing List
  Subject: Problem forwarding to an action within another Action
 
 
  Hi,
 
 
  In my action1 with path /action1 ( in the struts-conf.xml file) I am
  forwarding to Action2 with path /action2 as follow:
 
  return new ActionForwar(/action1);
 
  I am getting the the following error in the browser:
 
  Error status 404
 
  request resource ( /action1) is not available
 
  thanks for your help
 
  Mohammed
 
 
  --
  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]




html:error

2001-12-05 Thread Mohammed

Hi,

1)  In my jsp file I insert two error tags as follow:

html:error property=registrationerror1
html:error property=registrationerror2

the registrationerror1 is added if the form validating of Action1  fails.
and the reigstrationerror2 is added in action2 if inserting the new customer
in the database fails.

if an error occurs in Action2 I am forwarding to Action1 which sendes my jsp
file to the browser.
my problem is when no error under the property registrationerroe1 is added
in Action1 the Errorheader andErrorfooter
are displayed in the browser.
how can I avoid this?
Is there a way I can check if the number of  error of the given property
zero is or not before insertinh the Error Tag?

Thanks for any hint

Mohammed





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




Re: html:error

2001-12-05 Thread Mohammed

Hi Alexander,

is there a new version of struts which fixes this bug


Mohammed
- Original Message -
From: Alexander Jesse [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 1:14 PM
Subject: RE: html:error


 Hi,

 that's a little bug in the 1.0 struts-error-tags.
 I use the error-tags coming with David Winterfeldt's validation framework.
 The are compatible, allow for more flexible formatting and work.

 hope this helps
 Alexander Jesse

 -Original Message-
 From: Mohammed [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 05, 2001 12:48 PM
 To: Struts Users Mailing List
 Subject: html:error


 Hi,

 1)  In my jsp file I insert two error tags as follow:

 html:error property=registrationerror1
 html:error property=registrationerror2

 the registrationerror1 is added if the form validating of Action1  fails.
 and the reigstrationerror2 is added in action2 if inserting the new
customer
 in the database fails.

 if an error occurs in Action2 I am forwarding to Action1 which sendes my
jsp
 file to the browser.
 my problem is when no error under the property registrationerroe1 is added
 in Action1 the Errorheader andErrorfooter
 are displayed in the browser.
 how can I avoid this?
 Is there a way I can check if the number of  error of the given property
 zero is or not before insertinh the Error Tag?

 Thanks for any hint

 Mohammed





 --
 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: html:error

2001-12-05 Thread Mohammed

Hi Alexander,

I read the Doc of Winterfeldt package . The errot tag class has been
deprecated.

Mohammed
- Original Message -
From: Alexander Jesse [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 2:09 PM
Subject: RE: html:error


 Hi Mohammed,

 I do not know... The Winterfeldt tags also allow for more flexible
formatting.
 That's why I use only them. And they work also, if you do not use David's
 Validation Framework...

 Alexander

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 05, 2001 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: html:error


 Hi Alexander,

 is there a new version of struts which fixes this bug


 Mohammed
 - Original Message -
 From: Alexander Jesse [EMAIL PROTECTED]
 To: struts-user [EMAIL PROTECTED]
 Sent: Wednesday, December 05, 2001 1:14 PM
 Subject: RE: html:error


  Hi,
 
  that's a little bug in the 1.0 struts-error-tags.
  I use the error-tags coming with David Winterfeldt's validation
framework.
  The are compatible, allow for more flexible formatting and work.
 
  hope this helps
  Alexander Jesse
 
  -Original Message-
  From: Mohammed [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 05, 2001 12:48 PM
  To: Struts Users Mailing List
  Subject: html:error
 
 
  Hi,
 
  1)  In my jsp file I insert two error tags as follow:
 
  html:error property=registrationerror1
  html:error property=registrationerror2
 
  the registrationerror1 is added if the form validating of Action1
fails.
  and the reigstrationerror2 is added in action2 if inserting the new
 customer
  in the database fails.
 
  if an error occurs in Action2 I am forwarding to Action1 which sendes my
 jsp
  file to the browser.
  my problem is when no error under the property registrationerroe1 is
added
  in Action1 the Errorheader andErrorfooter
  are displayed in the browser.
  how can I avoid this?
  Is there a way I can check if the number of  error of the given property
  zero is or not before insertinh the Error Tag?
 
  Thanks for any hint
 
  Mohammed
 
 
 
 
 
  --
  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]



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




Filling fiels in a form after validinf error?

2001-12-05 Thread Mohammed

Hi,

How can a let the form hold the old user inputs when a validing Error occurs
and the form is sent by the ActionServlet again to the Browser?


Mohammed


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




how doI access the Error (or Errors) object in a jsp file?

2001-12-04 Thread Mohammed

Hi,

In my register.jsp file I want to acces the Error object so I can decide
depending on error property if I include a form or not.

is there a way I can access the error Object ( or Errors) in a jsp file?
under which key does the ActionServlet save the Errors?

Thanks for any hint

Mohammed


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




htm-:errors and struts:erros

2001-12-03 Thread Mohammed

Hello every body,

in my action class I insert an error as follow:

errors.add(registration, new ActionError(error.registration.failed);
saveErrors(request,errors);


in the jsp file :

html:erros  //to get the errors displayed
how can I get only the error for a given action? or a given key?

I tried html:errors property=registration   // registration is the key
under which I saved the error
 /htnl:errors   but it didn't work


Thanks for any help


Mohammed



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




Re: htm-:errors and struts:erros

2001-12-03 Thread Mohammed

Hi

can you tell me where I can get the validator package from David
Winterfield?

Thanks

Mohammed
- Original Message -
From: Alexander Jesse [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 1:15 PM
Subject: RE: htm-:errors and struts:erros


 Hi,

 get the validator-package from David Winterfeldt and use the validators
 error-tags. That did the trick for me.

 regards
 Alexander Jesse

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 03, 2001 12:56 PM
 To: [EMAIL PROTECTED]
 Subject: htm-:errors and struts:erros


 Hello every body,

 in my action class I insert an error as follow:

 errors.add(registration, new ActionError(error.registration.failed);
 saveErrors(request,errors);


 in the jsp file :

 html:erros  //to get the errors displayed
 how can I get only the error for a given action? or a given key?

 I tried html:errors property=registration   // registration is the key
 under which I saved the error
  /htnl:errors   but it didn't work


 Thanks for any help


 Mohammed



 --
 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: htm-:errors and struts:erros

2001-12-03 Thread Mohammed

Hi,
I just read the online Doc of the validator package of David Wenterfield. I
read that the ErrosTag class is deprecated.

Any other hint?

Mohammed

- Original Message -
From: Hani Hamandi [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 1:41 PM
Subject: RE: htm-:errors and struts:erros


 Go to the struts home page: http://jakarta.apache.org/struts
 Click on Resources under Welcome on the left.
 The package is called Struts Validator and it's under the Contributor
 Extensions section.

 I could have simply given you the link to the package. But I wanted to
show
 you how to get to it and to other packages later.

 -Original Message-
 From: Mohammed [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 03, 2001 7:36 AM
 To: Struts Users Mailing List
 Subject: Re: htm-:errors and struts:erros


 Hi

 can you tell me where I can get the validator package from David
 Winterfield?

 Thanks

 Mohammed
 - Original Message -
 From: Alexander Jesse [EMAIL PROTECTED]
 To: struts-user [EMAIL PROTECTED]
 Sent: Monday, December 03, 2001 1:15 PM
 Subject: RE: htm-:errors and struts:erros


  Hi,
 
  get the validator-package from David Winterfeldt and use the validators
  error-tags. That did the trick for me.
 
  regards
  Alexander Jesse
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 03, 2001 12:56 PM
  To: [EMAIL PROTECTED]
  Subject: htm-:errors and struts:erros
 
 
  Hello every body,
 
  in my action class I insert an error as follow:
 
  errors.add(registration, new ActionError(error.registration.failed);
  saveErrors(request,errors);
 
 
  in the jsp file :
 
  html:erros  //to get the errors displayed
  how can I get only the error for a given action? or a given key?
 
  I tried html:errors property=registration   // registration is the key
  under which I saved the error
   /htnl:errors   but it didn't work
 
 
  Thanks for any help
 
 
  Mohammed
 
 
 
  --
  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]



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




%@ include File = %= includefile% % is there a way doto this

2001-11-29 Thread Mohammed

Hello evreybody,

in an action class SourceAction I am setting a variable in the session

SourceBean sourcebean = new SourceBean();
sourcebean.setSource(  myform.getcommand());
session.setAttribute(source, sourcebean);

in the jsp file I want to do the following

%
SourceBean mysourcebean = (SourceBean)session.getAttribute(source);

if(mysourcebean!=null) {
String includefile= mysourcebean.getSource();
%

%@ include File =  %= includefile%  %// this is not working -
ERROR:   file %= includefile% not found

%}

else {%
%@ include File =  welcome.jsp  %

%}%


Thanks for any help


Mohammed









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




Re: %@ include File = %= includefile% % is there a way doto this

2001-11-29 Thread Mohammed

I actually have a content.jsp file in which I want to include  another jsp
file. the name of the jsp file to include is know at runtime so I am
fetching the file name as a variable.
would the jsp:useBean  in my case do as you suggested

Mohammed

- Original Message -
From: Jin Bal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 1:23 PM
Subject: Re: %@ include File = %= includefile%  % is there a way doto
this


 Use the jsp:usebean tag instead and specify scope=session , the one
 you've been trying to use is for including files such as other pages.
 HTH
 Jin
 - Original Message -
 From: Mohammed [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, November 29, 2001 11:49 AM
 Subject: %@ include File = %= includefile%  % is there a way doto
this


  Hello evreybody,
 
  in an action class SourceAction I am setting a variable in the session
 
  SourceBean sourcebean = new SourceBean();
  sourcebean.setSource(  myform.getcommand());
  session.setAttribute(source, sourcebean);
 
  in the jsp file I want to do the following
 
  %
  SourceBean mysourcebean = (SourceBean)session.getAttribute(source);
 
  if(mysourcebean!=null) {
  String includefile= mysourcebean.getSource();
  %
 
  %@ include File =  %= includefile%  %// this is not
 working -
  ERROR:   file %= includefile% not found
 
  %}
 
  else {%
  %@ include File =  welcome.jsp  %
 
  %}%
 
 
  Thanks for any help
 
 
  Mohammed
 
 
 
 
 
 
 
 
 
  --
  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]




Action and Jsp / passing Parameters

2001-11-23 Thread Mohammed

Hello everybody,

In my web application I decided not to use frames and so I am using a table
in a jsp file. my question is as follow:

in the jsp file I want to know which action forwarded to this jsp file so
that I will accordingly run the right code? Is der a way I could pass a
Parameter from my Action class to the jsp file I am forwarding to ? Actually
I want to include the corresponding  jsp file into my main jsp file
according to where the forward came from.

Thanks for any Help

Mohammed




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




Request.setAttribute() and jsp

2001-11-23 Thread Mohammed

Hello,

in my action class I am setting in my request an object as follow:

SourceBean sourcebean= new SourceBean();
sourcebean.setSource( Longon);
request.setAttribute(source ,sourcebean);

And in my jsp file try to get a refererence

% SourceBean sourcebean = (SourceBean)request.getAttribute(source);

if(sourcebean = = null)System.out.println( the source bean object is
null);
else(

System.out.println(  sourcebean.getSource());

my Problem is that I am getting null for the sourcebean object. I think the
jsp servlet is getting always a new session but I don't know why?

Thanks for any hint


Mohammed


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




Re: Request.setAttribute() and jsp

2001-11-23 Thread Mohammed

No I am not setting the redirect attribute  in the forward. Should I set
this attribute to false or true? (I set it to true but it didn't work
either).


Mohammed
- Original Message -
From: Viet Kevin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 23, 2001 3:24 PM
Subject: Re: Request.setAttribute() and jsp



 Check if in the forwards of your action you do not write a thing like this
 forward path=*** redirect=true/


 Mohammed [EMAIL PROTECTED] wrote:

  Hello,
 
  in my action class I am setting in my request an object as follow:
 
  SourceBean sourcebean= new SourceBean();
  sourcebean.setSource( Longon);
  request.setAttribute(source ,sourcebean);
 
  And in my jsp file try to get a refererence
 
  % SourceBean sourcebean = (SourceBean)request.getAttribute(source);
 
  if(sourcebean = = null)System.out.println( the source bean object is
  null);
  else(
 
  System.out.println(  sourcebean.getSource());
 
  my Problem is that I am getting null for the sourcebean object. I think
the
  jsp servlet is getting always a new session but I don't know why?
 
  Thanks for any hint
 
 
  Mohammed

 =
 -- KeV --
 =



 --
 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: Request.setAttribute() and jsp

2001-11-23 Thread Mohammed

Thanks kevin . now it is working

Mohammed
- Original Message -
From: Viet Kevin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 23, 2001 3:24 PM
Subject: Re: Request.setAttribute() and jsp



 Check if in the forwards of your action you do not write a thing like this
 forward path=*** redirect=true/


 Mohammed [EMAIL PROTECTED] wrote:

  Hello,
 
  in my action class I am setting in my request an object as follow:
 
  SourceBean sourcebean= new SourceBean();
  sourcebean.setSource( Longon);
  request.setAttribute(source ,sourcebean);
 
  And in my jsp file try to get a refererence
 
  % SourceBean sourcebean = (SourceBean)request.getAttribute(source);
 
  if(sourcebean = = null)System.out.println( the source bean object is
  null);
  else(
 
  System.out.println(  sourcebean.getSource());
 
  my Problem is that I am getting null for the sourcebean object. I think
the
  jsp servlet is getting always a new session but I don't know why?
 
  Thanks for any hint
 
 
  Mohammed

 =
 -- KeV --
 =



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




Checking User log in in a JSP page

2001-04-19 Thread Irfan Mohammed

This question is regarding where to provide the check for user logged in,
should it be done in the Jsp or the actionServlet.  While I have proposed
the Jsp since you may not want a user to see a page if they are not
registered, others claim that it should be in the actionServlet.  Their
claim is that checking for user logged in is business logic (even though its
done using a tag) and there should be no business logic in a Jsp page.
Further allowing this you open the Jsp page to adding more business logic.
My question is where do you draw the line on the business logic that can be
provided in a Jsp page.  What are the thoughts of designers out there.

Thanks
Irfan