RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread anuj . upadhyay


+1
I also suggest this approach to keep the date as string during posts and convert
them to date object when porcessing the entered dates, surely not in the Form.

Depends on  what you really want to achieve. Would suggest the KISS rule..:-)





Robert Taylor [EMAIL PROTECTED] on 03/25/2004 08:53:31 PM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  RE: Handling Date objects in ActionForm gracefully



+1

 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 2:36 PM
 To: Struts Users Mailing List
 Subject: Re: Handling Date objects in ActionForm gracefully


 Have it as a string and convert it to a date or calendar when you pass
 it back to the model.


 On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote:

  All,
 
  We are facing a problem when we define java.util.Date field in
  ActionForm.
 
  Is there any way to override the default behavior provided by Struts?
 
  I very much appreciate your help!!
 
  Thanks and Regards,
  Sree/-
 
 
  ---
  -
  This is a PRIVATE message. If you are not the intended recipient,
  please
  delete without copying and kindly advise us by e-mail of the mistake in
  delivery. NOTE: Regardless of content, this e-mail shall not operate to
  bind CSC to any order or other contract unless pursuant to explicit
  written agreement or government initiative expressly permitting the
  use of
  e-mail for such purpose.
  ---
  -


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


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








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



RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread anuj . upadhyay


SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html

I am not sure which sdk you have and may have to get relevant jar file. More
info is available at http://java.sun.com/xml/ and http://www.saxproject.org/.

HTH
Anuj





Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException



Hi,

   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.

thanks
Bala






Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException



If your application is deployed as a default ROOT application,
then Your URL should be only http://localhost/login.do

I could make out only this much. If this helps fine, else
provide some more information.

- Ashutosh Satyam

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:25 PM
To: Struts Users Mailing List
Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException


Hi ,

  I tried to call the action classes http://localhost/context
rootlogin.do, am getting the following exception

java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)

at
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)

at
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)

at
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)

at
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)

at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

 Please let me know how to resolve this issue.

thanks
Bala

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











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



RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-22 Thread anuj . upadhyay


Bala,

I think the problem is not with the jar but the jdk version. Check which version
you have/support and then get the relevant jar.

Also have a look at: http://www.artima.com/forums/flat.jsp?forum=61thread=4792

HTH
Anuj





Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 02:20:03 PM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException



I am currently using Struts 1.1 and I would like to know which version of
SAX is supported for this. I would be greatful, if anyone of you tell me
the site to download the jar files.

thanks
Bala





Kumar, Ram S [EMAIL PROTECTED]
03/22/2004 06:47 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException



If you get an unsupported version error, you need to download the latest
jar
files (XML Jar files).

Thanks and Regards,
S.Ramkumar

-Original Message-
From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:45 PM
To: Struts Users Mailing List
Subject: RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

Hi,
  I included the rt.jar which comes along with J2SE 1.4.2 but am getting
unsupported version error
java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(Appli
cationLoader.java:143)
at
com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:
120)
at
com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.j
ava:259)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.ge
tServlet(WebComponents.java:287)
at
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet
.java:81)
at
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(
ServletsAndJspImpl.java:387)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:375)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque
stAnalizer.java:355)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer
(RequestAnalizer.java:721)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(Requ
estAnalizer.java:418)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnal
izer.java:223)
at
com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)
at
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:1
52)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMes
sageListener.process(ApplicationSessionMessageListener.java:37)
at
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run
(UnorderedChannel.java:60)
at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)
Please let me know where to get the correct version of SAX Parser.
thanks
Bala
[EMAIL PROTECTED]
03/22/2004 06:20 PM
Please respond to Struts Users Mailing List

To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException

SAX is part of the J2SE 1.4.2, see
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
I am not sure which sdk you have and may have to get relevant jar file.
More
info is available at http://java.sun.com/xml/ and
http://www.saxproject.org/.
HTH
Anuj
Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
Subject:  RE: java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
Hi,
   I dont have problem in accessing the url, but it says Class not founf
exception. I would like to know from where I can get the SAX jar file so
that I can place in Lib directory.
thanks
Bala
Ashutosh Satyam [EMAIL PROTECTED]
03/22/2004 05:34 PM

Re: Webb access to mailing list

2004-03-18 Thread anuj . upadhyay



check the following link:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/

for other list try: http://www.mail-archive.com/lists.html





Jon Bohm [EMAIL PROTECTED] on 03/18/2004 08:25:57 AM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  Webb access to mailing list



Hello,

This mailing list is very good and appreciated, but it fills up my hotmail
mailbox every second day. Is there a web interface viewing a threaded
version of this list, and perhaps with a search function?

Best  regards,
Jon

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








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



html:image - running into an infinite loop

2004-03-12 Thread anuj . upadhyay


Hi,
I have read old mails regarding the html:image implementation and the
recommendations related to identifying which image is clicked in the form. For
reference is used Ted's - 'Struts Tip #1 - Use an ImageButtonBean to represent
an image button' @ http://husted.com/struts/tips/001.html

My problem is a step further in the same. I will try my best to explain it, I
hope I get it right.

I have a mainpage which has many image buttons, they all map to different
actions that they must perform. Once the image is clicked, I identify the image
and perform the relevant action by forwarding the call to the relevant action
mapping. Most actions have a .jsp (UI) and action class and are defined in the
struts-config.xml part shown below:

struts-config
  form-beans
form-bean name=dataForm type=com.data.struts.form.DataForm
/form-bean
  /form-beans
  global-forwards
forward name=getData path=/getData.do/
forward name=resetData path=/resetData.do/
  /global-forwards
  action-mappings
action path=/getData type=com.data.struts.action.DataAction
name=dataForm scope=request input=/jsp/dataForm.jsp
  forward name=success path=/jsp/dataForm.jsp/
/action
action path=/resetData type=com.data.struts.action.ResetDataAction
name=dataForm scope=request 
  forward name=success path=/getData.do/
/action
  /action-mappings
  message-resources parameter=ApplicationResources/
/struts-config

In my case DataAction class receives the click event and forward the call to
/resetData.

  //as below
  if (dataForm.getRestButton().pressed()  errors == null) {

   Log.debug(RESET BUTTON :+ dataForm. getRestButton ().getName()
   +, X : + dataForm. getRestButton ().getX()
   +, Y : + dataForm. getRestButton ().getY());
 return (mapping.findForward(resetData));
  }

The ResetDataAction process the request (does some thing) and must return back
to the caller - forward to /getData finally.

//as below
mapping.findForward(getData)

All button handling working fine and I can do the processing in ResetDataAction
but the problem start when I forward the call back to /getData. The call forward
to DataAction class but the button click is identified and the call gets
forwarded back to /resetData and then back here I get into a loop.

I tried to reset on the form (which is common to both action classes) but no
success, I tried explicitly setting the button beans X  Y values to null, still
no success.

What I could do was do the process I was doing in ResetDataAction in DataAction
but that is not what I would like to do.

I want to keep the two implementations separate as one only delegates and the
other does some processing. Can someone throw more light onto this? I have been
reading a lot but have not come across a person who faced a similar problem. It
may be something really basic but I can't solve it the way I want and it's
bothering me.

Any help on this will be much appreciated.
Thanks in advance,

Anuj







__
NOTICE:  This communication and any files transmitted with it (communication)
may contain privileged or other confidential information. This communication is
intended solely for the individual or entity to whom it is addressed. If you are
not the intended recipient, or believe that you have received this communication
in error, please do not print, copy, retransmit, disseminate, or otherwise use
this communication.  Also, please indicate to the sender that you have received
this communication in error, and then delete this communication and any copies.
Thank you.





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



Re: html:image - running into an infinite loop

2004-03-12 Thread anuj . upadhyay



Niall, Thanks for the help. Atleast now I know where to look to solve the
problem.

My next question, how to remove / reset the button parameters (x  y) in the
Request?

I need the other parameters to stay (sort of refresh / repost, but don't want to
 go back to 'ResetDataAction') .


-Anuj


Response to: html:image - running into an infinite loop
([EMAIL PROTECTED])

From: Niall Pemberton [EMAIL PROTECTED]
Subject: html:image - running into an infinite loop
Date: Fri, 12 Mar 2004 15:03:02 -
Content-Type: text/plain;
 charset=iso-8859-1

The problem you are having, is that each time you forward to an action then
struts will re-populate the form from the request.

That is why you are getting into a loop - when your ResetDataAction
forwards back to getData - the action for getData is having the form
re-populated from the request, including the x, y co-ordinates.

If you did a redirect then you would effectively get a whole new request,
but you would loose everything, not just the x, y co-ordinates.

Niall


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:11 PM
Subject: html:image - running into an infinite loop




Hi,
I have read old mails regarding the html:image implementation and the
recommendations related to identifying which image is clicked in the form.
For
reference is used Ted's - 'Struts Tip #1 - Use an ImageButtonBean to
represent
an image button' @ http://husted.com/struts/tips/001.html

My problem is a step further in the same. I will try my best to explain it,
I
hope I get it right.

I have a mainpage which has many image buttons, they all map to different
actions that they must perform. Once the image is clicked, I identify the
image
and perform the relevant action by forwarding the call to the relevant
action
mapping. Most actions have a .jsp (UI) and action class and are defined in
the
struts-config.xml part shown below:

struts-config
  form-beans
form-bean name=dataForm type=com.data.struts.form.DataForm
/form-bean
  /form-beans
  global-forwards
forward name=getData path=/getData.do/
forward name=resetData path=/resetData.do/
  /global-forwards
  action-mappings
action path=/getData type=com.data.struts.action.DataAction
name=dataForm scope=request input=/jsp/dataForm.jsp
  forward name=success path=/jsp/dataForm.jsp/
/action
action path=/resetData type=com.data.struts.action.ResetDataAction
name=dataForm scope=request 
  forward name=success path=/getData.do/
/action
  /action-mappings
  message-resources parameter=ApplicationResources/
/struts-config

In my case DataAction class receives the click event and forward the call to
/resetData.

  //as below
  if (dataForm.getRestButton().pressed()  errors == null) {

   Log.debug(RESET BUTTON :+ dataForm. getRestButton ().getName()
   +, X : + dataForm. getRestButton ().getX()
   +, Y : + dataForm. getRestButton ().getY());
 return (mapping.findForward(resetData));
  }

The ResetDataAction process the request (does some thing) and must return
back
to the caller - forward to /getData finally.

//as below
mapping.findForward(getData)

All button handling working fine and I can do the processing in
ResetDataAction
but the problem start when I forward the call back to /getData. The call
forward
to DataAction class but the button click is identified and the call gets
forwarded back to /resetData and then back here I get into a loop.

I tried to reset on the form (which is common to both action classes) but no
success, I tried explicitly setting the button beans X  Y values to null,
still
no success.

What I could do was do the process I was doing in ResetDataAction in
DataAction
but that is not what I would like to do.

I want to keep the two implementations separate as one only delegates and
the
other does some processing. Can someone throw more light onto this? I have
been
reading a lot but have not come across a person who faced a similar problem.
It
may be something really basic but I can't solve it the way I want and it's
bothering me.

Any help on this will be much appreciated.
Thanks in advance,

Anuj





__
NOTICE:  This communication and any files transmitted with it (communication)
may contain privileged or other confidential information. This communication is
intended solely for the individual or entity to whom it is addressed. If you are
not the intended recipient, or believe that you have received this communication
in error, please do not print, copy, retransmit, disseminate, or otherwise use
this communication.  Also, please indicate to the sender that you have received
this communication in error, and then delete this communication and any copies.
Thank you.





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