Re: Struts and X11

2002-05-13 Thread Duke Ronlund

Hi, 

In a previous project we used JAI on JDK 1.3 with struts to do JPG
resizing/scaling and modifications on a java.awt.image.RenderedImage
without any X11 side effects, so your assumption that it is a JDk 1.4
thing may be correct.  (We are using this code on Win2k, Solaris8  Red
Hat Linux)

Cheers
Duke



On Mon, 2002-05-13 at 15:15, Micael Padraig Og mac Grene wrote:
 I presently am having difficulty using the awt with servlets to do image 
 reconstruction work on a RedHat 7.2 Linux platfrom, because I get the 
 following exception, which some think is a bug in JDK 1.4, but seems to be 
 something Sun has tolerated intentionally
 
 Exception in thread main java.lang.InternalError: Can't connect to X11 
 window server using ':0,0' as the value of the DISPLAY variable.
   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
   at sun.awt.X11GraphicsEnvironment.clinit(11GraphicsEnvironment.java:126)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at java.awt.Toolkit#2.run(Toolket.java:712)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
   at javax.swing.ImageIcon.(init(ImageIcon.java:81)
   at javax.swing.ImageIcon.init(ImageIcon.java:107)
 
 My ps aux says:
 
   /etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv
 
 for the X11 server.  Does anyone have an idea what I need to do at this 
 point?  Everything works on a pc, of course.
 
 This is not strictly a struts problem, of course, but it is something that 
 struts users that deal with multimedia will need to deal with since it is 
 essentially a server side problem.  I have no problem with leaving an X11 
 server running to make this work.  I cannot live with the client having to 
 do anything special.  The problem is that I don't want to use the graphics 
 but do want to access the graphic functionality.
 
 Thanks for any assistance.
 
 Micael
 
 P.S. If you don't understand the above, please do not offer 
 suggestions.  Thanks for that too.
 
 
 
 --
 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: logic:iterate with EJB's, casting problem?

2002-05-13 Thread Arron Bates

You'll most likely find that the PortableRemoteObject.narrow() will be 
the part giving you grief. The tags will have no idea that it has to do 
this. The fact that you can get away with it so easily with a small 
scriptlet will probably mean that it will remain your best option. Your 
problem is very specific and the tags are not designed to handle specifics.

Only other option, is to marshal from this EJB call into a basic bean 
within an Action before you forward to your JSP. Would also make the MVC 
purists happier. :)

What EJB container are you using that's running on top of VisiBroker?...


Arron.


Struts Newsgroup (@Basebeans.com) wrote:

Subject: logic:iterate with EJB's, casting problem?
From: Nicolas Parisé [EMAIL PROTECTED]
 ===
Hi!

I have a problems, for displaying a collection of object retrieved
from a EJB (1.1).


In my action class, I retrieve a collection of Artists objects from
a Session EJB:


Collection coll = myRemoteSessionBeanInterface.getArtists();
request.setAttribute(coll,coll);

then in my JSP, I use de iterate tag to loop over my collection :


logic:iterate id=element name=coll type=Artists
bean:write name=element property=name/br
/logic:iterate


Here is the error that I have :

javax.servlet.ServletException: com.inprise.vbroker.rmi.CORBA.ObjectImpl


I was only be able to display my collection that way :

Iterator it = coll.iterator();

while (it.hasNext()) {
out.println(((Artist)PortableRemoteObject.narrow(it.next(),
Artist.class)).getName());
}


I want to use the Struts logic:iterate tag, not the while loop, any ideas?




Nicolas Parise



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

2002-05-13 Thread Arron Bates

They would have been installed with X services.
I think that if an admin installs a box without basic head functionality 
he's being a bit of a tool. :)

Win2K install should always be fine in this regard. We all know that the 
head stuff and internet browsing cannot be removed from any competitive 
operating system ;)

Arron.


Duke Ronlund wrote:

Hi, 

In a previous project we used JAI on JDK 1.3 with struts to do JPG
resizing/scaling and modifications on a java.awt.image.RenderedImage
without any X11 side effects, so your assumption that it is a JDk 1.4
thing may be correct.  (We are using this code on Win2k, Solaris8  Red
Hat Linux)

Cheers
Duke




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




Form Problem (This should be simple)

2002-05-13 Thread Phase Web and Multimedia

This should be simple.

I have a page, PAGE A, and another page, PAGE B.

when I enter the url www.mydomain.com/do/pagea

it takes me to a page with a some input form elements and two buttons

I click a button then I am sent to another page (PAGE B)

On PAGE B I have a link back to PAGE A

When I click the link back to PAGE A my form information continues to
persist. Why is this? I thought the form lived in the request. It shouldn't
be getting forwarded around... right?

I click refresh nothing happens. It is not a browser cached page. It seems
like the form is persisting in thre request for some reason. I am running
struts 1.1b1 with Tomcat 4.0.3. Any thoughts?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



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




NEVERMIND: Form Problem (This should be simple)

2002-05-13 Thread Phase Web and Multimedia

I guess all I had to do was make sure that the request was the specified
scope for the ActionForm. I thought it was default. :-) My bad.

-Original Message-
From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 1:03 AM
To: Struts Users Mailing List
Subject: Form Problem (This should be simple)


This should be simple.

I have a page, PAGE A, and another page, PAGE B.

when I enter the url www.mydomain.com/do/pagea

it takes me to a page with a some input form elements and two buttons

I click a button then I am sent to another page (PAGE B)

On PAGE B I have a link back to PAGE A

When I click the link back to PAGE A my form information continues to
persist. Why is this? I thought the form lived in the request. It shouldn't
be getting forwarded around... right?

I click refresh nothing happens. It is not a browser cached page. It seems
like the form is persisting in thre request for some reason. I am running
struts 1.1b1 with Tomcat 4.0.3. Any thoughts?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



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

2002-05-13 Thread Micael Padraig Og mac Grene

Arron,

I added the Djava.awt.headless=true to CATALINA_OPTS as follows:

# - Execute The Requested Command -

echo Using CATALINA_BASE:   $CATALINA_BASE
echo Using CATALINA_HOME:   $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME:   $JAVA_HOME

if [ $1 = jpda ] ; then
   if [ -z $JPDA_ADDRESS ]; then
 JPDA_ADDRESS=8000
   fi
   if [ -z $JDPA_OPTS ]; then
 JPDA_OPTS=-Xdebug 
-Xrunjdwp:transport=dt_socket,address=$JPDA_ADDRESS,server=y,suspend=n
   fi
   CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS
   shift
fi
CATALINA_OPTS=-Djava.awt.headless=true

This did not fix the problem.  Have I got it in the wrong place or something?

Micael

At 04:57 PM 5/13/02 +1000, you wrote:
They would have been installed with X services.
I think that if an admin installs a box without basic head functionality 
he's being a bit of a tool. :)

Win2K install should always be fine in this regard. We all know that the 
head stuff and internet browsing cannot be removed from any competitive 
operating system ;)

Arron.


Duke Ronlund wrote:

Hi,
In a previous project we used JAI on JDK 1.3 with struts to do JPG
resizing/scaling and modifications on a java.awt.image.RenderedImage
without any X11 side effects, so your assumption that it is a JDk 1.4
thing may be correct.  (We are using this code on Win2k, Solaris8  Red
Hat Linux)

Cheers
Duke



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

2002-05-13 Thread Micael Padraig Og mac Grene

What I don't understand is that I should have the X11 running.  I showed 
you the ps aux reading and I use a graphical interface on the server to do 
modications all the time.

?


Micael

At 04:57 PM 5/13/02 +1000, you wrote:
They would have been installed with X services.
I think that if an admin installs a box without basic head functionality 
he's being a bit of a tool. :)

Win2K install should always be fine in this regard. We all know that the 
head stuff and internet browsing cannot be removed from any competitive 
operating system ;)

Arron.


Duke Ronlund wrote:

Hi,
In a previous project we used JAI on JDK 1.3 with struts to do JPG
resizing/scaling and modifications on a java.awt.image.RenderedImage
without any X11 side effects, so your assumption that it is a JDk 1.4
thing may be correct.  (We are using this code on Win2k, Solaris8  Red
Hat Linux)

Cheers
Duke



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

2002-05-13 Thread Micael Padraig Og mac Grene

Did you use a buffer for the image?  That is where the problem crops up, I 
think.

Micael

At 04:36 PM 5/13/02 +1000, you wrote:
Hi,

In a previous project we used JAI on JDK 1.3 with struts to do JPG
resizing/scaling and modifications on a java.awt.image.RenderedImage
without any X11 side effects, so your assumption that it is a JDk 1.4
thing may be correct.  (We are using this code on Win2k, Solaris8  Red
Hat Linux)

Cheers
Duke



On Mon, 2002-05-13 at 15:15, Micael Padraig Og mac Grene wrote:
  I presently am having difficulty using the awt with servlets to do image
  reconstruction work on a RedHat 7.2 Linux platfrom, because I get the
  following exception, which some think is a bug in JDK 1.4, but seems to be
  something Sun has tolerated intentionally
 
  Exception in thread main java.lang.InternalError: Can't connect to X11
  window server using ':0,0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at 
 sun.awt.X11GraphicsEnvironment.clinit(11GraphicsEnvironment.java:126)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit#2.run(Toolket.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at javax.swing.ImageIcon.(init(ImageIcon.java:81)
at javax.swing.ImageIcon.init(ImageIcon.java:107)
 
  My ps aux says:
 
/etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv
 
  for the X11 server.  Does anyone have an idea what I need to do at this
  point?  Everything works on a pc, of course.
 
  This is not strictly a struts problem, of course, but it is something that
  struts users that deal with multimedia will need to deal with since it is
  essentially a server side problem.  I have no problem with leaving an X11
  server running to make this work.  I cannot live with the client having to
  do anything special.  The problem is that I don't want to use the graphics
  but do want to access the graphic functionality.
 
  Thanks for any assistance.
 
  Micael
 
  P.S. If you don't understand the above, please do not offer
  suggestions.  Thanks for that too.
 
 
 
  --
  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]




X11 -Djava.awt.headless=true Doesn't do it for JDK 1.4

2002-05-13 Thread Micael Padraig Og mac Grene

I tried setting -Djava.awt.headless=true and the JVM is running that way. 
However, I still get the following error message:

Exception in thread main java.lang.InternalError: Can't connect to X11 
window server using ':0.0' as the value of the DISPLAY variable.  I changed 
the value of the DISPLAY variable to the server ip address:0.0 with no 
dice either.

Anyone got an idea how the DISPLAY variable should be set, or why it needs 
to be set, since it is runing headless?

Micael



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




Re: Struts and X11

2002-05-13 Thread Arron Bates

This is where I start to run dry. I'm by no means a Unix guru, so this 
particular question should be fired at someone higher on the Unix food 
chain.
But this is all I know...

This is in my Tomcat startup script...

rm /tmp/.X11-unix/X24
/usr/local/bin/vncserver :24
DISPLAY=localhost:24.0;export DISPLAY

...which I am assuming that it's cleaning up stuff first, starting VNC 
(the X client), and a config line for VNC.

I just did a quick lap around the net, and according to this page...
http://www.mail-archive.com/cocoon-users%40xml.apache.org/msg08873.html

...the edit should be in catalina.sh. But I assume that that is the 
page you just posted. According to them it's all that has to be 
happening. Apparently 'Coon suffers these issues all by itself.

I suppose what I'm tyring to get at is that about these *nix environment 
specifics, I have no idea. But I wish you all the best :)

I do know, however, that buffering the image will have no effect. It's 
the rendering the image to a cnavas that the issue springs up from.


Arron.


Micael Padraig Og mac Grene wrote:

 What I don't understand is that I should have the X11 running. I 
 showed you the ps aux reading and I use a graphical interface on the 
 server to do modications all the time.

 ?


 Micael

 At 04:57 PM 5/13/02 +1000, you wrote:

 They would have been installed with X services.
 I think that if an admin installs a box without basic head 
 functionality he's being a bit of a tool. :)

 Win2K install should always be fine in this regard. We all know that 
 the head stuff and internet browsing cannot be removed from any 
 competitive operating system ;)

 Arron.


 Duke Ronlund wrote:

 Hi,
 In a previous project we used JAI on JDK 1.3 with struts to do JPG
 resizing/scaling and modifications on a java.awt.image.RenderedImage
 without any X11 side effects, so your assumption that it is a JDk 1.4
 thing may be correct. (We are using this code on Win2k, Solaris8  Red
 Hat Linux)

 Cheers
 Duke




 -- 
 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: X11 -Djava.awt.headless=true Doesn't do it for JDK 1.4

2002-05-13 Thread Micael Padraig Og mac Grene

I have the class working now. Thanks for all the help. The same problem is 
rife on Cocoon.  Micael

At 12:40 AM 5/13/02 -0700, you wrote:
I tried setting -Djava.awt.headless=true and the JVM is running that way. 
However, I still get the following error message:

Exception in thread main java.lang.InternalError: Can't connect to X11 
window server using ':0.0' as the value of the DISPLAY variable.  I 
changed the value of the DISPLAY variable to the server ip address:0.0 
with no dice either.

Anyone got an idea how the DISPLAY variable should be set, or why it needs 
to be set, since it is runing headless?

Micael



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

2002-05-13 Thread Micael Padraig Og mac Grene

Just so you know too, Duke, since you helped me out, JDK 1.4 is 
preferrable, since it allows headless awt work, if you set the JVM startup 
to -Djava.awt.headless=true.  Thanks again.  Micael

At 04:36 PM 5/13/02 +1000, you wrote:
Hi,

In a previous project we used JAI on JDK 1.3 with struts to do JPG
resizing/scaling and modifications on a java.awt.image.RenderedImage
without any X11 side effects, so your assumption that it is a JDk 1.4
thing may be correct.  (We are using this code on Win2k, Solaris8  Red
Hat Linux)

Cheers
Duke



On Mon, 2002-05-13 at 15:15, Micael Padraig Og mac Grene wrote:
  I presently am having difficulty using the awt with servlets to do image
  reconstruction work on a RedHat 7.2 Linux platfrom, because I get the
  following exception, which some think is a bug in JDK 1.4, but seems to be
  something Sun has tolerated intentionally
 
  Exception in thread main java.lang.InternalError: Can't connect to X11
  window server using ':0,0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at 
 sun.awt.X11GraphicsEnvironment.clinit(11GraphicsEnvironment.java:126)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit#2.run(Toolket.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at javax.swing.ImageIcon.(init(ImageIcon.java:81)
at javax.swing.ImageIcon.init(ImageIcon.java:107)
 
  My ps aux says:
 
/etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv
 
  for the X11 server.  Does anyone have an idea what I need to do at this
  point?  Everything works on a pc, of course.
 
  This is not strictly a struts problem, of course, but it is something that
  struts users that deal with multimedia will need to deal with since it is
  essentially a server side problem.  I have no problem with leaving an X11
  server running to make this work.  I cannot live with the client having to
  do anything special.  The problem is that I don't want to use the graphics
  but do want to access the graphic functionality.
 
  Thanks for any assistance.
 
  Micael
 
  P.S. If you don't understand the above, please do not offer
  suggestions.  Thanks for that too.
 
 
 
  --
  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: Form Problem (This should be simple)

2002-05-13 Thread Jon.Ridgway

Hi Brandon,

Check your struts-config.xml. Make sure you have scope=request in your
action-mapping definition for page a.

Jon Ridgway

-Original Message-
From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] 
Sent: 13 May 2002 08:03
To: Struts Users Mailing List
Subject: Form Problem (This should be simple)

This should be simple.

I have a page, PAGE A, and another page, PAGE B.

when I enter the url www.mydomain.com/do/pagea

it takes me to a page with a some input form elements and two buttons

I click a button then I am sent to another page (PAGE B)

On PAGE B I have a link back to PAGE A

When I click the link back to PAGE A my form information continues to
persist. Why is this? I thought the form lived in the request. It shouldn't
be getting forwarded around... right?

I click refresh nothing happens. It is not a browser cached page. It seems
like the form is persisting in thre request for some reason. I am running
struts 1.1b1 with Tomcat 4.0.3. Any thoughts?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



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

The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: logic:iterate with EJB's, casting problem?

2002-05-13 Thread Jon.Ridgway

Hi Nicolas,

Looks like there may be several issues here. The type should be the fully
qualified class name (you have Artists, should be package.Arist?) Also if
Artist is itself an EJB you should consider changing your stateless session
bean to return a collection of ArtistValueObjects; your presentation tier
should not (generally) be dealing with EJBs directly. On a similar note you
might consider hiding your stateless session bean behind a BusinessDelegate.

Jon Ridgway.
 

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
Sent: 13 May 2002 06:40
To: [EMAIL PROTECTED]
Subject: logic:iterate with EJB's, casting problem?

Subject: logic:iterate with EJB's, casting problem?
From: Nicolas Parise [EMAIL PROTECTED]
 ===
Hi!

I have a problems, for displaying a collection of object retrieved
from a EJB (1.1).


In my action class, I retrieve a collection of Artists objects from
a Session EJB:


Collection coll = myRemoteSessionBeanInterface.getArtists();
request.setAttribute(coll,coll);

then in my JSP, I use de iterate tag to loop over my collection :


logic:iterate id=element name=coll type=Artists
bean:write name=element property=name/br
/logic:iterate


Here is the error that I have :

javax.servlet.ServletException: com.inprise.vbroker.rmi.CORBA.ObjectImpl


I was only be able to display my collection that way :

Iterator it = coll.iterator();

while (it.hasNext()) {
out.println(((Artist)PortableRemoteObject.narrow(it.next(),
Artist.class)).getName());
}


I want to use the Struts logic:iterate tag, not the while loop, any ideas?




Nicolas Parise



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

The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




NewBi Quenstion

2002-05-13 Thread Sudhir

Hi,

I am newbi to Struts.  where should I define my database to make transations using 
struts.

Thanks and Best Regards,

-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:34 PM
To: 'Struts Users Mailing List'
Subject: RE: logic:iterate with EJB's, casting problem?


Hi Nicolas,

Looks like there may be several issues here. The type should be the fully
qualified class name (you have Artists, should be package.Arist?) Also if
Artist is itself an EJB you should consider changing your stateless session
bean to return a collection of ArtistValueObjects; your presentation tier
should not (generally) be dealing with EJBs directly. On a similar note you
might consider hiding your stateless session bean behind a BusinessDelegate.

Jon Ridgway.
 

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
Sent: 13 May 2002 06:40
To: [EMAIL PROTECTED]
Subject: logic:iterate with EJB's, casting problem?

Subject: logic:iterate with EJB's, casting problem?
From: Nicolas Parise [EMAIL PROTECTED]
 ===
Hi!

I have a problems, for displaying a collection of object retrieved
from a EJB (1.1).


In my action class, I retrieve a collection of Artists objects from
a Session EJB:


Collection coll = myRemoteSessionBeanInterface.getArtists();
request.setAttribute(coll,coll);

then in my JSP, I use de iterate tag to loop over my collection :


logic:iterate id=element name=coll type=Artists
bean:write name=element property=name/br
/logic:iterate


Here is the error that I have :

javax.servlet.ServletException: com.inprise.vbroker.rmi.CORBA.ObjectImpl


I was only be able to display my collection that way :

Iterator it = coll.iterator();

while (it.hasNext()) {
out.println(((Artist)PortableRemoteObject.narrow(it.next(),
Artist.class)).getName());
}


I want to use the Struts logic:iterate tag, not the while loop, any ideas?




Nicolas Parise



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

The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

--
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: Design question on roles and tasks

2002-05-13 Thread Jon.Ridgway

Hi Chong,

Container based security is a topic that comes up regularly on the list try
searching on it. 

When you use container based security your authenticated user will be
associated with one or more roles. This is a J2EE feature.

Struts can use the 'role' information in several ways:

- the tile and template extensions provide a 'role' tag to conditionally
include content depending upon a users role.

- within your action class your can call request.isUserInRole (role) and
execute code depending on the result.

- within the struts-config you can set a role against an action-mapping so
that only users in the given role can access the action. Never used this
feature so I'm not sure what happens if the user is not in the role.

Jon Ridgway

-Original Message-
From: Chong Oh [mailto:[EMAIL PROTECTED]] 
Sent: 08 May 2002 21:10
To: 'Struts Users Mailing List'
Subject: Design question on roles and tasks

All:

If this has been discussed already, I apologize.  I am implementing an user
access based on roles and tasks, where a user has roles and each role has
tasks.  Ideally, each task has a one to one relationship with each link on
the JSP, whereby the access to those links depends on user's role/s.  All
roles and tasks are persisted.

Upon successful login, user's roles will be accessed and all tasks
associated will be retrieved.  All links associated with tasks will be shown
on the JSP via logic tags.

Has anyone implement this with struts yet.  Could you share your experience
with me, particularly the question whether this is a good design in the
first place?

Thanks in advance

Chong

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

The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




Configuration is frozen -what does it mean?

2002-05-13 Thread struts

Hi!
I often get an error messaget that says that the configuration is frozen. (See 
the error message below). I don't understand why I get this error and 
restarting the server does not help. I really need some help with this problem, 
thanks.

// Ulrika

[INFO] RequestProcessor - -Processing a 'GET' for 
path '/manadsspara/manadssparaForm'
[WARN] RequestProcessor - -null
[2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup  X Servlet Error: 
Configuration is frozen: java.lang.IllegalStateException: Configuration is 
frozen
at org.apache.struts.config.ForwardConfig.setRedirect
(ForwardConfig.java:161)
at 
se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform
(ManadssparaAction.java:92)
at 
se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform
(ManadssparaFormAction.java:35)
at org.apache.struts.action.Action.execute(Action.java:369)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:264)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at se.amfpension.internet.servlet.ControlServlet.doGet
(ControlServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

 

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




Configuration is frozen -what does it mean?

2002-05-13 Thread struts

Hi!
I often get an error messaget that says that the configuration is frozen. (See 
the error message below). I don't understand why I get this error and 
restarting the server does not help. I really need some help with this problem, 
thanks.

// Ulrika

[INFO] RequestProcessor - -Processing a 'GET' for 
path '/manadsspara/manadssparaForm'
[WARN] RequestProcessor - -null
[2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup  X Servlet Error: 
Configuration is frozen: java.lang.IllegalStateException: Configuration is 
frozen
at org.apache.struts.config.ForwardConfig.setRedirect
(ForwardConfig.java:161)
at 
se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform
(ManadssparaAction.java:92)
at 
se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform
(ManadssparaFormAction.java:35)
at org.apache.struts.action.Action.execute(Action.java:369)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:264)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at se.amfpension.internet.servlet.ControlServlet.doGet
(ControlServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)



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




Re: Struts and X11 (without headless)

2002-05-13 Thread David Hamilton

Micael,

We had that with 1.4 on Linux.  Headless solved it.  IIRC, the other way to 
solve it is to tell the system where to find the libX11.so library (and I 
think we tried it successfully!) is to set and export LD_PRELOAD to include 
the location of libX11.so, so in our case...

LD_PRELOAD=/usr/X11R6/lib/libX11.so

Hope that helps
 /david


At 06:15 13/05/2002, Micael Padraig Og mac Grene wrote:
I presently am having difficulty using the awt with servlets to do image 
reconstruction work on a RedHat 7.2 Linux platfrom, because I get the 
following exception, which some think is a bug in JDK 1.4, but seems to be 
something Sun has tolerated intentionally


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




ghost action

2002-05-13 Thread Mike Dewhirst

Hello and thanks in advance for reading :)

I have an action, which contains as one of it's first lines a log statement.

When the action is called, all I get is this:

action: Processing a GET for /{myaction}
action:  Looking for Action instance for class {myclass}

that's it. no page is displayed. there are no exceptions, no error messages.
nothing. as if the action is empty. 

this is the source of the page:

 start 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=windows-1252/HEAD
BODY/BODY/HTML
- end -

this is my struts config entry for the action:

 start 
!-- Front end show tech contacts action start --
action path=/{myAction}
  type={myActionClass}
  scope=request

  forward name=success path=/{mySuccessPage} /
  forward name=failure path=/{myFailurePage} /

/action
- end -

If anybody has any ideas as to what I could try tp figure out why _nothing_
is happening, I would be very greatful.

Thanks in advance,

m


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

***




Re: NewBi Quenstion

2002-05-13 Thread Adam Hardy

Hi Sudhir,

struts doesn't have any database-related code. When you code your 
connection object handling, wherever you do that and it might not be in 
any struts related classes, you must code it to commit and rollback 
yourself.

Adam

Sudhir wrote:

Hi,

I am newbi to Struts.  where should I define my database to make transations using 
struts.

Thanks and Best Regards,

  




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




Configuration is frozen -what does it mean?

2002-05-13 Thread struts

Hi!
I often get an error messaget that says that the configuration is frozen. (See 
the error message below). I don't understand why I get this error and 
restarting the server does not help. I really need some help with this problem, 
thanks.

// Ulrika

[INFO] RequestProcessor - -Processing a 'GET' for 
path '/manadsspara/manadssparaForm'
[WARN] RequestProcessor - -null
[2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup  X Servlet Error: 
Configuration is frozen: java.lang.IllegalStateException: Configuration is 
frozen
at org.apache.struts.config.ForwardConfig.setRedirect
(ForwardConfig.java:161)
at 
se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform
(ManadssparaAction.java:92)
at 
se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform
(ManadssparaFormAction.java:35)
at org.apache.struts.action.Action.execute(Action.java:369)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:264)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at se.amfpension.internet.servlet.ControlServlet.doGet
(ControlServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

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




Re: ghost action

2002-05-13 Thread Adam Hardy

Hi Mike,
are you sure those pages you've configured in struts-config.xml are 
correct? Do they have anything in them?

Check in your action.perform whether you are returning a valid Forward 
as a return parameter. Perhaps you've misspelt one and your 
mapping.findForward doesn't find anything.

Adam

Mike Dewhirst wrote:

Hello and thanks in advance for reading :)

I have an action, which contains as one of it's first lines a log statement.

When the action is called, all I get is this:

action: Processing a GET for /{myaction}
action:  Looking for Action instance for class {myclass}

that's it. no page is displayed. there are no exceptions, no error messages.
nothing. as if the action is empty. 

this is the source of the page:

 start 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=windows-1252/HEAD
BODY/BODY/HTML
- end -

this is my struts config entry for the action:

 start 
!-- Front end show tech contacts action start --
action path=/{myAction}
  type={myActionClass}
  scope=request

  forward name=success path=/{mySuccessPage} /
  forward name=failure path=/{myFailurePage} /

/action
- end -

If anybody has any ideas as to what I could try tp figure out why _nothing_
is happening, I would be very greatful.

Thanks in advance,

m


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of 
the UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee 
that this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of 
the UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee 
that this email is virus free.

***


  




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




RE: ghost action

2002-05-13 Thread Mike Dewhirst

Thanks for the suggestions. Unfortunately they did not help.

just checked. the path for the jsp in the struts-config.xml is correct - if
I cut and paste - the page does come up (though with erorrs - since it
expects stuff from the action). It's as if the action is found but not
processed.

Any more ideas?

Thanks again,

Mike

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 12:05
 To: Struts Users Mailing List
 Subject: Re: ghost action
 
 
 Hi Mike,
 are you sure those pages you've configured in struts-config.xml are 
 correct? Do they have anything in them?
 
 Check in your action.perform whether you are returning a 
 valid Forward 
 as a return parameter. Perhaps you've misspelt one and your 
 mapping.findForward doesn't find anything.
 
 Adam
 
 Mike Dewhirst wrote:
 
 Hello and thanks in advance for reading :)
 
 I have an action, which contains as one of it's first lines 
 a log statement.
 
 When the action is called, all I get is this:
 
 action: Processing a GET for /{myaction}
 action:  Looking for Action instance for class {myclass}
 
 that's it. no page is displayed. there are no exceptions, no 
 error messages.
 nothing. as if the action is empty. 
 
 this is the source of the page:
 
  start 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META http-equiv=Content-Type content=text/html;
 charset=windows-1252/HEAD
 BODY/BODY/HTML
 - end -
 
 this is my struts config entry for the action:
 
  start 
 !-- Front end show tech contacts action start --
 action path=/{myAction}
   type={myActionClass}
   scope=request
 
   forward name=success path=/{mySuccessPage} /
   forward name=failure path=/{myFailurePage} /
 
 /action
 - end -
 
 If anybody has any ideas as to what I could try tp figure 
 out why _nothing_
 is happening, I would be very greatful.
 
 Thanks in advance,
 
 m
 
 
 This message was written in plain text mode. 
 Everything below the dotted line was not 
 written by the author of this email. 
 -- 
 
 
 =**
 
 If you are not the intended recipient, employee or agent 
 responsible for delivering the message to the intended 
 recipient, you are hereby notified that any dissemination or 
 copying of this communication and its attachments is strictly 
 prohibited.
 
 If you have received this communication and its attachments 
 in error, please return the original message and attachments 
 to the sender using the reply facility on e-mail.
 
 Internet communications are not secure and therefore the 
 UCLES Group does not accept legal responsibility for the 
 contents of this message.  Any views or opinions presented 
 are solely those of the author and do not necessarily 
 represent those of the UCLES Group unless otherwise 
 specifically stated.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses although 
 this does not guarantee that this email is virus free.
 
 **=
 
 
 
 ***
 
 If you are not the intended recipient, employee or agent 
 responsible for delivering the message to the intended 
 recipient, you are hereby notified that any dissemination or 
 copying of this communication and its attachments is strictly 
 prohibited.
 
 If you have received this communication and its attachments 
 in error, please return the original message and attachments 
 to the sender using the reply facility on e-mail.
 Internet communications are not secure and therefore the 
 UCLES Group does not accept legal responsibility for the 
 contents of this message.  Any views or opinions presented 
 are solely those of the author and do not necessarily 
 represent those of the UCLES Group unless otherwise 
 specifically stated.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses although 
 this does not guarantee that this email is virus free.
 
 ***
 
 
   
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 

RE: include a dynamically created page in my jsp

2002-05-13 Thread Galpin, Charles

Thanks. I figured as much, but thanks for responding. I've officially given
up :)

charles

 -Original Message-
 From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 10, 2002 6:56 PM
 To: Struts Users Mailing List
 Subject: Re: include a dynamically created page in my jsp
 
 Charles -
 
 What you want to do is not possible with JSP.  I tried for quite some
 time to find every conceivable way around it, but it can't be done.  See
 my original posting:
 
 http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg50547.html
 
 and Craig McClanahan's response:
 
 http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg50578.html
 
 Basically, you cannot get access to the body content of a tag (or in
 your case replace a body-less tag) such as through the BodyContent
 object (subclass of JspWriter), alter its content, and then have it
 (re)process that content.  Look to the future.  Maybe JSP spec 1.3 will
 support this.
 
 jeff




Re: VAJ 4 Struts Error 503

2002-05-13 Thread Steven Banks

I have not used VAJ, but this is what the error message but on WAS on os-390 
mainframe, it means that an error has occured in a servlet that has autostart = true.  
 When this kind of error occurs in WAS, it disables the entire application.

In other words, you have a problem with Struts and because it cannot start, WAS will 
not start the entire application.

The problems causing this with my setup was that there were additional xml parsers on 
my classpath that got loaded before my own parsers.

Problem only went away for me when I did the convert to WAR utility on the mainframe 
and then copied the struts-was.jar to the application directory created.





Steven Banks
368-0566

 Struts Newsgroup @Basebeans.com [EMAIL PROTECTED] 05/13/02 02:40AM 
Subject: VAJ 4  Struts  Error 503
From: Marco [EMAIL PROTECTED]
 ===
Hi,

I get the following error when trying the Employeelist example from IBM. I
setup everything like the article said. What else can I try?

THanks,
Marco

THis is the error msg.

Error 503
An error has occured while processing 
request:http://localhost:8080/employeelist/ 
Message: Application is currently unavailable for service

Target Servlet: null
StackTrace: 
---
-- ---
Root Error-1: Application is currently unavailable for service

com.ibm.servlet.engine.webapp.ApplicationUnavailableException: Application
is currently unavailable for service
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 javax.servlet.ServletException(java.lang.String)
 com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)
 com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String)
 com.ibm.servlet.engine.webapp.ApplicationUnavailableException(com.ibm.
 se 
rvlet.engine.webapp.WebApp)
 void 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
co m.ibm.servlet.engine.webapp.WebAppRequest, 
javax.servlet.http.HttpServletResponse, boolean)
 void 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servle
t. ServletRequest, javax.servlet.ServletResponse, boolean)
 void 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet
.S ervletRequest, javax.servlet.ServletResponse)
 void 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obj
ec t)
 void 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.la
ng .Object)
 void  
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.
St ring, com.ibm.servlet.engine.srp.ISRPConnection)
 void 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.se
rv let.engine.oselistener.api.IOSEConnection)
 void 
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection
(j ava.net.Socket)
 void com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
 void java.lang.Thread.run()







-- 
===
Lekkere recepten en een verzameling culinaire adresjes op 
http://www.tastyweb.nl 

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




[ANN] Struts Wizard v1.0.2 for JBuilder

2002-05-13 Thread emmanuel.boudrant


Hi,

I've just released the Struts Wizard v1.0.2 for JBuilder with some fixed bug.

Update in 1.0.2 release:

   Re-add a deleted property fixed.
   Some JBuilder 6 problems (about jbuilder test path) with java code generation 
fixed. 
   String initializer don't need quotes (except null). 

Available at http://www.mycgiserver.com/~eboudrant/#wizard

...and Now I'm working on an Eclipse version. (prehaps a release in 1-2 week...)

Emmanuel.



-
Yahoo! Mail -- Une adresse yahoo.fr gratuite et en français !



Re: Struts example doesn´t work

2002-05-13 Thread daoust . c



Michael,

Don't think this is your problem but wanted to post this for the benefit of
the group.  Some time ago I had asked the group as to how I can get
java.net to recognize our proxy.  Most answered me by saying to make DTDs
local and changing refs to local.   For those who like the easy way here it
is:

set two system properties for your JVM -

http.proxyhost=host_name http.proxyport=port_number


This wil depend on your firewall but if you have web access via a proxy it
should work fine.

hth, Claude


|+--
||  Michael|
||  Delamere   |
||  home@michael-de|
||  lamere.de  |
||  |
||  05/11/02 11:06  |
||  AM  |
||  Please respond  |
||  to Struts Users|
||  Mailing List   |
||  |
|+--
  ---|
  |   |
  |  To: 'Struts Users Mailing List' \(E-mail\) |
  |   [EMAIL PROTECTED]|
  |  cc: (bcc: Claude Daoust/BCBSRI)  |
  |  Subject: Struts example doesn

**
MailSweeper

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.  If you are not the intended recipient, you are hereby
notified that any disclosure, copying, distribution or taking of any 
action in reliance on the information contained in this e-mail is
prohibited.  If you have received this email in error, please 
immediately notify your email administrator.

Blue Cross Blue Shield of Rhode Island 459-1000 x4357 (in state)
1-800-637-3718 x4357 (out of state)
**



´t work |
  ---|







Hi,

I


´m trying to get a struts-example to work that you can find here:

Article:
http://www.onjava.com/pub/a/onjava/2001/10/31/struts2.html

Direct link to the example:
http://www.onjava.com/onjava/2001/10/31/examples/StrutsPartII.jar.

I´ve been trying to figure out for some time why it´s not working.  I think
it has
something to do with the properties file which it cannot find.
Looking at the base class which is provided I can see that it´s looking for
a
file called strutssample.properties which doesn´t exist anywhere.  Is
this
where the problem lies?  If so can anyone give me a small tip of what is
needed to get the example working.

Has anyone actually tried this example and got it working??

Bellow is the error message I get when trying to access the application:

=== ERROR 
javax.servlet.ServletException: Missing message for key login.title
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
p
l.java:463)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:230)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
===

Any help would be greatly appreciated!
Thank you very much,

Michael

p.s.  I´m using JBOSS3.0RC2 with embedded Tomcat.




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


How to get calling URL

2002-05-13 Thread Demers . Johanne

How can I get the URL of the form the user was on when he clicked on a link?

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




Sub-application Example

2002-05-13 Thread Fabrice BLANQUART

Can someone tell me where I can find some application example wich use the new 
sub-applications part of the 1.1b1 version ?

Fabrice BLANQUART




*---*
* Cet e-mail et toutes les pièces jointes sont destinés aux *
* seules personnes auxquelles ils sont spécifiquement adressés  *
* et n'engagent que le signataire de ces documents et non la*
* structure dont il dépend. *
* Leur existence et leur contenu ont un caractère confidentiel. *
* Toute utilisation ou diffusion non autorisée est interdite.   *
* Si vous avez reçu cet  e-mail ou si vous détenez sans en être *
* le destinataire, nous vous demandons de bien vouloir nous en  *
* informer immédiatement.   *
* Cette note assure que mimesweeper a vérifié que ce message*
* ne comprenait aucun virus connu à ce jour, néanmoins tout *
* message électronique est susceptible d'altération.*
* Nous déclinons toute responsabilité au titre de ce message*
* s'il a étéaltéré, déformé ou falsifié.*
*---*
 


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




I need help building tiles from src - please

2002-05-13 Thread jfc100

Hi,

I've been trying to build tiles and am struggling a bit.

I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to find 
that it doesn't automatically build tiles. When I finish building 
struts, I can see a contrib directory which contains a tiles 
subdirectory with the tiles source in it.

When I read the build.xml notes, it says make sure this file is in the 
root of the struts-src directory.

This is going to override the existing struts build.xml - which is 
surely not what we want.

What is the best way to arrange things?

Thanks
Joe


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




RE: How to get calling URL

2002-05-13 Thread James Mitchell


request.getRequestURI();


JM 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: How to get calling URL
 
 
 How can I get the URL of the form the user was on when he clicked 
 on a link?
 
 --
 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: ghost action

2002-05-13 Thread Mike Dewhirst

I've just found the error... It' embarassing :)

we have written a parent action here which most others implement. The
perform method calls an execute method of the child. I was implementing the
execute method, though  extending the standard Struts Action.

Sorry for the false alarm/stupidity! Took me 2 days to spot!! :(

Thanks again!

Mike


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 15:32
 To: Struts Users Mailing List
 Subject: RE: ghost action
 
 
 What version of Struts are you using?
 
 Can you paste a few lines ( perform()/execute() ) from your 
 Action class???
 
 JM 
 
  -Original Message-
  From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 7:12 AM
  To: 'Struts Users Mailing List'
  Cc: '[EMAIL PROTECTED]'
  Subject: RE: ghost action
  
  
  Thanks for the suggestions. Unfortunately they did not help.
  
  just checked. the path for the jsp in the struts-config.xml is 
  correct - if
  I cut and paste - the page does come up (though with erorrs 
 - since it
  expects stuff from the action). It's as if the action is 
 found but not
  processed.
  
  Any more ideas?
  
  Thanks again,
  
  Mike
  
   -Original Message-
   From: Adam Hardy [mailto:[EMAIL PROTECTED]]
   Sent: 13 May 2002 12:05
   To: Struts Users Mailing List
   Subject: Re: ghost action
   
   
   Hi Mike,
   are you sure those pages you've configured in 
 struts-config.xml are 
   correct? Do they have anything in them?
   
   Check in your action.perform whether you are returning a 
   valid Forward 
   as a return parameter. Perhaps you've misspelt one and your 
   mapping.findForward doesn't find anything.
   
   Adam
   
   Mike Dewhirst wrote:
   
   Hello and thanks in advance for reading :)
   
   I have an action, which contains as one of it's first lines 
   a log statement.
   
   When the action is called, all I get is this:
   
   action: Processing a GET for /{myaction}
   action:  Looking for Action instance for class {myclass}
   
   that's it. no page is displayed. there are no exceptions, no 
   error messages.
   nothing. as if the action is empty. 
   
   this is the source of the page:
   
    start 
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
   HTMLHEAD
   META http-equiv=Content-Type content=text/html;
   charset=windows-1252/HEAD
   BODY/BODY/HTML
   - end -
   
   this is my struts config entry for the action:
   
    start 
   !-- Front end show tech contacts action start --
   action path=/{myAction}
 type={myActionClass}
 scope=request
   
 forward name=success path=/{mySuccessPage} /
 forward name=failure path=/{myFailurePage} /
   
   /action
   - end -
   
   If anybody has any ideas as to what I could try tp figure 
   out why _nothing_
   is happening, I would be very greatful.
   
   Thanks in advance,
   
   m
   
   
   This message was written in plain text mode. 
   Everything below the dotted line was not 
   written by the author of this email. 
   -- 
   
   
   =**
   
   If you are not the intended recipient, employee or agent 
   responsible for delivering the message to the intended 
   recipient, you are hereby notified that any dissemination or 
   copying of this communication and its attachments is strictly 
   prohibited.
   
   If you have received this communication and its attachments 
   in error, please return the original message and attachments 
   to the sender using the reply facility on e-mail.
   
   Internet communications are not secure and therefore the 
   UCLES Group does not accept legal responsibility for the 
   contents of this message.  Any views or opinions presented 
   are solely those of the author and do not necessarily 
   represent those of the UCLES Group unless otherwise 
   specifically stated.
   
   This footnote also confirms that this email message has 
 been swept by
   MIMEsweeper for the presence of computer viruses although 
   this does not guarantee that this email is virus free.
   
   **=
   
   
   
   ***
   
   If you are not the intended recipient, employee or agent 
   responsible for delivering the message to the intended 
   recipient, you are hereby notified that any dissemination or 
   copying of this communication and its attachments is strictly 
   prohibited.
   
   If you have received this communication and its attachments 
   in error, please return the original message and attachments 
   to the sender using the reply facility on e-mail.
   Internet communications are not secure and therefore the 
   UCLES Group does not accept legal responsibility for the 
   contents of this message.  Any views or opinions presented 
   are solely those of the author and do not necessarily 
   

Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan


Hi,

I am using onclick event handler on a checkbox tag within a iterate tag,
since there is going to be multiple checkbox tags can someone please
tell me how I can pass the identifier of the checkbox that has fired the
onclick event to the JavaScript function specified in the onclick.

Thanks.

 Doug

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




RE: ghost action

2002-05-13 Thread James Mitchell

What version of Struts are you using?

Can you paste a few lines ( perform()/execute() ) from your Action class???

JM 

 -Original Message-
 From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 7:12 AM
 To: 'Struts Users Mailing List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: ghost action
 
 
 Thanks for the suggestions. Unfortunately they did not help.
 
 just checked. the path for the jsp in the struts-config.xml is 
 correct - if
 I cut and paste - the page does come up (though with erorrs - since it
 expects stuff from the action). It's as if the action is found but not
 processed.
 
 Any more ideas?
 
 Thanks again,
 
 Mike
 
  -Original Message-
  From: Adam Hardy [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 12:05
  To: Struts Users Mailing List
  Subject: Re: ghost action
  
  
  Hi Mike,
  are you sure those pages you've configured in struts-config.xml are 
  correct? Do they have anything in them?
  
  Check in your action.perform whether you are returning a 
  valid Forward 
  as a return parameter. Perhaps you've misspelt one and your 
  mapping.findForward doesn't find anything.
  
  Adam
  
  Mike Dewhirst wrote:
  
  Hello and thanks in advance for reading :)
  
  I have an action, which contains as one of it's first lines 
  a log statement.
  
  When the action is called, all I get is this:
  
  action: Processing a GET for /{myaction}
  action:  Looking for Action instance for class {myclass}
  
  that's it. no page is displayed. there are no exceptions, no 
  error messages.
  nothing. as if the action is empty. 
  
  this is the source of the page:
  
   start 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
  HTMLHEAD
  META http-equiv=Content-Type content=text/html;
  charset=windows-1252/HEAD
  BODY/BODY/HTML
  - end -
  
  this is my struts config entry for the action:
  
   start 
  !-- Front end show tech contacts action start --
  action path=/{myAction}
type={myActionClass}
scope=request
  
forward name=success path=/{mySuccessPage} /
forward name=failure path=/{myFailurePage} /
  
  /action
  - end -
  
  If anybody has any ideas as to what I could try tp figure 
  out why _nothing_
  is happening, I would be very greatful.
  
  Thanks in advance,
  
  m
  
  
  This message was written in plain text mode. 
  Everything below the dotted line was not 
  written by the author of this email. 
  -- 
  
  
  =**
  
  If you are not the intended recipient, employee or agent 
  responsible for delivering the message to the intended 
  recipient, you are hereby notified that any dissemination or 
  copying of this communication and its attachments is strictly 
  prohibited.
  
  If you have received this communication and its attachments 
  in error, please return the original message and attachments 
  to the sender using the reply facility on e-mail.
  
  Internet communications are not secure and therefore the 
  UCLES Group does not accept legal responsibility for the 
  contents of this message.  Any views or opinions presented 
  are solely those of the author and do not necessarily 
  represent those of the UCLES Group unless otherwise 
  specifically stated.
  
  This footnote also confirms that this email message has been swept by
  MIMEsweeper for the presence of computer viruses although 
  this does not guarantee that this email is virus free.
  
  **=
  
  
  
  ***
  
  If you are not the intended recipient, employee or agent 
  responsible for delivering the message to the intended 
  recipient, you are hereby notified that any dissemination or 
  copying of this communication and its attachments is strictly 
  prohibited.
  
  If you have received this communication and its attachments 
  in error, please return the original message and attachments 
  to the sender using the reply facility on e-mail.
  Internet communications are not secure and therefore the 
  UCLES Group does not accept legal responsibility for the 
  contents of this message.  Any views or opinions presented 
  are solely those of the author and do not necessarily 
  represent those of the UCLES Group unless otherwise 
  specifically stated.
  
  This footnote also confirms that this email message has been swept by
  MIMEsweeper for the presence of computer viruses although 
  this does not guarantee that this email is virus free.
  
  ***
  
  

  
  
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 =**
 
 If you are not the intended recipient, employee or agent 
 responsible for delivering the message to the intended 

Questions regarding Nested Tutorial..

2002-05-13 Thread Jeff_Mychasiw



Greetings:
 I have completed the  nested tutorials part one and two (on the
keyboardmonkey site), and actually have no questions about these specifically
because they went as expected and I enjoyed them.
I am new to Struts and would like some clarification on some concepts.  I have
done no work with the Struts indexed tags at this time because it appears that
the NEXT tags will do all of that and more.

I hope I am just missing a simple point.

1 - I think I am clear on how to represent lists of objects and nested objects
on the page with the tags (it is very easy) but I am not clear on how to
re-build the same object structure when the same page is submitted.

2 - When I completed the tutorial, I began to alter it in a way to better
represent a format that we will be using on an upcoming project:
- I added created a LoadAction and a Save Action.
- I set the form bean from session to request.
- I removed the sample object creation in the constructors and manually created
the same structure in the Load Action to simulate it coming from the model
layer.
- I grabbed the name of the actionForm from mapping and set it into request
scope.
- The page in rendered as expected.
- And, as I expected, when I submit to the SaveAction, only top level attributes
are populated, without the nested lists .

So now.. is there an elegant way to rebuild the same structure in the
SaveAction upon submit?

Thanks all.



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




RE: I need help building tiles from src - please

2002-05-13 Thread James Mitchell

Did you try building the webapps?

JM 

 -Original Message-
 From: jfc100 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 11:12 AM
 To: Struts-User
 Subject: I need help building tiles from src - please
 
 
 Hi,
 
 I've been trying to build tiles and am struggling a bit.
 
 I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to find 
 that it doesn't automatically build tiles. When I finish building 
 struts, I can see a contrib directory which contains a tiles 
 subdirectory with the tiles source in it.
 
 When I read the build.xml notes, it says make sure this file is in the 
 root of the struts-src directory.
 
 This is going to override the existing struts build.xml - which is 
 surely not what we want.
 
 What is the best way to arrange things?
 
 Thanks
 Joe
 
 
 --
 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: I need help building tiles from src - please

2002-05-13 Thread Dr. BaTien Duong

Hello Joe:

Use the binary version. Learn from Struts-tiles, excellently put together by
Cedric Dumoulin. Then put appropriate libs and taglibs to your application.

I like to take this opportunity to thank Cedric for his effort and
willingness to help.

BaTien
DBGROUPS
=
- Original Message -
From: jfc100 [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 9:11 AM
Subject: I need help building tiles from src - please


 Hi,

 I've been trying to build tiles and am struggling a bit.

 I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to find
 that it doesn't automatically build tiles. When I finish building
 struts, I can see a contrib directory which contains a tiles
 subdirectory with the tiles source in it.

 When I read the build.xml notes, it says make sure this file is in the
 root of the struts-src directory.

 This is going to override the existing struts build.xml - which is
 surely not what we want.

 What is the best way to arrange things?

 Thanks
 Joe


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




Dynamic control of errors.header and errors.footer

2002-05-13 Thread Mark Nichols

All -

Is there a way to dynamically control the contents of the errors.header and 
errors.footer properties in the ApplicationResources.properties file?

What I would like to be able to do is display both error and informational 
messages on the page via the html:errors/ tag. I like the unordered list 
paradigm for validation error messages. However I would like to display 
informational or status messages without the validation heading, or perhaps 
with an entirely different heading.

If anyone has suggestions or examples and would like to share them I would 
appreciate it.

Thanks
Mark



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RequestUtils.filter and Euro currency symbol

2002-05-13 Thread Kristopher Brown

Hi,
 
I have been trying to ouput a Euro currency symbol in an html:text tag, but the value 
attribute just contained the ? character.  I followed the code through to the 
RequestUtils.filter method where I noticed that only , , , and  are encoded.  I 
modified the code so that it also checks for \u20ac and replaces it with #8364; which 
then worked.
 
Is it a bug that the RequestUtils.filter method does not suitably encode high end 
unicode characters?  Could/should the code be modified to encode any character above a 
given threshold?
 
Has anyone else had any problems like this and what was the outcome?
 
Cheers,
 
Kris.



RE: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

try this...


html:checkbox property=checkBox1
onclick=JavaScript:handleCheckbox(this)/Check 1br
html:checkbox property=checkBox2
onclick=JavaScript:handleCheckbox(this)/Check 2br
html:checkbox property=checkBox3
onclick=JavaScript:handleCheckbox(this)/Check 3br
html:checkbox property=checkBox4
onclick=JavaScript:handleCheckbox(this)/Check 4br

SCRIPT LANGUAGE=javascript
!--
function handleCheckbox(obj){
  alert(obj.name);

}
//--
/SCRIPT

JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Using onclick within iterate tag



 Hi,

 I am using onclick event handler on a checkbox tag within a iterate tag,
 since there is going to be multiple checkbox tags can someone please
 tell me how I can pass the identifier of the checkbox that has fired the
 onclick event to the JavaScript function specified in the onclick.

 Thanks.

  Doug

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




javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE

2002-05-13 Thread Anthony Martin

I'm attempting to use the new Firebird SQL Driver to access my Interbase
database.  I've been using InterClient, which is a Type III driver.
Firebird SQL Driver is Type IV, which is more desirable.

Here's information about the Firebird SQL Driver:
http://www.xlprueba.com.ar/marce/setup_fb_java.htm

I was hoping for a drop-in replacement for InterClient, but no such luck.
Here is my struts-config.xml DataSource node:

data-source key=DataSource.TEST0
set-property property=autoCommit value=false /
set-property property=description value=Demo DataBase /
set-property property=driverClass
value=org.firebirdsql.jdbc.FBDriverr /
set-property property=maxCount value=8 /
set-property property=minCount value=0 /
set-property property=url
value=jdbc:firebirdsql:localhost/3050:c:/progra~1/trams/database/demodata.g
db /
set-property property=user value=SYSDBA /
set-property property=password value=masterkey /
/data-source
data-source key=DataSource.TEST1
set-property property=autoCommit value=false /
set-property property=description value=Demo DataBase /
set-property property=driverClass
value=interbase.interclient.Driver /
set-property property=maxCount value=8 /
set-property property=minCount value=0 /
set-property property=url
value=jdbc:interbase://localhost/c:/progra~1/trams/database/demodata.gdb
/
set-property property=user value=SYSDBA /
set-property property=password value=masterkey /
/data-source

I can use TEST1 just fine.  But the startup phase yields the following stack
trace:

javax.servlet.UnavailableException: Initializing application data source
DataSource.TEST0
at
org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServ
let.java:850)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:419)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
.
.
.

I've already tested the Firebird SQL Driver outside Struts.  They have a
demonstration on their web site, and it does indeed work by itself.  I just
can't embed it here.


Anthony

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




Re: VAJ 4 Struts Error 503

2002-05-13 Thread Raffy_Lata


This is a generic error put out by VAJ (actually WebSphere) when one of
your servlets in your app.webapp fails to load. In this case, it's most
probably the ActionServlet. Check all you classpaths (in the servlet
engine) and make sure you have the xml files in the correct directory. I
can post some instructions on how to install Struts 1.1b in VAJ 4.0 if you
need it.






Struts Newsgroup (@Basebeans.com) struts on 05/12/2002 10:40:01 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  VAJ 4  Struts  Error 503


Subject: VAJ 4  Struts  Error 503
From: Marco [EMAIL PROTECTED]
 ===
Hi,

I get the following error when trying the Employeelist example from IBM. I
setup everything like the article said. What else can I try?

THanks,
Marco

THis is the error msg.

Error 503
An error has occured while processing
request:http://localhost:8080/employeelist/
Message: Application is currently unavailable for service

Target Servlet: null
StackTrace:
---
-- ---
Root Error-1: Application is currently unavailable for service

com.ibm.servlet.engine.webapp.ApplicationUnavailableException: Application
is currently unavailable for service
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 javax.servlet.ServletException(java.lang.String)
 com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)
 com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String)
 com.ibm.servlet.engine.webapp.ApplicationUnavailableException(com.ibm.
 se
rvlet.engine.webapp.WebApp)
 void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
co m.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean)
 void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servle
t. ServletRequest, javax.servlet.ServletResponse, boolean)
 void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet
.S ervletRequest, javax.servlet.ServletResponse)
 void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obj
ec t)
 void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.la
ng .Object)
 void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.
St ring, com.ibm.servlet.engine.srp.ISRPConnection)
 void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.se
rv let.engine.oselistener.api.IOSEConnection)
 void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection
(j ava.net.Socket)
 void com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
 void java.lang.Thread.run()







--
===
Lekkere recepten en een verzameling culinaire adresjes op
http://www.tastyweb.nl

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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**



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




RE: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan

Hi again,

Many thanks James for helping us out, that works great.

Apologies for not asking the question properly first time around. But is
it possible to also pass the position of the checkbox that has been
clicked so that the JavaScript function could be used to control other
checkbox tags within the iterate tag.

Thanks again.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:10
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


try this...


html:checkbox property=checkBox1
onclick=JavaScript:handleCheckbox(this)/Check 1br
html:checkbox property=checkBox2
onclick=JavaScript:handleCheckbox(this)/Check 2br
html:checkbox property=checkBox3
onclick=JavaScript:handleCheckbox(this)/Check 3br
html:checkbox property=checkBox4
onclick=JavaScript:handleCheckbox(this)/Check 4br

SCRIPT LANGUAGE=javascript
!--
function handleCheckbox(obj){
  alert(obj.name);

}
//--
/SCRIPT

JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Using onclick within iterate tag



 Hi,

 I am using onclick event handler on a checkbox tag within a iterate
tag,
 since there is going to be multiple checkbox tags can someone please
 tell me how I can pass the identifier of the checkbox that has fired
the
 onclick event to the JavaScript function specified in the onclick.

 Thanks.

  Doug

 --
 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: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

When you mean position do you mean position within the iterator or
position on the page???

JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 11:47 AM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 Hi again,

 Many thanks James for helping us out, that works great.

 Apologies for not asking the question properly first time around. But is
 it possible to also pass the position of the checkbox that has been
 clicked so that the JavaScript function could be used to control other
 checkbox tags within the iterate tag.

 Thanks again.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:10
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 try this...


 html:checkbox property=checkBox1
 onclick=JavaScript:handleCheckbox(this)/Check 1br
 html:checkbox property=checkBox2
 onclick=JavaScript:handleCheckbox(this)/Check 2br
 html:checkbox property=checkBox3
 onclick=JavaScript:handleCheckbox(this)/Check 3br
 html:checkbox property=checkBox4
 onclick=JavaScript:handleCheckbox(this)/Check 4br

 SCRIPT LANGUAGE=javascript
 !--
 function handleCheckbox(obj){
   alert(obj.name);

 }
 //--
 /SCRIPT

 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 10:31 AM
  To: [EMAIL PROTECTED]
  Subject: Using onclick within iterate tag
 
 
 
  Hi,
 
  I am using onclick event handler on a checkbox tag within a iterate
 tag,
  since there is going to be multiple checkbox tags can someone please
  tell me how I can pass the identifier of the checkbox that has fired
 the
  onclick event to the JavaScript function specified in the onclick.
 
  Thanks.
 
   Doug
 
  --
  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: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan

Sorry,

I meant the position within the iterator. Within the JSP there is two
checkbox tags for each iteration and I need to only enable the second
checkbox if the first has been checked.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:53
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


When you mean position do you mean position within the iterator or
position on the page???

JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 11:47 AM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 Hi again,

 Many thanks James for helping us out, that works great.

 Apologies for not asking the question properly first time around. But
is
 it possible to also pass the position of the checkbox that has been
 clicked so that the JavaScript function could be used to control other
 checkbox tags within the iterate tag.

 Thanks again.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:10
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 try this...


 html:checkbox property=checkBox1
 onclick=JavaScript:handleCheckbox(this)/Check 1br
 html:checkbox property=checkBox2
 onclick=JavaScript:handleCheckbox(this)/Check 2br
 html:checkbox property=checkBox3
 onclick=JavaScript:handleCheckbox(this)/Check 3br
 html:checkbox property=checkBox4
 onclick=JavaScript:handleCheckbox(this)/Check 4br

 SCRIPT LANGUAGE=javascript
 !--
 function handleCheckbox(obj){
   alert(obj.name);

 }
 //--
 /SCRIPT

 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 10:31 AM
  To: [EMAIL PROTECTED]
  Subject: Using onclick within iterate tag
 
 
 
  Hi,
 
  I am using onclick event handler on a checkbox tag within a iterate
 tag,
  since there is going to be multiple checkbox tags can someone please
  tell me how I can pass the identifier of the checkbox that has fired
 the
  onclick event to the JavaScript function specified in the onclick.
 
  Thanks.
 
   Doug
 
  --
  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]




RE: Forms Beans and DAO (Best Practices)

2002-05-13 Thread Trieu, Danny

If you are passing FormBean as VO and pass it to you DAO as param ... This
will add dependency to you DAO layer. meaning your DAO layer now depend
on Struts, and can not be use by other application.

 -Original Message-
 From: Sandeep Takhar [SMTP:[EMAIL PROTECTED]]
 Sent: Saturday, May 11, 2002 2:09 PM
 To:   Struts Users Mailing List
 Subject:  Re: Forms Beans and DAO (Best Practices)
 
 may want to hold stuff that is not Strings, in the
 form and not the dvo, because it may be in an invalid
 format...
 
 sandeep
 --- stuart robertson [EMAIL PROTECTED] wrote:
  Another approach to this is to have the form beans
  simply hold references to the value objects (from
  the
  DAO) directly.  You can use the nested taglibraries
  that are now a part of struts 1.1 to access these
  when
  building html forms.  The slick thing is that when
  the
  servlet populates the form before calling execute(),
  it will actually populate the value objects in the
  form themselves.  It works by default for most data
  types, including Dates.  But you can customize the
  converters used for just about any data type.
  
  Stu
  
  Original message:
  
  I am pre-populating a form with information from a
  data base.
  
  Is the following procedure acceptable, or is there
  another procedure
  that would be considered a Best Practice?
  
  Instantiate the form bean in the action class.
  
  Instantiate one or more DAO objects in the action
  class.
  
  Call methods in the DAO objects that would take the
  form bean as an
  argument and fill up the necessary fields.
  
  I understand the need to keep layers separate;
  however, if I am just
  trying to fill up the fields in a form, it seems
  unnecessary to have
  the DAO objects return data objects and then call a
  series of
  get/set methods to take the data from the data
  objects and put it
  in the form bean.
  
  Thanks.
  
  
  __
  Do You Yahoo!?
  Yahoo! Health - your guide to health and wellness
  http://health.yahoo.com
  
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




RE: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

I guess I need a bit more info to properly answer/stab-at your question.

I assume that you know what the two checkboxes will always be.
-Why not just put the two on your jsp and not iterate over them.

Or for a more generic approach, say you are writing your own custom taglib
like.

myapp:conditionalCheckbox property=MyMapOfChecks

or something like thatand this taglib would write out the html
necessary to make the second box (or more) disabled/enabled based on the 1st
value.



Am I way off here???



JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 11:56 AM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 Sorry,

 I meant the position within the iterator. Within the JSP there is two
 checkbox tags for each iteration and I need to only enable the second
 checkbox if the first has been checked.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:53
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 When you mean position do you mean position within the iterator or
 position on the page???

 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 11:47 AM
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  Hi again,
 
  Many thanks James for helping us out, that works great.
 
  Apologies for not asking the question properly first time around. But
 is
  it possible to also pass the position of the checkbox that has been
  clicked so that the JavaScript function could be used to control other
  checkbox tags within the iterate tag.
 
  Thanks again.
 
  Doug
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 16:10
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  try this...
 
 
  html:checkbox property=checkBox1
  onclick=JavaScript:handleCheckbox(this)/Check 1br
  html:checkbox property=checkBox2
  onclick=JavaScript:handleCheckbox(this)/Check 2br
  html:checkbox property=checkBox3
  onclick=JavaScript:handleCheckbox(this)/Check 3br
  html:checkbox property=checkBox4
  onclick=JavaScript:handleCheckbox(this)/Check 4br
 
  SCRIPT LANGUAGE=javascript
  !--
  function handleCheckbox(obj){
alert(obj.name);
 
  }
  //--
  /SCRIPT
 
  JM
 
   -Original Message-
   From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 13, 2002 10:31 AM
   To: [EMAIL PROTECTED]
   Subject: Using onclick within iterate tag
  
  
  
   Hi,
  
   I am using onclick event handler on a checkbox tag within a iterate
  tag,
   since there is going to be multiple checkbox tags can someone please
   tell me how I can pass the identifier of the checkbox that has fired
  the
   onclick event to the JavaScript function specified in the onclick.
  
   Thanks.
  
Doug
  
   --
   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]



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




Re: Struts example doesn´t work

2002-05-13 Thread Michael Delamere

Thanks,

I solved the  problem slightly differently.  I found a thread which said
that it has something to do with the classloader when deploying it with
jboss.

When I jared up the classes which are normally in the WEB-INF folder and
then placed them into the tomcat/lib folder it worked.

Regards,

Michael


- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 2:45 PM
Subject: Re: Struts example doesn´t work




 Michael,

 Don't think this is your problem but wanted to post this for the benefit
of
 the group.  Some time ago I had asked the group as to how I can get
 java.net to recognize our proxy.  Most answered me by saying to make DTDs
 local and changing refs to local.   For those who like the easy way here
it
 is:

 set two system properties for your JVM -

 http.proxyhost=host_name http.proxyport=port_number


 This wil depend on your firewall but if you have web access via a proxy it
 should work fine.

 hth, Claude


 |+--
 ||  Michael|
 ||  Delamere   |
 ||  home@michael-de|
 ||  lamere.de  |
 ||  |
 ||  05/11/02 11:06  |
 ||  AM  |
 ||  Please respond  |
 ||  to Struts Users|
 ||  Mailing List   |
 ||  |
 |+--

---|
   |
|
   |  To: 'Struts Users Mailing List' \(E-mail\)
|
   |   [EMAIL PROTECTED]
|
   |  cc: (bcc: Claude Daoust/BCBSRI)
|
   |  Subject: Struts example doesn

 **
 MailSweeper

 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed.  If you are not the intended recipient, you are hereby
 notified that any disclosure, copying, distribution or taking of any
 action in reliance on the information contained in this e-mail is
 prohibited.  If you have received this email in error, please
 immediately notify your email administrator.

 Blue Cross Blue Shield of Rhode Island 459-1000 x4357 (in state)
 1-800-637-3718 x4357 (out of state)
 **








´t work |
  ---|












 Hi,

 I







´m trying to get a struts-example to work that you can find here:

Article:
http://www.onjava.com/pub/a/onjava/2001/10/31/struts2.html

Direct link to the example:
http://www.onjava.com/onjava/2001/10/31/examples/StrutsPartII.jar.

I´ve been trying to figure out for some time why it´s not working.  I think
it has
something to do with the properties file which it cannot find.
Looking at the base class which is provided I can see that it´s looking for
a
file called strutssample.properties which doesn´t exist anywhere.  Is
this
where the problem lies?  If so can anyone give me a small tip of what is
needed to get the example working.

Has anyone actually tried this example and got it working??

Bellow is the error message I get when trying to access the application:

=== ERROR 
javax.servlet.ServletException: Missing message for key login.title
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
p
l.java:463)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:230)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
===

Any help would be greatly appreciated!
Thank you very much,

Michael

p.s.  I´m using JBOSS3.0RC2 with embedded Tomcat.




--
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: NewBi Quenstion

2002-05-13 Thread @Basebeans.com

Subject: Re: NewBi Quenstion
From: Landung Wahana [EMAIL PROTECTED]
 ===
Struts provides simple Connection Pool to database that you can define at
struts-config.xml. (read at http://jakarta.apache.org/struts) But, it is
recommended to find better connection pool.
Then, you can use autocommit from JDBC to start transaction.

hope this will help.
Landung Wahana.

Sudhir [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi,

 I am newbi to Struts.  where should I define my database to make
transations using struts.

 Thanks and Best Regards,

 -Original Message-
 From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 5:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: logic:iterate with EJB's, casting problem?


 Hi Nicolas,

 Looks like there may be several issues here. The type should be the fully
 qualified class name (you have Artists, should be package.Arist?) Also if
 Artist is itself an EJB you should consider changing your stateless
session
 bean to return a collection of ArtistValueObjects; your presentation tier
 should not (generally) be dealing with EJBs directly. On a similar note
you
 might consider hiding your stateless session bean behind a
BusinessDelegate.

 Jon Ridgway.


 -Original Message-
 From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 06:40
 To: [EMAIL PROTECTED]
 Subject: logic:iterate with EJB's, casting problem?

 Subject: logic:iterate with EJB's, casting problem?
 From: Nicolas Parise [EMAIL PROTECTED]
  ===
 Hi!

 I have a problems, for displaying a collection of object retrieved
 from a EJB (1.1).


 In my action class, I retrieve a collection of Artists objects from
 a Session EJB:


 Collection coll = myRemoteSessionBeanInterface.getArtists();
 request.setAttribute(coll,coll);

 then in my JSP, I use de iterate tag to loop over my collection :


 logic:iterate id=element name=coll type=Artists
 bean:write name=element property=name/br
 /logic:iterate


 Here is the error that I have :

 javax.servlet.ServletException: com.inprise.vbroker.rmi.CORBA.ObjectImpl


 I was only be able to display my collection that way :

 Iterator it = coll.iterator();

 while (it.hasNext()) {
 out.println(((Artist)PortableRemoteObject.narrow(it.next(),
 Artist.class)).getName());
 }


 I want to use the Struts logic:iterate tag, not the while loop, any ideas?




 Nicolas Parise



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

 The contents of this email are intended only for the named addressees and
 may contain confidential and/or privileged material. If received in error
 please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
 e-mail from your system. Unauthorised review, distribution, disclosure or
 other use of this information could constitute a breach of confidence.
Your
 co-operation in this matter is greatly appreciated.

 --
 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: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan


What I am using the JSP to do is display the list of my personal
contacts.

So I am using the iterate tag to retrieve the list of personal contact
objects from my Form bean. Within the iterate tag I display the name
etc. The two checkbox tags on each row of the table are used to set one
or more of the returned contacts to a supervisor and if so enable the
other checkbox to lock the contact's account.

So I need the checkbox tags to be within the iterate tag.

Thanks again James for taken time out to answer my question, its much
appreciated.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:07
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


I guess I need a bit more info to properly answer/stab-at your question.

I assume that you know what the two checkboxes will always be.
-Why not just put the two on your jsp and not iterate over them.

Or for a more generic approach, say you are writing your own custom
taglib
like.

myapp:conditionalCheckbox property=MyMapOfChecks

or something like thatand this taglib would write out the html
necessary to make the second box (or more) disabled/enabled based on the
1st
value.



Am I way off here???



JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 11:56 AM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 Sorry,

 I meant the position within the iterator. Within the JSP there is two
 checkbox tags for each iteration and I need to only enable the second
 checkbox if the first has been checked.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:53
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 When you mean position do you mean position within the iterator or
 position on the page???

 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 11:47 AM
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  Hi again,
 
  Many thanks James for helping us out, that works great.
 
  Apologies for not asking the question properly first time around.
But
 is
  it possible to also pass the position of the checkbox that has been
  clicked so that the JavaScript function could be used to control
other
  checkbox tags within the iterate tag.
 
  Thanks again.
 
  Doug
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 16:10
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  try this...
 
 
  html:checkbox property=checkBox1
  onclick=JavaScript:handleCheckbox(this)/Check 1br
  html:checkbox property=checkBox2
  onclick=JavaScript:handleCheckbox(this)/Check 2br
  html:checkbox property=checkBox3
  onclick=JavaScript:handleCheckbox(this)/Check 3br
  html:checkbox property=checkBox4
  onclick=JavaScript:handleCheckbox(this)/Check 4br
 
  SCRIPT LANGUAGE=javascript
  !--
  function handleCheckbox(obj){
alert(obj.name);
 
  }
  //--
  /SCRIPT
 
  JM
 
   -Original Message-
   From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 13, 2002 10:31 AM
   To: [EMAIL PROTECTED]
   Subject: Using onclick within iterate tag
  
  
  
   Hi,
  
   I am using onclick event handler on a checkbox tag within a
iterate
  tag,
   since there is going to be multiple checkbox tags can someone
please
   tell me how I can pass the identifier of the checkbox that has
fired
  the
   onclick event to the JavaScript function specified in the onclick.
  
   Thanks.
  
Doug
  
   --
   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]



--
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: RequestUtils.filter and Euro currency symbol

2002-05-13 Thread Adam Hardy

Isn't the problem more likely to lie with the browser and the source 
code viewer you are using?


Kristopher Brown wrote:

Hi,
 
I have been trying to ouput a Euro currency symbol in an html:text tag, but the value 
attribute just contained the ? character.  I followed the code through to the 
RequestUtils.filter method where I noticed that only , , , and  are encoded.  I 
modified the code so that it also checks for \u20ac and replaces it with #8364; 
which then worked.
 
Is it a bug that the RequestUtils.filter method does not suitably encode high end 
unicode characters?  Could/should the code be modified to encode any character above 
a given threshold?
 
Has anyone else had any problems like this and what was the outcome?
 
Cheers,
 
Kris.

  




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




Re: Using onclick within iterate tag

2002-05-13 Thread Adam Hardy

I think Doug means he has 2 chkboxes per iteration.


James Mitchell wrote:

I guess I need a bit more info to properly answer/stab-at your question.

I assume that you know what the two checkboxes will always be.
-Why not just put the two on your jsp and not iterate over them.

Or for a more generic approach, say you are writing your own custom taglib
like.

myapp:conditionalCheckbox property=MyMapOfChecks

or something like thatand this taglib would write out the html
necessary to make the second box (or more) disabled/enabled based on the 1st
value.



Am I way off here???



JM

  

-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:56 AM
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Sorry,

I meant the position within the iterator. Within the JSP there is two
checkbox tags for each iteration and I need to only enable the second
checkbox if the first has been checked.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:53
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


When you mean position do you mean position within the iterator or
position on the page???

JM



-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:47 AM
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Hi again,

Many thanks James for helping us out, that works great.

Apologies for not asking the question properly first time around. But
  

is


it possible to also pass the position of the checkbox that has been
clicked so that the JavaScript function could be used to control other
checkbox tags within the iterate tag.

Thanks again.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:10
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


try this...


html:checkbox property=checkBox1
onclick=JavaScript:handleCheckbox(this)/Check 1br
html:checkbox property=checkBox2
onclick=JavaScript:handleCheckbox(this)/Check 2br
html:checkbox property=checkBox3
onclick=JavaScript:handleCheckbox(this)/Check 3br
html:checkbox property=checkBox4
onclick=JavaScript:handleCheckbox(this)/Check 4br

SCRIPT LANGUAGE=javascript
!--
function handleCheckbox(obj){
  alert(obj.name);

}
//--
/SCRIPT

JM

  

-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: Using onclick within iterate tag



Hi,

I am using onclick event handler on a checkbox tag within a iterate


tag,
  

since there is going to be multiple checkbox tags can someone please
tell me how I can pass the identifier of the checkbox that has fired


the
  

onclick event to the JavaScript function specified in the onclick.

Thanks.

 Doug

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



--
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: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

Ok, so you want to disable the second box (by default) and then if the user
selects the first box, then allow the second to be selected.  And this is
all done over and over again in a list of contacts.




JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 12:31 PM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag



 What I am using the JSP to do is display the list of my personal
 contacts.

 So I am using the iterate tag to retrieve the list of personal contact
 objects from my Form bean. Within the iterate tag I display the name
 etc. The two checkbox tags on each row of the table are used to set one
 or more of the returned contacts to a supervisor and if so enable the
 other checkbox to lock the contact's account.

 So I need the checkbox tags to be within the iterate tag.

 Thanks again James for taken time out to answer my question, its much
 appreciated.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 17:07
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 I guess I need a bit more info to properly answer/stab-at your question.

 I assume that you know what the two checkboxes will always be.
 -Why not just put the two on your jsp and not iterate over them.

 Or for a more generic approach, say you are writing your own custom
 taglib
 like.

 myapp:conditionalCheckbox property=MyMapOfChecks

 or something like thatand this taglib would write out the html
 necessary to make the second box (or more) disabled/enabled based on the
 1st
 value.



 Am I way off here???



 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 11:56 AM
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  Sorry,
 
  I meant the position within the iterator. Within the JSP there is two
  checkbox tags for each iteration and I need to only enable the second
  checkbox if the first has been checked.
 
  Doug
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 16:53
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  When you mean position do you mean position within the iterator or
  position on the page???
 
  JM
 
   -Original Message-
   From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 13, 2002 11:47 AM
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   Hi again,
  
   Many thanks James for helping us out, that works great.
  
   Apologies for not asking the question properly first time around.
 But
  is
   it possible to also pass the position of the checkbox that has been
   clicked so that the JavaScript function could be used to control
 other
   checkbox tags within the iterate tag.
  
   Thanks again.
  
   Doug
  
   -Original Message-
   From: James Mitchell [mailto:[EMAIL PROTECTED]]
   Sent: 13 May 2002 16:10
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   try this...
  
  
   html:checkbox property=checkBox1
   onclick=JavaScript:handleCheckbox(this)/Check 1br
   html:checkbox property=checkBox2
   onclick=JavaScript:handleCheckbox(this)/Check 2br
   html:checkbox property=checkBox3
   onclick=JavaScript:handleCheckbox(this)/Check 3br
   html:checkbox property=checkBox4
   onclick=JavaScript:handleCheckbox(this)/Check 4br
  
   SCRIPT LANGUAGE=javascript
   !--
   function handleCheckbox(obj){
 alert(obj.name);
  
   }
   //--
   /SCRIPT
  
   JM
  
-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: Using onclick within iterate tag
   
   
   
Hi,
   
I am using onclick event handler on a checkbox tag within a
 iterate
   tag,
since there is going to be multiple checkbox tags can someone
 please
tell me how I can pass the identifier of the checkbox that has
 fired
   the
onclick event to the JavaScript function specified in the onclick.
   
Thanks.
   
 Doug
   
--
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]



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

RE: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan

Hi Adam,

You are right, I do have 2 checkbox tags per iteration.

Sorry for the confusion.

Doug

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:35
To: Struts Users Mailing List
Subject: Re: Using onclick within iterate tag


I think Doug means he has 2 chkboxes per iteration.


James Mitchell wrote:

I guess I need a bit more info to properly answer/stab-at your
question.

I assume that you know what the two checkboxes will always be.
-Why not just put the two on your jsp and not iterate over them.

Or for a more generic approach, say you are writing your own custom
taglib
like.

myapp:conditionalCheckbox property=MyMapOfChecks

or something like thatand this taglib would write out the html
necessary to make the second box (or more) disabled/enabled based on
the 1st
value.



Am I way off here???



JM

  

-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:56 AM
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Sorry,

I meant the position within the iterator. Within the JSP there is two
checkbox tags for each iteration and I need to only enable the second
checkbox if the first has been checked.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:53
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


When you mean position do you mean position within the iterator or
position on the page???

JM



-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:47 AM
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Hi again,

Many thanks James for helping us out, that works great.

Apologies for not asking the question properly first time around. But
  

is


it possible to also pass the position of the checkbox that has been
clicked so that the JavaScript function could be used to control
other
checkbox tags within the iterate tag.

Thanks again.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:10
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


try this...


html:checkbox property=checkBox1
onclick=JavaScript:handleCheckbox(this)/Check 1br
html:checkbox property=checkBox2
onclick=JavaScript:handleCheckbox(this)/Check 2br
html:checkbox property=checkBox3
onclick=JavaScript:handleCheckbox(this)/Check 3br
html:checkbox property=checkBox4
onclick=JavaScript:handleCheckbox(this)/Check 4br

SCRIPT LANGUAGE=javascript
!--
function handleCheckbox(obj){
  alert(obj.name);

}
//--
/SCRIPT

JM

  

-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: Using onclick within iterate tag



Hi,

I am using onclick event handler on a checkbox tag within a iterate


tag,
  

since there is going to be multiple checkbox tags can someone please
tell me how I can pass the identifier of the checkbox that has fired


the
  

onclick event to the JavaScript function specified in the onclick.

Thanks.

 Doug

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



--
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: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan


You have hit the nail on the head.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:42
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Ok, so you want to disable the second box (by default) and then if the
user
selects the first box, then allow the second to be selected.  And this
is
all done over and over again in a list of contacts.




JM

 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 12:31 PM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag



 What I am using the JSP to do is display the list of my personal
 contacts.

 So I am using the iterate tag to retrieve the list of personal contact
 objects from my Form bean. Within the iterate tag I display the name
 etc. The two checkbox tags on each row of the table are used to set
one
 or more of the returned contacts to a supervisor and if so enable the
 other checkbox to lock the contact's account.

 So I need the checkbox tags to be within the iterate tag.

 Thanks again James for taken time out to answer my question, its much
 appreciated.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 17:07
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 I guess I need a bit more info to properly answer/stab-at your
question.

 I assume that you know what the two checkboxes will always be.
 -Why not just put the two on your jsp and not iterate over them.

 Or for a more generic approach, say you are writing your own custom
 taglib
 like.

 myapp:conditionalCheckbox property=MyMapOfChecks

 or something like thatand this taglib would write out the html
 necessary to make the second box (or more) disabled/enabled based on
the
 1st
 value.



 Am I way off here???



 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 11:56 AM
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  Sorry,
 
  I meant the position within the iterator. Within the JSP there is
two
  checkbox tags for each iteration and I need to only enable the
second
  checkbox if the first has been checked.
 
  Doug
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 16:53
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  When you mean position do you mean position within the iterator
or
  position on the page???
 
  JM
 
   -Original Message-
   From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 13, 2002 11:47 AM
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   Hi again,
  
   Many thanks James for helping us out, that works great.
  
   Apologies for not asking the question properly first time around.
 But
  is
   it possible to also pass the position of the checkbox that has
been
   clicked so that the JavaScript function could be used to control
 other
   checkbox tags within the iterate tag.
  
   Thanks again.
  
   Doug
  
   -Original Message-
   From: James Mitchell [mailto:[EMAIL PROTECTED]]
   Sent: 13 May 2002 16:10
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   try this...
  
  
   html:checkbox property=checkBox1
   onclick=JavaScript:handleCheckbox(this)/Check 1br
   html:checkbox property=checkBox2
   onclick=JavaScript:handleCheckbox(this)/Check 2br
   html:checkbox property=checkBox3
   onclick=JavaScript:handleCheckbox(this)/Check 3br
   html:checkbox property=checkBox4
   onclick=JavaScript:handleCheckbox(this)/Check 4br
  
   SCRIPT LANGUAGE=javascript
   !--
   function handleCheckbox(obj){
 alert(obj.name);
  
   }
   //--
   /SCRIPT
  
   JM
  
-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: Using onclick within iterate tag
   
   
   
Hi,
   
I am using onclick event handler on a checkbox tag within a
 iterate
   tag,
since there is going to be multiple checkbox tags can someone
 please
tell me how I can pass the identifier of the checkbox that has
 fired
   the
onclick event to the JavaScript function specified in the
onclick.
   
Thanks.
   
 Doug
   
--
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: Configuration is frozen -what does it mean?

2002-05-13 Thread Craig R. McClanahan



On 13 May 2002 [EMAIL PROTECTED] wrote:

 Date: 13 May 2002 10:59:21 -
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Configuration is frozen -what does it mean?

 Hi!
 I often get an error messaget that says that the configuration is frozen. (See
 the error message below). I don't understand why I get this error and
 restarting the server does not help. I really need some help with this problem,
 thanks.


The configuration is frozen error occurs when you are attempting to
modify one of the data structures loaded from struts-config.xml at startup
time.  Judging from your stack trace, it looks like you're trying to
modify the redirect property on an existing ActionForward instance.
This is undesireable, because it would affect *all* future uses of that
particular forward.

The workaround is to make a copy of the ActionForward you looked up, and
modify it's properties any way you'd like -- something like:

  ActionForward oldForward = mapping.findForward(foo);
  ActionForward newForward = new ActionForward();
  newForward.setName(oldForward.getName());
  newForward.setPath(oldForward.getPath());
  newForward.setRedirect(true);

 // Ulrika


Craig


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




RE: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

Ok, then you will probably be needing to use indexed properties.

I am trying to gather a bit of working code for you.

I should be finished shortly.

In the meantime, take a look at using indexed properties.  Also, are you
using the DynaActionForm???

JM




 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 12:43 PM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag



 You have hit the nail on the head.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 17:42
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 Ok, so you want to disable the second box (by default) and then if the
 user
 selects the first box, then allow the second to be selected.  And this
 is
 all done over and over again in a list of contacts.

 


 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 12:31 PM
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
 
  What I am using the JSP to do is display the list of my personal
  contacts.
 
  So I am using the iterate tag to retrieve the list of personal contact
  objects from my Form bean. Within the iterate tag I display the name
  etc. The two checkbox tags on each row of the table are used to set
 one
  or more of the returned contacts to a supervisor and if so enable the
  other checkbox to lock the contact's account.
 
  So I need the checkbox tags to be within the iterate tag.
 
  Thanks again James for taken time out to answer my question, its much
  appreciated.
 
  Doug
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 17:07
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  I guess I need a bit more info to properly answer/stab-at your
 question.
 
  I assume that you know what the two checkboxes will always be.
  -Why not just put the two on your jsp and not iterate over them.
 
  Or for a more generic approach, say you are writing your own custom
  taglib
  like.
 
  myapp:conditionalCheckbox property=MyMapOfChecks
 
  or something like thatand this taglib would write out the html
  necessary to make the second box (or more) disabled/enabled based on
 the
  1st
  value.
 
 
 
  Am I way off here???
 
 
 
  JM
 
   -Original Message-
   From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 13, 2002 11:56 AM
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   Sorry,
  
   I meant the position within the iterator. Within the JSP there is
 two
   checkbox tags for each iteration and I need to only enable the
 second
   checkbox if the first has been checked.
  
   Doug
  
   -Original Message-
   From: James Mitchell [mailto:[EMAIL PROTECTED]]
   Sent: 13 May 2002 16:53
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   When you mean position do you mean position within the iterator
 or
   position on the page???
  
   JM
  
-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:47 AM
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag
   
   
Hi again,
   
Many thanks James for helping us out, that works great.
   
Apologies for not asking the question properly first time around.
  But
   is
it possible to also pass the position of the checkbox that has
 been
clicked so that the JavaScript function could be used to control
  other
checkbox tags within the iterate tag.
   
Thanks again.
   
Doug
   
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:10
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag
   
   
try this...
   
   
html:checkbox property=checkBox1
onclick=JavaScript:handleCheckbox(this)/Check 1br
html:checkbox property=checkBox2
onclick=JavaScript:handleCheckbox(this)/Check 2br
html:checkbox property=checkBox3
onclick=JavaScript:handleCheckbox(this)/Check 3br
html:checkbox property=checkBox4
onclick=JavaScript:handleCheckbox(this)/Check 4br
   
SCRIPT LANGUAGE=javascript
!--
function handleCheckbox(obj){
  alert(obj.name);
   
}
//--
/SCRIPT
   
JM
   
 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Using onclick within iterate tag



 Hi,

 I am using onclick event handler on a checkbox tag within a
  iterate
tag,
 since there is going to be multiple checkbox tags can someone
  please
 tell me how I can pass the identifier of the checkbox that has
  fired
the
 

RE: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan

Hi again,

The form I am using extends the basic ActionForm class.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:49
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Ok, then you will probably be needing to use indexed properties.

I am trying to gather a bit of working code for you.

I should be finished shortly.

In the meantime, take a look at using indexed properties.  Also, are you
using the DynaActionForm???

JM




 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 12:43 PM
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag



 You have hit the nail on the head.

 Doug

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 17:42
 To: Struts Users Mailing List
 Subject: RE: Using onclick within iterate tag


 Ok, so you want to disable the second box (by default) and then if the
 user
 selects the first box, then allow the second to be selected.  And this
 is
 all done over and over again in a list of contacts.

 


 JM

  -Original Message-
  From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 12:31 PM
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
 
  What I am using the JSP to do is display the list of my personal
  contacts.
 
  So I am using the iterate tag to retrieve the list of personal
contact
  objects from my Form bean. Within the iterate tag I display the name
  etc. The two checkbox tags on each row of the table are used to set
 one
  or more of the returned contacts to a supervisor and if so enable
the
  other checkbox to lock the contact's account.
 
  So I need the checkbox tags to be within the iterate tag.
 
  Thanks again James for taken time out to answer my question, its
much
  appreciated.
 
  Doug
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 17:07
  To: Struts Users Mailing List
  Subject: RE: Using onclick within iterate tag
 
 
  I guess I need a bit more info to properly answer/stab-at your
 question.
 
  I assume that you know what the two checkboxes will always be.
  -Why not just put the two on your jsp and not iterate over them.
 
  Or for a more generic approach, say you are writing your own custom
  taglib
  like.
 
  myapp:conditionalCheckbox property=MyMapOfChecks
 
  or something like thatand this taglib would write out the
html
  necessary to make the second box (or more) disabled/enabled based on
 the
  1st
  value.
 
 
 
  Am I way off here???
 
 
 
  JM
 
   -Original Message-
   From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 13, 2002 11:56 AM
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   Sorry,
  
   I meant the position within the iterator. Within the JSP there is
 two
   checkbox tags for each iteration and I need to only enable the
 second
   checkbox if the first has been checked.
  
   Doug
  
   -Original Message-
   From: James Mitchell [mailto:[EMAIL PROTECTED]]
   Sent: 13 May 2002 16:53
   To: Struts Users Mailing List
   Subject: RE: Using onclick within iterate tag
  
  
   When you mean position do you mean position within the
iterator
 or
   position on the page???
  
   JM
  
-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:47 AM
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag
   
   
Hi again,
   
Many thanks James for helping us out, that works great.
   
Apologies for not asking the question properly first time
around.
  But
   is
it possible to also pass the position of the checkbox that has
 been
clicked so that the JavaScript function could be used to control
  other
checkbox tags within the iterate tag.
   
Thanks again.
   
Doug
   
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 16:10
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag
   
   
try this...
   
   
html:checkbox property=checkBox1
onclick=JavaScript:handleCheckbox(this)/Check 1br
html:checkbox property=checkBox2
onclick=JavaScript:handleCheckbox(this)/Check 2br
html:checkbox property=checkBox3
onclick=JavaScript:handleCheckbox(this)/Check 3br
html:checkbox property=checkBox4
onclick=JavaScript:handleCheckbox(this)/Check 4br
   
SCRIPT LANGUAGE=javascript
!--
function handleCheckbox(obj){
  alert(obj.name);
   
}
//--
/SCRIPT
   
JM
   
 -Original Message-
 From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Using onclick within iterate tag



 Hi,

 I am 

Re: I need help building tiles from src - please

2002-05-13 Thread jfc100

James Mitchell wrote:

Did you try building the webapps?

JM 

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:12 AM
To: Struts-User
Subject: I need help building tiles from src - please


Hi,

I've been trying to build tiles and am struggling a bit.

I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to find 
that it doesn't automatically build tiles. When I finish building 
struts, I can see a contrib directory which contains a tiles 
subdirectory with the tiles source in it.

When I read the build.xml notes, it says make sure this file is in the 
root of the struts-src directory.

This is going to override the existing struts build.xml - which is 
surely not what we want.

What is the best way to arrange things?

Thanks
Joe


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


Well, no I didn't. I simply ran 'ant' in the jakart-struts-src-dir.

I noticed something in the struts build.xml file:

snip ...
This script will delegate some of it's tasks to the other build*.xml
scripts (build-webapps.xml, build-tests.xml, ...)
 ... snip

I sounds like this path is not so well trodden i.e. building tiles from 
src.

The reason I'm trying to build Tiles myself from the src is due to an 
anomaly somewhere between jboss and tomcat when it comes to  determining 
a user's login status. (see 
http://main.jboss.org/forums/thread.jsp?forum=49thread=13002 )

I'm trying to create something like this in the Tiles 
template-definition selection code:

public boolean myPsuedoCheckRoleWrapper(HttpServletRequest request, 
String tilesDefnRoleAttribute){

if(tilesDefnRoleAttribute.equalsIgnoreCase(anonymous){
// return true if the user is not logged-in.
// i.e. Jaas login doesn't update the request with 
authentication info - like tomcat does as part of form-based auth -
// so do my own checking - whatever it takes.
// Doing a login is desireable otherwise tiles needs two forward 
tiles-definitions in struts.config 1=anonymous 2=custom(role-based) 
//   - and tiles-defn-conf.xml needs a lot more setup -  not 
very elegent!
return true;
}

boolean tilesResult = request.isUserInRole(role)?true:false;
return tilesResult;
}

Any suggestions and advice are most welcome!
Cheers
Joe


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




Developing Web Applications Using the Remote Application Server API's

2002-05-13 Thread Metla, Suri


Hi all,
We are planning to develop the Web application using the
Oracle OC4J and some of the business logic is in the Web Logic App Server
running in the remote box. I have to call these Ejb's to perform the
business operations. I need help in Developing the Business Model to call
these remote API's.

Are there any best practices to call the remote API's? I am not Sure is
Structs with Log4J will fit the best Over all frame work. I need to capture
the performance of the remote API's response; for this is bc4J can log the
details. Any Help.

Thanks
Suri

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




Using struts with WLS6.2?

2002-05-13 Thread asd asd

The only install docs I could find online at
jakarta.apache.org were for WLS 5.1. I'm assuming it
will work with weblogic 6.2  Has anyone successfully
done it yet though? Thanks

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: Using struts with WLS6.2?

2002-05-13 Thread Galbreath, Mark

Yes, but we found the documentation for WL to be vague and incomplete.  You
have to do it pretty much by trial-and-error.

Mark

-Original Message-
From: asd asd [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: Using struts with WLS6.2?


The only install docs I could find online at
jakarta.apache.org were for WLS 5.1. I'm assuming it
will work with weblogic 6.2  Has anyone successfully
done it yet though? Thanks

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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

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




RE: Using struts with WLS6.2?

2002-05-13 Thread Arik Levin ( Tikal )

No problema!!!

-Original Message-
From: asd asd [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 8:05 PM
To: [EMAIL PROTECTED]
Subject: Using struts with WLS6.2?

The only install docs I could find online at
jakarta.apache.org were for WLS 5.1. I'm assuming it
will work with weblogic 6.2  Has anyone successfully
done it yet though? Thanks

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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



Using Struts 1.0.2 with JBoss 3.0 RC2 / Tomcat 4.0.3

2002-05-13 Thread M?ris Orbid?ns


I tried to move my EAR app from JBoss 2.4.4 to JBoss 3.0 RC2 / Tomcat 4.0.2.

But for some reason Struts cannot find action classes anymore.
ClassNotFoundException

could someone help ?
Maris Orbidans


20:32:24,620 INFO  [Engine] action:   Creating new Action instance
20:32:24,699 ERROR [Engine] action: Error creating Action instance for path '/Ma
inmenu', class name 'lv.datapro.lad.pri.actions.MainmenuAction'
java.lang.ClassNotFoundException: lv.datapro.lad.pri.actions.MainmenuAction
java.lang.Class org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(j
ava.lang.String, boolean, java.lang.ClassLoader)
java.lang.Class org.jboss.mx.loading.UnifiedClassLoader.loadClass(java.l
ang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.lang.Class java.lang.ClassLoader.loadClassInternal(java.lang.String
)
java.lang.Class java.lang.Class.forName0(java.lang.String, boolean, java
.lang.ClassLoader)
java.lang.Class java.lang.Class.forName(java.lang.String)
org.apache.struts.action.Action org.apache.struts.action.ActionServlet.p
rocessActionCreate(org.apache.struts.action.ActionMapping, javax.servlet.http.Ht
tpServletRequest)
void org.apache.struts.action.ActionServlet.process(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.Htt

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




Re: Using Struts 1.0.2 with JBoss 3.0 RC2 / Tomcat 4.0.3

2002-05-13 Thread Kevin . Bedell




Not an ace with JBoss, but can relate based on similar weblogic experience.

It looks from your stacktrace that it is looking for the class file using
what it calls the UnifiedClassLoader.

I know in Weblogic, each ear file spawns two seperate class loaders - one
for the ejb container and one for the sevlet container for any web apps.
They each have different classpaths.

I run into problems like this whenever I have class files in a place that's
visible to some of the class loaders, but not the one that needs it.

I'd review changes in class loading and in the class loader strategy for
the new release of JBoss you've just moved to.

Another issue may be the requirement to specify the names of jar files
containing non-bean classes the Manifest.mf file in the META-INF directory
of your ear/jar files. For more info, see the section on Download
Extensions at:

 http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html

FWIW -
Kevin









M?ris Orbid?ns [EMAIL PROTECTED] on 05/13/2002 01:35:24 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Using Struts 1.0.2 with JBoss 3.0 RC2 / Tomcat 4.0.3



I tried to move my EAR app from JBoss 2.4.4 to JBoss 3.0 RC2 / Tomcat
4.0.2.

But for some reason Struts cannot find action classes anymore.
ClassNotFoundException

could someone help ?
Maris Orbidans


20:32:24,620 INFO  [Engine] action:   Creating new Action instance
20:32:24,699 ERROR [Engine] action: Error creating Action instance for path
'/Ma
inmenu', class name 'lv.datapro.lad.pri.actions.MainmenuAction'
java.lang.ClassNotFoundException: lv.datapro.lad.pri.actions.MainmenuAction
java.lang.Class
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(j
ava.lang.String, boolean, java.lang.ClassLoader)
java.lang.Class
org.jboss.mx.loading.UnifiedClassLoader.loadClass(java.l
ang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.lang.Class
java.lang.ClassLoader.loadClassInternal(java.lang.String
)
java.lang.Class java.lang.Class.forName0(java.lang.String, boolean,
java
.lang.ClassLoader)
java.lang.Class java.lang.Class.forName(java.lang.String)
org.apache.struts.action.Action
org.apache.struts.action.ActionServlet.p
rocessActionCreate(org.apache.struts.action.ActionMapping,
javax.servlet.http.Ht
tpServletRequest)
void
org.apache.struts.action.ActionServlet.process(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.Htt

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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Struts guys,
A help and review required urgently.I am using struts1.0.2 and I
have to show the errors(validations ,ActionErrors) in the form of javascript
alerts. I found  that struts 1.0.2 does not support javascript. I handled
this by writing the alerts in the applicationresources.properties and that
way I was within the framework and did not have to do much of extensive
coding. Is this approach correct or is there some other better way?
TIA
Regards,
Taati


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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Look into the validation framework!!!

http://home.earthlink.net/~dwinterfeldt/index.html

Good luck

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

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: javascript and struts1.0.2


Struts guys,
A help and review required urgently.I am using struts1.0.2 and I
have to show the errors(validations ,ActionErrors) in the form of javascript
alerts. I found  that struts 1.0.2 does not support javascript. I handled
this by writing the alerts in the applicationresources.properties and that
way I was within the framework and did not have to do much of extensive
coding. Is this approach correct or is there some other better way?
TIA
Regards,
Taati


--
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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati
 -Original Message-
 From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:11 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2
 
 Look into the validation framework!!!
 
 http://home.earthlink.net/~dwinterfeldt/index.html
 
 Good luck
 
 **
 Juan Alvarado
 Internet Developer -- Manduca Management
 (786)552-0504
 [EMAIL PROTECTED]
 AOL Instant Messenger: [EMAIL PROTECTED]
 
 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:13 PM
 To: [EMAIL PROTECTED]
 Subject: javascript and struts1.0.2
 
 
 Struts guys,
   A help and review required urgently.I am using struts1.0.2 and I
 have to show the errors(validations ,ActionErrors) in the form of
 javascript
 alerts. I found  that struts 1.0.2 does not support javascript. I handled
 this by writing the alerts in the applicationresources.properties and that
 way I was within the framework and did not have to do much of extensive
 coding. Is this approach correct or is there some other better way?
 TIA
 Regards,
 Taati
 
 
 --

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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

You can use the validator with struts 1.02. It just needs to be configured
differently.  Take a look at the documentation on the web site.

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

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati
 -Original Message-
 From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:11 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2

 Look into the validation framework!!!

 http://home.earthlink.net/~dwinterfeldt/index.html

 Good luck

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

 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:13 PM
 To: [EMAIL PROTECTED]
 Subject: javascript and struts1.0.2


 Struts guys,
   A help and review required urgently.I am using struts1.0.2 and I
 have to show the errors(validations ,ActionErrors) in the form of
 javascript
 alerts. I found  that struts 1.0.2 does not support javascript. I handled
 this by writing the alerts in the applicationresources.properties and that
 way I was within the framework and did not have to do much of extensive
 coding. Is this approach correct or is there some other better way?
 TIA
 Regards,
 Taati


 --

--
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: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to upgrade
from 1.0.2 it's better to do it now than wait.  Further, we have found 1.1b
to be remarkably stable.

Mark

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati

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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Mark forgive me, but did you say struts 1.02 is also in beta Does that
mean that struts 1.1 is in alpha version then???

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

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: javascript and struts1.0.2


1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to upgrade
from 1.0.2 it's better to do it now than wait.  Further, we have found 1.1b
to be remarkably stable.

Mark

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati

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




Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Hi,

I´ve got a session bean which returns an Object[] array of entity beans.  In
my action file I get the array via a jndiContext.lookup.  That´s all no
problem and I can retreive my data out of the entity beans.

However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

request.setAttribute(entryList, entryList);

and then outputing the data with:

nested:iterate property=entryList
  tr
tdnested:text property=entry_subject //td
tdnested:text property=entry_text //td
tdnested:text property=entry_date //td
  /tr
/nested:iterate

Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Raffy_Lata


In a non-nested context, you would do the following for a collection of
objects associated with the request object

logic:iterate name=entryList
   id=entry
   scope=request
   type=com.xxx.xxx.xxx.Entry
  tr
tdhtml:text property=entry_subject //td
tdhtml:text property=entry_text //td
tdhtml:text property=entry_date //td
  /tr
/logic:iterate





Michael Delamere [EMAIL PROTECTED] on 05/13/2002 01:00:42 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   'Struts Users Mailing List' \(E-mail\)
  [EMAIL PROTECTED]
cc:
Subject:  Getting a list from a session bean and displaying the data in a
  jsp


Hi,

I´ve got a session bean which returns an Object[] array of entity beans.
In
my action file I get the array via a jndiContext.lookup.  That´s all no
problem and I can retreive my data out of the entity beans.

However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

request.setAttribute(entryList, entryList);

and then outputing the data with:

nested:iterate property=entryList
  tr
tdnested:text property=entry_subject //td
tdnested:text property=entry_text //td
tdnested:text property=entry_date //td
  /tr
/nested:iterate

Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**



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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Mannem:

Either I didn't read your previous emails more carefully or you didn't
mention it was from the business layer that you needed to display java
script. In any case, without knowing all the details of your application
it's really hard for me to understand what it is you need to accomplish. Can
you send me a more detailed email explaining the steps required to generate
your java script.

Typically the standard way of handling business logic errors in struts is to
store them using ActionErrors. From the example that ships with struts I
copied this piece of code from LogonForm.java:

ActionErrors errors = new ActionErrors();
if ((username == null) || (username.length()  1))
errors.add(username, new
ActionError(error.username.required));


I'm not sure if you'd be breaking any standards, but I see no reason to
store the actual javascript that displays the error in one of your keys in
your resource bundle. I would imagine you'd want to display an alert box.
However, since you are already inside the business layer, the more common
approach is to just store the error message in the key to then display in
your page.

HOpe this helps!!!


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

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: javascript and struts1.0.2


Juan,
Pardon me for mailing to u but Juan, if I get an error from the business
layer and I have to show javascript alert how will I use the validator tag
to display the error.
Any examples with the code will be really helpful.

Regards,
Taati
 -Original Message-
 From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:22 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2

 You can use the validator with struts 1.02. It just needs to be configured
 differently.  Take a look at the documentation on the web site.

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

 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:21 PM
 To: Struts Users Mailing List
 Subject: RE: javascript and struts1.0.2


 Thanks a lot
 But common validator is a part of struts1.1b right?It is stillin the beta
 version.How can I use that when it is nto stable yet?

 Regards,
 Taati
  -Original Message-
  From:   Juan Alvarado \(Struts List\)
 [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, May 13, 2002 3:11 PM
  To: Struts Users Mailing List
  Subject:RE: javascript and struts1.0.2
 
  Look into the validation framework!!!
 
  http://home.earthlink.net/~dwinterfeldt/index.html
 
  Good luck
 
  **
  Juan Alvarado
  Internet Developer -- Manduca Management
  (786)552-0504
  [EMAIL PROTECTED]
  AOL Instant Messenger: [EMAIL PROTECTED]
 
  -Original Message-
  From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:13 PM
  To: [EMAIL PROTECTED]
  Subject: javascript and struts1.0.2
 
 
  Struts guys,
  A help and review required urgently.I am using struts1.0.2 and I
  have to show the errors(validations ,ActionErrors) in the form of
  javascript
  alerts. I found  that struts 1.0.2 does not support javascript. I
 handled
  this by writing the alerts in the applicationresources.properties and
 that
  way I was within the framework and did not have to do much of extensive
  coding. Is this approach correct or is there some other better way?
  TIA
  Regards,
  Taati
 
 
  --

 --
 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: bean:write returning null

2002-05-13 Thread Mannem, Taati

Yes Thinh I think thats the way to go

Regards,
Taati
 -Original Message-
 From: Thinh Doan [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, May 10, 2002 4:44 PM
 To:   Struts Users Mailing List
 Subject:  RE: bean:write returning null
 
 Can you use logic:present ?
 
 Thinh
 
 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 10, 2002 3:30 PM
 To: Struts (E-mail)
 Subject: bean:write returning null
 
 
 How are you guys testing for this in JSP?
  
 Mark
 De recta non tolerandum sunt.
 
 
 --
 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: approache to populate combo-box on the fly

2002-05-13 Thread Mannem, Taati

Emerson,
I know of a way but I do not think this is the only way. When u come
to this window get the data of  the two listboxes into a javascript array
and on change of the one list box u can populate the other list box but
remember  this is good only when u have limite dno of data as having too
much on the client is again not a good idea/design.

Regards,
Taati
 -Original Message-
 From: Emerson Cargnin - MSA [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, May 10, 2002 5:45 PM
 To:   'Struts Users Mailing List'
 Subject:  approache to populate combo-box on the fly
 
 Hi all
 
 We are using the following approache to populate a combo-box depending on
 the value of a changed combo-box :
 
 We have a iframe on the page, and on the onChange event of some combo-box,
 it loads an struts LoadSelectAction (generic for all cases like this) that
 populates other combo depending of some parameters.
 
 Is it a good practice? have anyone used other way to populate a combo
 without sending the entire page to server and flicking  the page?
 
 Emerson
 
 
 

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




Re: Forwarding requests to other actions?

2002-05-13 Thread Mark Nichols

If I am understanding your question you might want to look at the 
DispatchAction.
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/actions/DispatchAction.html

HTH,
Mark


From: Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Forwarding requests to other actions?
Date: Fri, 10 May 2002 05:10:01 -0700

Subject: Forwarding requests to other actions?
From: Maurice Mills [EMAIL PROTECTED]
  ===
Can I forward a request that is sent to one Action to another Action for
processing?

I have a form with 4 different actions that can be done on it.  I would
like to keep the processing of these actions in separate Action
classes.  The way I see it is there are two options:

1) Use javascript to conditionally set a property depending on the
button clicked.
2) Tie the submit buttons to a single property and use this in the
Action class.

I can then use this property to determine the processing in the Action
class.  These actions, though, can be used on several different
screens.  I would like to implement a DeleteAction, SaveAction,
ForwardAction, etc. and forward to the appropriate one based on the
action property from above.

Can this be done and if so, how?




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



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: javascript and struts1.0.2

2002-05-13 Thread Joseph Barefoot

If it works, I'd say it's 'correct' enough. :)

I'm not sure how you're doing this, but why not just write a custom tag or
do a logic:present to check for an ActionErrors object to see if there are
errors.  If the tag evaluates to true, output your Javascript onload()
function, using bean:message tags to get the actual error message text(s)
and insert them into the window.alert().  This way you only store the error
message itself in the resource file, while the Javascript stays in your JSP
page.  I've used Struts tags to modify the output of Javascript similarly,
and it works fine.

Is this how you're currently doing it, and if not, is there a problem with
doing it this way?


peace,
Joe Barefoot


 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 12:13 PM
 To: [EMAIL PROTECTED]
 Subject: javascript and struts1.0.2


 Struts guys,
   A help and review required urgently.I am using struts1.0.2 and I
 have to show the errors(validations ,ActionErrors) in the form of
 javascript
 alerts. I found  that struts 1.0.2 does not support javascript. I handled
 this by writing the alerts in the applicationresources.properties and that
 way I was within the framework and did not have to do much of extensive
 coding. Is this approach correct or is there some other better way?
 TIA
 Regards,
 Taati


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




Multiple sites using one struts application.

2002-05-13 Thread Mike Karl

Hello,
I'm building a site for a group of clubs.  All the sites will have the
same set of pages and actions.

For instance:

http://clubsites/club1/index.jsp
http://clubsites/club2/index.jsp
http://clubsites/club3/index.jsp
http://anothersite/club4/index.jsp

All of these sites would basically be the same in terms of layout and
functionality except that the would have different images.  They may
also connect to seperate database. How can I set up a site like this so
that I can use the same pages for all of the clubs but pass different
configurations so that I can render the pages with their own images.

thanks
mike



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




RE: Multiple sites using one struts application.

2002-05-13 Thread James Mitchell


One suggestion..

Register a domain name, then setup to use virtual host.

http://club1.mydomain.com/
http://club2.mydomain.com/
http://club3.mydomain.com/
http://club4.mydomain.com/
http://club5.mydomain.com/
http://club6.mydomain.com/

Use same code base, but put all image references in a property file and
extend the img tag to write from the bundle, based on some kind of
ResourceManager (similar to how the i18n checks the headers for language)

I hope this gives you some ideas, if not then just press DELETE.;)

JM




 -Original Message-
 From: Mike Karl [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: Multiple sites using one struts application.


 Hello,
 I'm building a site for a group of clubs.  All the sites will have the
 same set of pages and actions.

 For instance:

 http://clubsites/club1/index.jsp
 http://clubsites/club2/index.jsp
 http://clubsites/club3/index.jsp
 http://anothersite/club4/index.jsp

 All of these sites would basically be the same in terms of layout and
 functionality except that the would have different images.  They may
 also connect to seperate database. How can I set up a site like this so
 that I can use the same pages for all of the clubs but pass different
 configurations so that I can render the pages with their own images.

 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: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Galbreath, Mark

Declare a form bean with session scope associated with your action class and
forwarded to the JSP in struts-config.  Use your action class to set the
bean's properties and then access the lists with iterate and individual
properties with bean:write.

Mark

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:01 PM
To: 'Struts Users Mailing List' (E-mail)
Subject: Getting a list from a session bean and displaying the data in a
jsp


Hi,

I´ve got a session bean which returns an Object[] array of entity beans.  In
my action file I get the array via a jndiContext.lookup.  That´s all no
problem and I can retreive my data out of the entity beans.

However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

request.setAttribute(entryList, entryList);

and then outputing the data with:

nested:iterate property=entryList
  tr
tdnested:text property=entry_subject //td
tdnested:text property=entry_text //td
tdnested:text property=entry_date //td
  /tr
/nested:iterate

Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


--
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: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

1.0.2 was the beta precursor of 1.1b.  Both are beta, just different
versions.  An alpha version is a precursor to a beta version and is usually
defined by the scope of the release (who gets to use it).

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:43 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Mark forgive me, but did you say struts 1.02 is also in beta Does that
mean that struts 1.1 is in alpha version then???

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

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: javascript and struts1.0.2


1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to upgrade
from 1.0.2 it's better to do it now than wait.  Further, we have found 1.1b
to be remarkably stable.

Mark

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati

--
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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Juan,

I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
beta version.Atleats thats what the docs tell me

Regards,
Taati
 -Original Message-
 From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:43 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2
 
 Mark forgive me, but did you say struts 1.02 is also in beta Does that
 mean that struts 1.1 is in alpha version then???
 
 **
 Juan Alvarado
 Internet Developer -- Manduca Management
 (786)552-0504
 [EMAIL PROTECTED]
 AOL Instant Messenger: [EMAIL PROTECTED]
 
 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:39 PM
 To: 'Struts Users Mailing List'
 Subject: RE: javascript and struts1.0.2
 
 
 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
 upgrade
 from 1.0.2 it's better to do it now than wait.  Further, we have found
 1.1b
 to be remarkably stable.
 
 Mark
 
 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:21 PM
 
 Thanks a lot
 But common validator is a part of struts1.1b right?It is stillin the beta
 version.How can I use that when it is nto stable yet?
 
 Regards,
 Taati
 
 --
 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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Mark,
This mail was sent before you sent us the update.So please neglect
this mail

Regards,
Taati
 -Original Message-
 
 
 From: Mannem, Taati [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:51 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2
 
 Juan,
 
 I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
 beta version.Atleats thats what the docs tell me
 
 Regards,
 Taati
  -Original Message-
  From:   Juan Alvarado \(Struts List\)
 [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, May 13, 2002 3:43 PM
  To: Struts Users Mailing List
  Subject:RE: javascript and struts1.0.2
  
  Mark forgive me, but did you say struts 1.02 is also in beta Does
 that
  mean that struts 1.1 is in alpha version then???
  
  **
  Juan Alvarado
  Internet Developer -- Manduca Management
  (786)552-0504
  [EMAIL PROTECTED]
  AOL Instant Messenger: [EMAIL PROTECTED]
  
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:39 PM
  To: 'Struts Users Mailing List'
  Subject: RE: javascript and struts1.0.2
  
  
  1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
  upgrade
  from 1.0.2 it's better to do it now than wait.  Further, we have found
  1.1b
  to be remarkably stable.
  
  Mark
  
  -Original Message-
  From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:21 PM
  
  Thanks a lot
  But common validator is a part of struts1.1b right?It is stillin the
 beta
  version.How can I use that when it is nto stable yet?
  
  Regards,
  Taati
  
  --
  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]




html:options with a Map collection

2002-05-13 Thread Sriram Nookala

I've been trying to find documentation on how to use a Map collection in
html:options with the Map key as the label name and the Map value as the
label property.
thanks,
sriram


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




Re: Using onclick within iterate tag

2002-05-13 Thread Adam Hardy

Hi James,

what does the DynaActionForm do?



James Mitchell wrote:

Ok, then you will probably be needing to use indexed properties.

I am trying to gather a bit of working code for you.

I should be finished shortly.

In the meantime, take a look at using indexed properties.  Also, are you
using the DynaActionForm???

JM
  




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




RE: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

The DynaActionForm class (Struts 1.1b only I think) allows you to configure
an ActionForm in the struts-config.xml, but you don't have to write any code
to use it. (It is part of Struts)


There is a pretty good example of how to use it in the struts-example.war

Although I can't seem to find any decent examples of using it with indexed
properties.

The one I thought I had is buried in an old project, of which is unavailable
right now :-(



JM

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 5:20 PM
 To: Struts Users Mailing List
 Subject: Re: Using onclick within iterate tag


 Hi James,

 what does the DynaActionForm do?



 James Mitchell wrote:

 Ok, then you will probably be needing to use indexed properties.
 
 I am trying to gather a bit of working code for you.
 
 I should be finished shortly.
 
 In the meantime, take a look at using indexed properties.  Also, are you
 using the DynaActionForm???
 
 JM
 
 



 --
 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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Joseph, 
I am talking to Juan also and I think he is also suggesting the same
way.The first problem I faced was I was using struts 1.0.2 and I didnt know
how to do javascript handling part.So I used  that way to incorporate
javascript alerts into my page and they sure seem to work fine.DO you have
anyspecific example of which will give me the functionality you were talking
abt .
Thanks in advance.

Regards,
Taati
 -Original Message-
 From: Joseph Barefoot [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 4:52 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2
 
 If it works, I'd say it's 'correct' enough. :)
 
 I'm not sure how you're doing this, but why not just write a custom tag or
 do a logic:present to check for an ActionErrors object to see if there
 are
 errors.  If the tag evaluates to true, output your Javascript onload()
 function, using bean:message tags to get the actual error message
 text(s)
 and insert them into the window.alert().  This way you only store the
 error
 message itself in the resource file, while the Javascript stays in your
 JSP
 page.  I've used Struts tags to modify the output of Javascript similarly,
 and it works fine.
 
 Is this how you're currently doing it, and if not, is there a problem with
 doing it this way?
 
 
 peace,
 Joe Barefoot
 
 
  -Original Message-
  From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 12:13 PM
  To: [EMAIL PROTECTED]
  Subject: javascript and struts1.0.2
 
 
  Struts guys,
  A help and review required urgently.I am using struts1.0.2 and I
  have to show the errors(validations ,ActionErrors) in the form of
  javascript
  alerts. I found  that struts 1.0.2 does not support javascript. I
 handled
  this by writing the alerts in the applicationresources.properties and
 that
  way I was within the framework and did not have to do much of extensive
  coding. Is this approach correct or is there some other better way?
  TIA
  Regards,
  Taati
 
 
  --
  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]




Sample struts applications in ATG Dymamo 5.6

2002-05-13 Thread Mueller, Ed

I apologize if this is a FAQ, but after searching the mail archive I could
not find a satisfactory answer.  How do you get the sample struts
applications
(e.g., struts-example.war) installed and working in the ATG Dynamo 5.6
environment?
There has to be an easier way than trying to turn the 'war' into a 'dar'
(Dynamo
ARchive).

Thank you for your time.

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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Mark G. you wanna give this guy a hand?

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

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:51 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Juan,

I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
beta version.Atleats thats what the docs tell me

Regards,
Taati
 -Original Message-
 From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:43 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2

 Mark forgive me, but did you say struts 1.02 is also in beta Does that
 mean that struts 1.1 is in alpha version then???

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

 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:39 PM
 To: 'Struts Users Mailing List'
 Subject: RE: javascript and struts1.0.2


 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
 upgrade
 from 1.0.2 it's better to do it now than wait.  Further, we have found
 1.1b
 to be remarkably stable.

 Mark

 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:21 PM

 Thanks a lot
 But common validator is a part of struts1.1b right?It is stillin the beta
 version.How can I use that when it is nto stable yet?

 Regards,
 Taati

 --
 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: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

It's a matter of symantecs.  An alpha release is differentiated from a
beta release only by the scope of distribution and, sometimes, the level
of support.  This is very basic stuff.

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:51 PM

Juan,

I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
beta version.Atleats thats what the docs tell me

Regards,
Taati
 -Original Message-
 From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:43 PM
 To:   Struts Users Mailing List
 Subject:  RE: javascript and struts1.0.2
 
 Mark forgive me, but did you say struts 1.02 is also in beta Does that
 mean that struts 1.1 is in alpha version then???
 
 **
 Juan Alvarado
 Internet Developer -- Manduca Management
 (786)552-0504
 [EMAIL PROTECTED]
 AOL Instant Messenger: [EMAIL PROTECTED]
 
 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:39 PM
 To: 'Struts Users Mailing List'
 Subject: RE: javascript and struts1.0.2
 
 
 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
 upgrade
 from 1.0.2 it's better to do it now than wait.  Further, we have found
 1.1b
 to be remarkably stable.
 
 Mark
 
 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:21 PM
 
 Thanks a lot
 But common validator is a part of struts1.1b right?It is stillin the beta
 version.How can I use that when it is nto stable yet?
 
 Regards,
 Taati
 
 --
 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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Thanks a lot!

Regards,
Taati
 -Original Message-
 From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 5:39 PM
 To:   'Struts Users Mailing List'
 Subject:  RE: javascript and struts1.0.2
 
 It's a matter of symantecs.  An alpha release is differentiated from a
 beta release only by the scope of distribution and, sometimes, the level
 of support.  This is very basic stuff.
 
 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:51 PM
 
 Juan,
 
 I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
 beta version.Atleats thats what the docs tell me
 
 Regards,
 Taati
  -Original Message-
  From:   Juan Alvarado \(Struts List\)
 [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, May 13, 2002 3:43 PM
  To: Struts Users Mailing List
  Subject:RE: javascript and struts1.0.2
  
  Mark forgive me, but did you say struts 1.02 is also in beta Does
 that
  mean that struts 1.1 is in alpha version then???
  
  **
  Juan Alvarado
  Internet Developer -- Manduca Management
  (786)552-0504
  [EMAIL PROTECTED]
  AOL Instant Messenger: [EMAIL PROTECTED]
  
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:39 PM
  To: 'Struts Users Mailing List'
  Subject: RE: javascript and struts1.0.2
  
  
  1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
  upgrade
  from 1.0.2 it's better to do it now than wait.  Further, we have found
  1.1b
  to be remarkably stable.
  
  Mark
  
  -Original Message-
  From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:21 PM
  
  Thanks a lot
  But common validator is a part of struts1.1b right?It is stillin the
 beta
  version.How can I use that when it is nto stable yet?
  
  Regards,
  Taati
  
  --
  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]




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Hi,

thanks for the response.

I´ve done exactly as you said and I get the following error message:

=== ERROR 
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
 at org.apache.jsp.Welcome$jsp._jspService(Welcome$jsp.java:186)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[...]
=

Here´s the call to my session bean:

== CALL TO SESSION BEAN ==
 // Get a naming context
 InitialContext jndiContext = new InitialContext();

 // Get a reference to a EntryBean
 Object ref  = jndiContext.lookup(ejb/guestbook/gbEntries);

 // Get a reference from this to the Bean's Home interface
 gbEntriesHome home = (gbEntriesHome)
PortableRemoteObject.narrow (ref, gbEntriesHome.class);

ArrayList entryList = new ArrayList();

gbEntries entriesObj = home.create();
Object[] entries = entriesObj.getEntriesList();
for (int i = 0; i  entries.length; i++)
{
 gbEntry entry = (gbEntry) entries[i];
  entryList.add(entry);

  // I get the results printed in my output screen so this works.
  System.out.println (entry.getEntry_subject() + \t +
entry.getEntry_text() + \t +
 entry.getEntry_date() + \t + entry.getEntry_views());
}

request.setAttribute(entryList, entryList);


Here´s the change in my JSP file:
===  JSP FILE 
%@ page language=java %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-form.tld prefix=form %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/nested-tags.tld prefix=nested %

logic:iterate name=entryList
   id=gbEntry
   scope=request
   type=com.morelogs.guestbook.interfaces.gbEntry
  tr
tdhtml:text property=entry_subject //td
tdhtml:text property=entry_text //td
tdhtml:text property=entry_date //td
  /tr
/logic:iterate
===
Could you please have a look over this to see if I have missed something.
I would really appreciate further help on this.

Regards,

Michael



- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 10:12 PM
Subject: Re: Getting a list from a session bean and displaying the data in a
jsp



 In a non-nested context, you would do the following for a collection of
 objects associated with the request object

 logic:iterate name=entryList
id=entry
scope=request
type=com.xxx.xxx.xxx.Entry
   tr
 tdhtml:text property=entry_subject //td
 tdhtml:text property=entry_text //td
 tdhtml:text property=entry_date //td
   /tr
 /logic:iterate





 Michael Delamere [EMAIL PROTECTED] on 05/13/2002 01:00:42 PM

 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

 To:   'Struts Users Mailing List' \(E-mail\)
   [EMAIL PROTECTED]
 cc:
 Subject:  Getting a list from a session bean and displaying the data in a
   jsp


 Hi,

 I´ve got a session bean which returns an Object[] array of entity beans.
 In
 my action file I get the array via a jndiContext.lookup.  That´s all no
 problem and I can retreive my data out of the entity beans.

 However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

 request.setAttribute(entryList, entryList);

 and then outputing the data with:

 nested:iterate property=entryList
   tr
 tdnested:text property=entry_subject //td
 tdnested:text property=entry_text //td
 tdnested:text property=entry_date //td
   /tr
 /nested:iterate

 Could someone give me an 

RE: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

Be glad to, though his problem appears to be tied to 1.0.2.  My advice was
to upgrade to 1.1b because he's going to have to eventually, anyway.  Why
learn a work-around when the latest release will solve his problem?  That
would be regressive and not worth his time.

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:32 PM

Mark G. you wanna give this guy a hand?

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




RE: javascript and struts1.0.2

2002-05-13 Thread Joseph Barefoot

I usually interpret 'beta' to mean the developers want to hear your
complaints, and 'alpha' to mean that you should just keep your gripes to
yourself until/unless the beta is released.   :)


 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 2:39 PM
 To: 'Struts Users Mailing List'
 Subject: RE: javascript and struts1.0.2


 It's a matter of symantecs.  An alpha release is differentiated from a
 beta release only by the scope of distribution and, sometimes, the level
 of support.  This is very basic stuff.

 -Original Message-
 From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 3:51 PM

 Juan,

 I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
 beta version.Atleats thats what the docs tell me

 Regards,
 Taati
  -Original Message-
  From:   Juan Alvarado \(Struts List\)
 [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, May 13, 2002 3:43 PM
  To: Struts Users Mailing List
  Subject:RE: javascript and struts1.0.2
 
  Mark forgive me, but did you say struts 1.02 is also in
 beta Does that
  mean that struts 1.1 is in alpha version then???
 
  **
  Juan Alvarado
  Internet Developer -- Manduca Management
  (786)552-0504
  [EMAIL PROTECTED]
  AOL Instant Messenger: [EMAIL PROTECTED]
 
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:39 PM
  To: 'Struts Users Mailing List'
  Subject: RE: javascript and struts1.0.2
 
 
  1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
  upgrade
  from 1.0.2 it's better to do it now than wait.  Further, we have found
  1.1b
  to be remarkably stable.
 
  Mark
 
  -Original Message-
  From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 3:21 PM
 
  Thanks a lot
  But common validator is a part of struts1.1b right?It is
 stillin the beta
  version.How can I use that when it is nto stable yet?
 
  Regards,
  Taati
 
  --
  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]




RE: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Mark and Juan,
I sure am moving to 1.1 after this discussion.

Regards,
Taati
 -Original Message-
 From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 5:41 PM
 To:   'Struts Users Mailing List'
 Subject:  RE: javascript and struts1.0.2
 
 Be glad to, though his problem appears to be tied to 1.0.2.  My advice was
 to upgrade to 1.1b because he's going to have to eventually, anyway.  Why
 learn a work-around when the latest release will solve his problem?  That
 would be regressive and not worth his time.
 
 -Original Message-
 From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 5:32 PM
 
 Mark G. you wanna give this guy a hand?
 
 --
 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: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Thanks,

I will try it.

regards Michael


- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 11:02 PM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


 Declare a form bean with session scope associated with your action class
and
 forwarded to the JSP in struts-config.  Use your action class to set the
 bean's properties and then access the lists with iterate and individual
 properties with bean:write.

 Mark

 -Original Message-
 From: Michael Delamere [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 4:01 PM
 To: 'Struts Users Mailing List' (E-mail)
 Subject: Getting a list from a session bean and displaying the data in a
 jsp


 Hi,

 I´ve got a session bean which returns an Object[] array of entity beans.
In
 my action file I get the array via a jndiContext.lookup.  That´s all no
 problem and I can retreive my data out of the entity beans.

 However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

 request.setAttribute(entryList, entryList);

 and then outputing the data with:

 nested:iterate property=entryList
   tr
 tdnested:text property=entry_subject //td
 tdnested:text property=entry_text //td
 tdnested:text property=entry_date //td
   /tr
 /nested:iterate

 Could someone give me an insight of how this is done.
 I would be most grateful.

 Thanks,

 Michael


 --
 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: Multiple sites using one struts application.

2002-05-13 Thread Kevin . Bedell





I believe this is a build/deploy question as much as a Struts question. But
here goes:

1. Drive virtually everything from your application.properties file. All
these properties are available to your Action classes. For example, define
the path to your images directory there, the club name, the jdbc url, etc.)

2. Create each site as it's own web app - but keep everything in a SINGLE
SOURCE CONTROL REPOSITORY version. You will create specific sites ONLY AT
BUILD TIME. Again - only one version exists in source control. Call this
The Template.

 This is critical. No site-specific code or properties get checked in
with The Template. Everything is driven from the application.properties
file.

3. Define the values in this application.properties file using tokens,
not actual values. For example:

 in The Template application.properties for Struts:

 club.name=CLUB_NAME
 path.to.images=IMAGE_PATH
 site.jdbc.url=JDBC_URL

 - etc. -

4. Then, for each actual site, create a seperate properties file
containing the specific values for that site. For example:

 in club1.properties

 club.name=Fred's Club
 path.to.images=/fredimages/images
 site.jdbc.url=jdbc:oracle:thin:@123.45.67.89:1521:orcl

 - etc. -

5. At build time, use Ant's replace target to replace the tokens in
the struts application.properties file with the site-specific values from
the site-specific properties files. That is:


  replace
  file=path/to/struts/application.properties
  propertyFile=path/to/specific/club.properties 
replacefilter
  token=CLUB_NAME
  property=club.name/
replacefilter
  token=IMAGE_PATH
  property=path.to.images/
replacefilter
  token=JDBC_URL
  property=site.jdbc.url/
  /replace


 See details on the Ant replace tag at: 
http://jakarta.apache.org/ant/manual/CoreTasks/replace.html

6. Create a different ant target to build each site. And maybe a build-all to build 
all the sites.

 There's a bit of work here getting things organized. But this will allow you to 
generate sites from The Template as a build/configuration process
 - not as a development issue.

Summary:

1.   Drive EVERYTHING site specific from the application.properties file
2.   Use tokens in the application.properties file instead of actual values
3.   Create the actual sites at build/deploy time using Ant and the replace target.

This will work!


FWIW -
Kevin





Mike Karl [EMAIL PROTECTED] on 05/13/2002 04:51:36 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Multiple sites using one struts application.


Hello,
I'm building a site for a group of clubs.  All the sites will have the
same set of pages and actions.

For instance:

http://clubsites/club1/index.jsp
http://clubsites/club2/index.jsp
http://clubsites/club3/index.jsp
http://anothersite/club4/index.jsp

All of these sites would basically be the same in terms of layout and
functionality except that the would have different images.  They may
also connect to seperate database. How can I set up a site like this so
that I can use the same pages for all of the clubs but pass different
configurations so that I can render the pages with their own images.

thanks
mike



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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




RE: javascript and struts1.0.2

2002-05-13 Thread Craig R. McClanahan



On Mon, 13 May 2002, Galbreath, Mark wrote:

 Date: Mon, 13 May 2002 17:09:38 -0400
 From: Galbreath, Mark [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: javascript and struts1.0.2

 1.0.2 was the beta precursor of 1.1b.  Both are beta, just different
 versions.  An alpha version is a precursor to a beta version and is usually
 defined by the scope of the release (who gets to use it).


Struts/1.0.2 is indeed a final release -- it has bug fixes over what was
shipped in 1.0 and 1.0.1.  It's perfectly reasonable to create a beta
release of an x.y.z version number, but that was not done in this case.
This is the standard production release of Struts at the moment.

Struts/1.1-b1 is indeed a beta release -- no more features will be added
(which is one of the things that can still happen with alpha releases)
above what is already documented.  The code base for 1.1 branched off from
the code base for 1.0.x last January, and it is *substantially* different
internally (especially in the controller portion, less so in the tag
libraries), so the set of bugs it suffers is likely to be different from
1.0.x as well.

Craig


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




  1   2   >