Re: Error working with MessageFormat as per Ted's tips...(Ted...?)

2003-06-28 Thread Prashanth.S
hi mick,
Try giving message=true or messages=true
and check out.
Cheers
Prashanth

Mick Knutson [EMAIL PROTECTED] wrote:
I can't get this to work in my JSP:
(java.util.Date)registrationForm.getCreationDate() % key=form.reg.creationDate

I keep getting this error:

[ServletException in:/WEB-INF/default/body/registration.view.jsp] Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 209 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397:
 
Undefined variable or class name: registrationForm 
_jspx_th_bean_message_33.setArg0( (String)registrationForm.getCreationDate() 
); ^ 1 error, 1 warning ' org.apache.jasper.JasperException: Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 209 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397:
 
Undefined variable or class name: registrationForm 
_jspx_th_bean_message_33.setArg0( (String)registrationForm.getCreationDate() 
); ^ 1 error, 1 warning at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121) at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) 
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) 
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) 
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) 
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at 
org.apache.jsp.default$jsp._jspService(default$jsp.java:381) 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.java:201) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129) at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
 
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
 
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
 
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) 
at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40)
 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
 
at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
 
at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:48) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
 
at 

Re: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-28 Thread Arron Bates
You're talking of one of the greatest books of all time...

Red Dwarf.

Lister bought the cat to annoy Rimmer. Cat dies eventually of old age in the
cargo hold before starting the race of cats which brought on the Cat
character we all know and really dig.

If you say it's not, you're lying or you haven't read the book.
If not, do so. too funny.  :P

The Cat is mentioned on the dust jacket, but his mum, who dies, isn't. I
think you're lying to the user group and should come clean.  :)


Arron.



 I'm pleased to report that a unanimous majority of the Struts Committers 
 have voted to release Struts 1.1 on or after Sunday June 29, 2003.
 
 =:) !!!
 
 But, sadly, my elderly cat has died of liver failure.
 
 =:(
 
 Unsurprisingly, this news is a thinly veiled segue to ...
 
 [Yet Another Quote Trivia Contest]
 
 Which of our favorite Science Fiction authors wrote a novel in which a 
 key character was a cat that, sadly, died?
 
 A signed Struts in Action goes to the first lucky subscriber to email 
 the corrected title and author to me directly at [EMAIL PROTECTED]
 
 -Ted.
 
 -- 
 Ted Husted,
 Struts in Action http://husted.com/struts/book.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





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



Using html:options/ tag with multiple=true

2003-06-28 Thread Eva Murray
Can someone tell me what I'm doing wrong?
I have a JSP page with a form that I would like to display.  I want the form
to be prepopulated with the data which I retrieved from the database, and
those
items previously selected by the user highlighted .  I am unable to do this
for
the multi-select drop down lists.

Can you tell me what do I need to do to accomplish that or what is wrong
with what I have done?  I have looked long and hard and have not been able
to
come up with a solution.  I have found examples for single select drop down
lists, but not
for multi-select.

I enter into the browser http://localhost:9080/csd/update.do?id=404
The Update Action is executed which populates all of the form field values
with data pulled from the database.  The insertcsc.jsp page is then
displayed.
This page contains the TestPageForm which is presented with each of the form
fields
prepopulated from the database, except for the MultiSelect Drop Down lists.
The multi
select drop downs have the  data from the collection for initial display,
but the
selected items are not highlighted.

Thanks for any insight.
Eva Murray
=


The JSP Page insertcsc.jsp
jsp:useBean id=DB scope=page class=csd.RetrieveDropDownData /
% pageContext.setAttribute(jurisdictionDis,DB.getJurisdictionDropDown());
%

html:select property=jurisdiction size=6 multiple=true
styleClass=tabbody
html:options collection=jurisdictionDis property=value
labelProperty=label/
/html:select

The method in the csd.RetrieveDropDownData Java Class which creates the
ArrayList
public ArrayList getJurisdictionDropDown() {
java.util.ArrayList al = new java.util.ArrayList();
try {
Collection col = (Collection) new Vector();
DropDownDAODB drp = new DropDownDAODB();
al.add(new csd.LabelValueBean(Make a Selection(s),));
col = drp.listJurisdictions();
Iterator ite = col.iterator();
while (ite.hasNext()) {
String str = (String) ite.next();
  al.add(new csd.LabelValueBean(str,str));
  }
} catch (Exception ex)   {
al.add(new csd.LabelValueBean(,));
System.err.println(Error getting Planned.  + ex);
}
return al;
}

The TestPageForm Class
public class TestPageForm extends ActionForm {

private String [] jurisdiction = null;
public String[] getJurisdiction() {
return this.jurisdiction;
}
public void setJurisdiction(String j[]) {
this.jurisdiction = j;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
jurisdiction = null;
}

Struts-config XML
form-bean name=testPageForm
type=csd.TestPageForm/
action name=testPageForm path=/update scope=request
type=csd.UpdateAction
validate=false
forward name=success path=/insertcsc.jsp
/forward
/action

The UpdateAction Class
public ActionForward perform(
TestPageForm testPageForm = (TestPageForm) form;
Service s = (Service) ServiceUtility.getServiceByPk(id);
testPageForm.setJurisdiction(s.getJurisdictionF());
}

The s.getJurisdictionF() is a method in the Service Value Object.  It takes
the string
data from the database and converts it to String[]
  public String[] getJurisdictionF() {
  String [] jurisdiction = new String[5];
  int i = 0;
  String juris;
  StringTokenizer st = new StringTokenizer(_jurisdiction,,);
 while (st.hasMoreTokens()) {
 juris = st.nextToken().trim();
 jurisdiction[i] = juris;
 }
return jurisdiction;
  }




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



Re: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-28 Thread Micael
If you go to google and put in Sadly the cat dies. you will see our 
beloved Ted is a truth teller.  LOL.  I am unaware of Red Dwarf.  Sounds 
interesting.  That is high enough praise to get a person interested all right.

At 07:49 AM 6/28/03 -0600, you wrote:
You're talking of one of the greatest books of all time...

Red Dwarf.

Lister bought the cat to annoy Rimmer. Cat dies eventually of old age in the
cargo hold before starting the race of cats which brought on the Cat
character we all know and really dig.
If you say it's not, you're lying or you haven't read the book.
If not, do so. too funny.  :P
The Cat is mentioned on the dust jacket, but his mum, who dies, isn't. I
think you're lying to the user group and should come clean.  :)
Arron.



 I'm pleased to report that a unanimous majority of the Struts Committers
 have voted to release Struts 1.1 on or after Sunday June 29, 2003.

 =:) !!!

 But, sadly, my elderly cat has died of liver failure.

 =:(

 Unsurprisingly, this news is a thinly veiled segue to ...

 [Yet Another Quote Trivia Contest]

 Which of our favorite Science Fiction authors wrote a novel in which a
 key character was a cat that, sadly, died?

 A signed Struts in Action goes to the first lucky subscriber to email
 the corrected title and author to me directly at [EMAIL PROTECTED]

 -Ted.

 --
 Ted Husted,
 Struts in Action http://husted.com/struts/book.html

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




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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: Using html:options/ tag with multiple=true

2003-06-28 Thread Wendy Smoak
Eva wrote:
 I want the form to be prepopulated with the data which 
 I retrieved from the database, and those items previously 
 selected by the user highlighted .  I am unable to do this
 for the multi-select drop down lists.

I vote for the old type of get and set methods do not match problem:

public String[] getJurisdiction() { return this.jurisdiction; }
public void setJurisdiction(String j[]) { this.jurisdiction = j; }

I would try using setJurisdiction( String[] j) instead.

The Introspection/Reflection process is *very* picky when it comes to
recognizing JavaBeans properties.  Usually it's someone mixing String and
int properties, but I can see how it would be confused by String j[] and
String[] as well.

-- 
Wendy Smoak, Arizona State University
BTW, Lucifer just called and he needs a pair of ice skates :-)
James Turner in struts-dev, voting to release Struts 1.1 Final



RE: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-28 Thread Carl Fyffe
Pixel never dies.  He was badly hurt, but he never dies.

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 27, 2003 1:28 PM
To: 'Struts Users Mailing List'
Subject: Re: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died


This author, like the fabled cat, is also sadly dead, but a novel by The 
Dean is not the one I had in mind.

And here's another clue: Our sadly deceased cat is not mentioned in the 
title (but is mentioned on the dust jacket).

-Ted.


Jarnot Voytek Contr AU HQ/SC wrote:
 Heinlein?  Cat who walks through walls?
 
 
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 11:51 AM
To: [EMAIL PROTECTED]
Subject: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died


I'm pleased to report that a unanimous majority of the Struts
Committers 
have voted to release Struts 1.1 on or after Sunday June 29, 2003.

=:) !!!

But, sadly, my elderly cat has died of liver failure.

=:(

Unsurprisingly, this news is a thinly veiled segue to ...

[Yet Another Quote Trivia Contest]

Which of our favorite Science Fiction authors wrote a novel
in which a 
key character was a cat that, sadly, died?

A signed Struts in Action goes to the first lucky subscriber to email
the corrected title and author to me directly at [EMAIL PROTECTED]

-Ted.


-- 
Ted Husted,
Struts in Action http://husted.com/struts/book.html



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


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



Sending a Redirect Directly from an Action Class

2003-06-28 Thread Mike Duffy
What are your thoughts on sending a redirect directly from an Action
class:

response.sendRedirect(/somePage.jsp?);  
return null;

There is a setRedirect(boolean redirect) in the ActionForward class
that could be used for the same purpose (with a few extra lines of
code and an entry in the strutsconfig.xml).

Thanks.

Mike


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

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



JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Rick Reumann
Ok this has me stumped...

the down and dirty:

formBean has HashMap called fooMap

fooMap has keys that bring back beans of type BarBean

BarBean has properties someCode , someDescrip 

Now I want to iterate over this map and create the properties based on
the properties in BarBean and be able to update this form which will
then update the underlying BarBeans in the map.

(Ignore the part that I know that's a hassle about the reset method and
making sure Map exist there).


c:forEach var=beanInMap items=${formBean.fooMap}

someCode: html-el:text property=/br
someDescrip:  html-el:text property=/br
br
  
/c:forEach


the text will display fine in the form with:

someCode: html-el:text name=beanInMap property=beanInMap.deptCode /

but when the form submits all the bean property values are null ( in the
reset if it matters for testing i'm just creating a few maps with empty
BarBeans in the map).

I'm stumped.. any help much appreciated.

-- 
Rick
 


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



RE: jgs Quartz error

2003-06-28 Thread Holman, Cal
Do you have the jgs-struts-0.1d.jar in your classpath?  jgs-quartz-0.1d.jar needs it.

Cal 

http://www.calandva.com/Last update 04/26/03

??Email: [EMAIL PROTECTED]
??Phone:706 322-4963
??Snail Mail: 1001 Brookwood Ave   Columbus, GA 31906

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 01:35
To: Struts Users Mailing List
Subject: Re: jgs Quartz error

21:30:28,495 INFO  [TilesPlugin] Tiles definition factory loaded for
module ''.
21:30:28,511 ERROR [MainDeployer] could not start deployment:
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
sos-app.ear/35.yoursos-app.ear-contents/yoursos-web-application.war
java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn

I don't understand this: there's a log message from the TilesPlugin
saying that it has configured, followed immediately by a message
saying that org.apache.struts.action.PlugIn could not be found?

Still, from reading the stack trace, I don't see any problems that
look related to the QuartzPlugIn.  This looks like a different stack
trace than anything you posted last time this problem came up.

This is out of my league -- it seems like something unique to JBoss
and your deployment environment.  At least, we have the QuartzPlugIn
running in a production app here, and from a little googling, it
seems like one or two other folks are using it OK.

Wish I could be of more help,
Joe

--
--
Joe Germuska   
[EMAIL PROTECTED] 
http://blog.germuska.com   
If nature worked that way, the universe would crash all the time.
--Jaron Lanier

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

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

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



Re: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Jing Zhou
I have the following concerns whenever the redirect is used:

* The statement response.sendRedirect(/somePage.jsp)
   will bind the codes statically to the underlying file system
   structures. So if someone moves the somePage.jsp to
   a different location, the codes are broken.

* The JSP page somePage.jsp could not be protected
   by the standard security constraints. So it is recommended
   to use response.sendRedirect(/someAction.do) or
   a Filter, either way that provides security checking.
   Improper use of the redirect could make the security
   constraints over complicated as in an early discussion on
   how we redirect to restricted pages.

* Use the redirect only when it is really needed. It needs 
   extra CPU time and network resources than just forward.

Regarding to the last concern, I have a question: what
business requirements that need the redirect within
a web application? Using the redirect across web
applications or web sites is reasonable as well as when
we dynamically build hyper links.

A delay at client side? Any more ideas?

Jing
Netspread Carrier
http://www.netspread.com

- Original Message - 
From: Mike Duffy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 11:27 AM
Subject: Sending a Redirect Directly from an Action Class


 What are your thoughts on sending a redirect directly from an Action
 class:
 
 response.sendRedirect(/somePage.jsp?);  
 return null;
 
 There is a setRedirect(boolean redirect) in the ActionForward class
 that could be used for the same purpose (with a few extra lines of
 code and an entry in the strutsconfig.xml).
 
 Thanks.
 
 Mike
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



nested bean parameters

2003-06-28 Thread Mick Knutson
I have a Collection of AlertDto's. Each AlertDto has a method called 
getStartingLocation() that returns a LocationDto. That LocationDto has a 
method called getLocationTitle().

How, in a JSP can I get the locationTitle?

I have tried:

logic:iterate id=alert name=alertListForm property=userAlerts
bean:write name=alert property=startingLocation.locationId /
/logic:iterate


---
Thanks...
Mick Knutson
---
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: jgs Quartz error

2003-06-28 Thread Mick Knutson
I have all 3 jar files within my WAR. I have not added them anywhere else.
I have an EAR with a common.jar, ejbs.jar and yoursos.war. All 3 jars in the 
war.

Should I be adding them in the classpath somewhere else?
If so, where do I add them, and why is having them in the WAR not good 
enough.

Thanks in advance sooo much for your help. This has been kicking my 
butt!

---
Thanks...
Mick Knutson
---




From: Holman, Cal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sat, 28 Jun 2003 12:46:47 -0400
Do you have the jgs-struts-0.1d.jar in your classpath?  jgs-quartz-0.1d.jar 
needs it.

Cal

http://www.calandva.com/Last update 04/26/03

??Email: [EMAIL PROTECTED]
??Phone:706 322-4963
??Snail Mail: 1001 Brookwood Ave   Columbus, GA 31906
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 01:35
To: Struts Users Mailing List
Subject: Re: jgs Quartz error
21:30:28,495 INFO  [TilesPlugin] Tiles definition factory loaded for
module ''.
21:30:28,511 ERROR [MainDeployer] could not start deployment:
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
sos-app.ear/35.yoursos-app.ear-contents/yoursos-web-application.war
java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn
I don't understand this: there's a log message from the TilesPlugin
saying that it has configured, followed immediately by a message
saying that org.apache.struts.action.PlugIn could not be found?
Still, from reading the stack trace, I don't see any problems that
look related to the QuartzPlugIn.  This looks like a different stack
trace than anything you posted last time this problem came up.
This is out of my league -- it seems like something unique to JBoss
and your deployment environment.  At least, we have the QuartzPlugIn
running in a production app here, and from a little googling, it
seems like one or two other folks are using it OK.
Wish I could be of more help,
Joe
--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
If nature worked that way, the universe would crash all the time.
--Jaron Lanier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Learn more about Paymentech's payment processing services at 
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may 
not print, distribute, or copy this message or any attachments.  If you 
have received this communication in error, please notify the sender by 
return e-mail and delete this message and any attachments from your 
computer.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


Re: JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Dan Tran
see this link
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt

-Dan
- Original Message - 
From: Rick Reumann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 9:35 AM
Subject: JSTL- el - nested beans from a map used in a form?


 Ok this has me stumped...
 
 the down and dirty:
 
 formBean has HashMap called fooMap
 
 fooMap has keys that bring back beans of type BarBean
 
 BarBean has properties someCode , someDescrip 
 
 Now I want to iterate over this map and create the properties based on
 the properties in BarBean and be able to update this form which will
 then update the underlying BarBeans in the map.
 
 (Ignore the part that I know that's a hassle about the reset method and
 making sure Map exist there).
 
 
 c:forEach var=beanInMap items=${formBean.fooMap}
 
 someCode: html-el:text property=/br
 someDescrip:  html-el:text property=/br
 br
   
 /c:forEach
 
 
 the text will display fine in the form with:
 
 someCode: html-el:text name=beanInMap property=beanInMap.deptCode /
 
 but when the form submits all the bean property values are null ( in the
 reset if it matters for testing i'm just creating a few maps with empty
 BarBeans in the map).
 
 I'm stumped.. any help much appreciated.
 
 -- 
 Rick
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: jgs Quartz error

2003-06-28 Thread Joe Germuska
At 10:37 -0700 6/28/03, Mick Knutson wrote:
I have all 3 jar files within my WAR. I have not added them anywhere else.
I have an EAR with a common.jar, ejbs.jar and yoursos.war. All 3 
jars in the war.

Should I be adding them in the classpath somewhere else?
If so, where do I add them, and why is having them in the WAR not good enough.
Thanks in advance sooo much for your help. This has been kicking my butt!
In your current case, the not-found error is with a Struts class, not 
any of JGSI libraries.

Does JBoss provide a common lib directory for JARs?  If you were 
using Tomcat, I'd suggest you just put all the jars in 
$CATALINA_HOME/common/lib/ as an experiment to see if that 
straightens things out -- if JBoss has something similar, it might 
help.

It seems like things have gotten further from working.  In your 
message from May 
(http://marc.theaimsgroup.com/?l=struts-userm=105351464631226w=2), 
the classloader got much further along, finding 
org.apache.struts.action.PlugIn and the QuartzPlugIn class, but 
failing when the Digester instance created by QuartzPlugIn tried to 
create a com.jgsullivan.quartz.config.QuartzConfig.  In your latest 
stack trace, somehow it can't find the Struts PlugIn interface, even 
though it has found other classes which should be in the same jar.

If you can, I would try to go back to how your configuration was set 
up at that time, and then replace the jgs-quartz-0.1d.jar with 
jgs-quartz-0.2-dev.jar, in which the Digester is instructed to use 
the Context Class Loader if available.  At that point, if you have 
jgs-struts, jgs-quartz, and quartz all in the same place, it seems 
likely that it will all come together.

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
If nature worked that way, the universe would crash all the time. 
	--Jaron Lanier

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


RE: jgs Quartz error

2003-06-28 Thread Joe Germuska
Does JBoss provide a common lib directory for JARs?  If you were 
using Tomcat, I'd suggest you just put all the jars in 
$CATALINA_HOME/common/lib/ as an experiment to see if that 
straightens things out -- if JBoss has something similar, it might 
help.
I should clarify -- it might help get closer to figuring out the real 
project.  You wouldn't want to deploy an application where you had to 
put all of the JARs in the container's classpath.  That would be 
messy.

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
If nature worked that way, the universe would crash all the time. 
	--Jaron Lanier

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


Re: JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Rick Reumann
On Sat, 2003-06-28 at 13:51, Dan Tran wrote:
 see this link
 http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt

Thanks Dan. I looked at the presentation above, but it's not helping me
much. I probably do still need the indexed=true to make the properties
indexed, but I still don't see how this is going to get them populated
in the correct bean and loaded back into the map? Adding indexed=true
doesn't seem to help.

 
 -Dan
 - Original Message - 
 From: Rick Reumann [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, June 28, 2003 9:35 AM
 Subject: JSTL- el - nested beans from a map used in a form?
 
 
  Ok this has me stumped...
  
  the down and dirty:
  
  formBean has HashMap called fooMap
  
  fooMap has keys that bring back beans of type BarBean
  
  BarBean has properties someCode , someDescrip 
  
  Now I want to iterate over this map and create the properties based on
  the properties in BarBean and be able to update this form which will
  then update the underlying BarBeans in the map.
  
  (Ignore the part that I know that's a hassle about the reset method and
  making sure Map exist there).
  
  
  c:forEach var=beanInMap items=${formBean.fooMap}
  
  someCode: html-el:text property=/br
  someDescrip:  html-el:text property=/br
  br

  /c:forEach
  
  
  the text will display fine in the form with:
  
  someCode: html-el:text name=beanInMap property=beanInMap.deptCode /
  
  but when the form submits all the bean property values are null ( in the
  reset if it matters for testing i'm just creating a few maps with empty
  BarBeans in the map).
  
  I'm stumped.. any help much appreciated.
  
  -- 
  Rick
   
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



RE: jgs Quartz error

2003-06-28 Thread Mick Knutson
I tried the first way I posted back in May, but the class was wrong in the 
declaration:
   plug-in className=com.jgsullivan.quartz.QuartzPlugIn 
   set-property property=configPath 
value=/WEB-INF/quartz-config.xml/
   /plug-in

Then I tried to move all 3 jars into my JBoss lib directory and used this 
declaration:
   plug-in className=com.jgsullivan.struts.plugins.QuartzPlugIn 
   set-property property=configPath 
value=/WEB-INF/quartz-config.xml /
   /plug-in

And here is the error I got (Same as I just posted):
=-==
11:49:34,390 INFO  [TilesPlugin] Tiles definition factory loaded for module 
''.
11:49:34,405 ERROR [MainDeployer] could not start deployment: 
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/dep
loy/yoursos-app.ear/28.yoursos-app.ear-contents/yoursos-web-application.war
java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at 
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:388)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   at 
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.java:229)
   at 
org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:217)
   at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:130)
   at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at 
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:388)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   at 
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.java:229)
   at 
org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:217)
   at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:130)
   at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
   at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:566)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
   at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:214)
   at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:198)
   at 
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
   at 
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
   at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1140)
   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServlet.java:23)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
   at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
   at 
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
   at 
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.java:89)
   at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
   at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
   at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
   at 

Submiting a form through a link

2003-06-28 Thread Cristiano Moreira Silva
Hello. I'm trying to submit a html:form through a
html:link. When I click the link, on the onclick
event, I call a javascript function and execute:

document.forms[0].submit()

Then nothing happens.

Can someone send me a simple example (or a URL to it)
of submiting a html:form through html:link? Thanks.



=

Cristiano Moreira Silva
Site - http://computologo.vila.bol.com.br
E-mail - [EMAIL PROTECTED]
Tudo posso nAquele que me fortalece. Fp. 4:13

___
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
contra spam.
http://br.mail.yahoo.com/

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



Re: nested bean parameters

2003-06-28 Thread Rick Reumann
On Sat, 2003-06-28 at 13:31, Mick Knutson wrote:
 I have a Collection of AlertDto's. Each AlertDto has a method called 
 getStartingLocation() that returns a LocationDto. That LocationDto has a 
 method called getLocationTitle().
 
 How, in a JSP can I get the locationTitle?
 
 I have tried:
 
 logic:iterate id=alert name=alertListForm property=userAlerts
 bean:write name=alert property=startingLocation.locationId /
 /logic:iterate

What you need is for your nested bean to have a getter method that
matches the property name. So in your case if you have AlertDto and
inside you have a method getStartingLocation.. you have to make sure
that the name of LocationDto in the AlertDto is called
startingLocation. Then you can just do like you have above. Are you
sure your LocationDto is called startingLocation inside of AlertDto ?

-- 
Rick 


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



Re: nested bean parameters

2003-06-28 Thread Mick Knutson
In AlertDto:
  public com.baselogic.yoursos.location.LocationDto getStartingLocation()
  {
  return this.StartingLocation;
  }
In LocationDto:

  public java.lang.String getLocationId()
  {
  return this.locationId;
  }


---
Thanks...
Mick Knutson
---




From: Rick Reumann [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: nested bean parameters
Date: 28 Jun 2003 15:08:49 -0400
On Sat, 2003-06-28 at 13:31, Mick Knutson wrote:
 I have a Collection of AlertDto's. Each AlertDto has a method called
 getStartingLocation() that returns a LocationDto. That LocationDto has a
 method called getLocationTitle().

 How, in a JSP can I get the locationTitle?

 I have tried:

 logic:iterate id=alert name=alertListForm property=userAlerts
 bean:write name=alert property=startingLocation.locationId /
 /logic:iterate
What you need is for your nested bean to have a getter method that
matches the property name. So in your case if you have AlertDto and
inside you have a method getStartingLocation.. you have to make sure
that the name of LocationDto in the AlertDto is called
startingLocation. Then you can just do like you have above. Are you
sure your LocationDto is called startingLocation inside of AlertDto ?
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: nested bean parameters

2003-06-28 Thread Rick Reumann
On Sat, 2003-06-28 at 15:10, Mick Knutson wrote:
 In AlertDto:
public com.baselogic.yoursos.location.LocationDto getStartingLocation()
{
 return this.StartingLocation;
}

StartingLocation should be startingLocation (lowercase s)

-- 
Rick


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



Re: A question on Tiles and Frames

2003-06-28 Thread K.C. Baltz
Overflow is actually a standard CSS feature that IE only partially 
supports.  In Mozilla, you can do this with a lot more elements 
including tables where the header remains fixed while the data scrolls. 

K.C.

Mike Jasnowski wrote:

Well, depending on the web client you are using, IE has a feature that
enables some block level elements like DIV to be scrollable.  You can set
an overflow CSS property that enables a scrollbar to appear.There are
also cross-browser solutions for making independent (non-frame) scrollable
areas of content.
-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 9:42 AM
To: Struts Users Mailing List
Subject: RE: A question on Tiles and Frames
I had the same problem .. while developing a Menu (left side) .. wanted to
make that scrollable ..
But I guess its not possible with Tiles I guess ..  Infact try doing it
without tiles (and without frames) .. its not possible . And if somehow if
its really possible .. I would definately like to know that ..
-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 5:57 PM
To: Struts Users Mailing List
Subject: Re: A question on Tiles and Frames
Okay. So is there *another* way to implement
independently scrollable content within a region of a page using Struts
and Tiles?
-jeff

On Friday, June 20, 2003, at 07:17  AM, Cedric Dumoulin wrote:

 

The page of a frame should alway be publicly accessible. It is alway
possible to access it directly without the other associated frames.
So, you can't hide them.
  Cedric

 Cedric

Jeff Kyser wrote:

   

Hey Cedric,

Thanks for the response. I guess I'd figured out I couldn't put them
under WEB-INF for the reasons you stated. So how can I implement
a scollable region such as a frame might offer and still use Tiles and
stay with some of the 'best practices' recommended for Struts
development such as hiding your JSPs under WEB-INF? I suppose
it gets off-topic, but surely there must be a way to have
independently
scrolled regions of a web page in a Struts environment without
making every page publicly accessible?
thanks, I'd sure like some insight as to how to proceed...

-jeff

 

Hi,

Each frame of a frameset is filled with a web page. Each one issue
an independent http request to the web server. So each page
corresponding to a frame should be publicly accessible on the web
server, and can't be under WEB-INF.
 Cedric
   

 

but I get Forbidden errors, presumably because my JSPs are beneath
the WEB-INF directory and
   

therefore not accessible.

Is there an alternate way to do this and still have my JSPs
underneath WEB-INF?
(Basically, I have a frames-based layout with a scrollable panel,
and am trying
to figure out how to best implement that feature using Struts/Tiles
without exposing all
my JSPs.
TIA,

-jeff


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

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

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

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



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



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


RE: jgs Quartz error

2003-06-28 Thread Joe Germuska
At 11:51 -0700 6/28/03, Mick Knutson wrote:
I tried the first way I posted back in May, but the class was wrong 
in the declaration:
   plug-in className=com.jgsullivan.quartz.QuartzPlugIn 
   set-property property=configPath 
value=/WEB-INF/quartz-config.xml/
   /plug-in

Then I tried to move all 3 jars into my JBoss lib directory and used 
this declaration:
   plug-in className=com.jgsullivan.struts.plugins.QuartzPlugIn 
   set-property property=configPath 
value=/WEB-INF/quartz-config.xml /
   /plug-in
What if you put the jars back into the EAR where they were in May, 
but make sure you have the newer version of jgs-quartz.  Then, make 
sure your struts-config file refers to 
'com.jgsullivan.struts.plugins.QuartzPlugIn' as the plugin class 
name.  Then see what happens.

Having web app jars in the JBoss lib directory (which is what I kind 
of suggested earlier today) doesn't seem to be helping, and in the 
long run, can really complicate things.  Generally speaking, classes 
loaded from that directory can't subsequently load classes from a 
WEB-INF/lib directory, which can lead to all kinds of confusion.

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
If nature worked that way, the universe would crash all the time. 
	--Jaron Lanier

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


Re: nested bean parameters

2003-06-28 Thread Mick Knutson
I actually changed the JSP:

bean:write name=alert property=StartingLocation.locationId /

but also tried:
bean:write name=alert property=StartingLocation.LocationId /
but I got the same errors.



---
Thanks...
Mick Knutson
---




From: Rick Reumann [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: nested bean parameters
Date: 28 Jun 2003 15:30:44 -0400
On Sat, 2003-06-28 at 15:10, Mick Knutson wrote:
 In AlertDto:
public com.baselogic.yoursos.location.LocationDto 
getStartingLocation()
{
 	  return this.StartingLocation;
}

StartingLocation should be startingLocation (lowercase s)

--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: jgs Quartz error

2003-06-28 Thread Mick Knutson
OK, closer, but still no bannana...

I moved the quartz jars (3) to the EAR instead of the WAR.
I added this into the Manifest.mf for the WAR:
Manifest-Version: 1.0
Class-Path: yoursos-beans.jar common.jar junit-3.8.1.jar 
strutstest-2.0.0.jar aspectjrt-1.0.5.jar cactus-1.4.1.jar 
cactus-ant-1.4.1.jar httpunit-1.4.1.jar quartz.jar jgs-quartz-0.2-dev.jar 
jgs-struts-0_1d.jar

But, here is the new error message I get:
==
12:51:51,936 WARN  [jbossweb] WARNING: action: null
java.lang.ClassNotFoundException: com.jgsullivan.struts.plugins.QuartzPlugIn
   at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:225)
   at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:198)
   at 
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
   at 
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
   at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1140)
   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServlet.java:23)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
   at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
   at 
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
   at 
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.java:89)
   at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
   at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
   at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
   at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
   at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
   at $Proxy3.deploy(Unknown Source)
   at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
   at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:217)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:230)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:207)

12:51:51,936 INFO  [jbossweb] action: null: 
java.lang.ClassNotFoundException: com.jgsullivan.struts.plugins.QuartzPlugIn
12:51:51,951 INFO  [jbossweb] Stopped 
WebApplicationContext[/,jar:file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default
/deploy/yoursos-app.ear/34.yoursos-app.ear-contents/yoursos-web-application.war!/]
12:51:51,951 INFO  [jbossweb] Deregister 
jboss.web:Jetty=0,JBossWebApplicationContext=10,context=/
12:51:51,951 INFO  [jbossweb] Successfully undeployed 
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
sos-app.ear/34.yoursos-app.ear-contents/yoursos-web-application.war
12:51:51,951 ERROR [MainDeployer] could not start deployment: 
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/dep
loy/yoursos-app.ear/34.yoursos-app.ear-contents/yoursos-web-application.war
org.jboss.deployment.DeploymentException: - nested throwable: 
(javax.servlet.UnavailableException)
   at org.jboss.jetty.Jetty.deploy(Jetty.java:353)
   at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
   at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
   at 

RE: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Steve Raeburn


 -Original Message-
 From: Jing Zhou [mailto:[EMAIL PROTECTED]
 Sent: June 28, 2003 10:28 AM
 To: Struts Users Mailing List
 Subject: Re: Sending a Redirect Directly from an Action Class


 I have the following concerns whenever the redirect is used:

 * The statement response.sendRedirect(/somePage.jsp)
will bind the codes statically to the underlying file system
structures. So if someone moves the somePage.jsp to
a different location, the codes are broken.

Yes, there's nothing gained by hard coding the redirect in the action class
and it's easier and more flexible to use redirect=true on an ActionForward.


 * The JSP page somePage.jsp could not be protected
by the standard security constraints. So it is recommended
to use response.sendRedirect(/someAction.do) or
a Filter, either way that provides security checking.
Improper use of the redirect could make the security
constraints over complicated as in an early discussion on
how we redirect to restricted pages.


This is not true. When you redirect the client issues a new request which is
subject to container managed security. (You can set up a rule to protect
/somePage.jsp as easily as you can /someAction.do. When you *forward*
a request, this happens within the container and does not trigger security
rules.

 * Use the redirect only when it is really needed. It needs
extra CPU time and network resources than just forward.


Technically true, because it does create an extra round-trip between client
and server. But the overall effect is negligible. About as much as your user
clicking on a link to go to another page and I think most servers should be
able to handle that ;-)

 Regarding to the last concern, I have a question: what
 business requirements that need the redirect within
 a web application? Using the redirect across web
 applications or web sites is reasonable as well as when
 we dynamically build hyper links.

 A delay at client side? Any more ideas?

When you forward request the client URL does not change. This can cause
situations where the URL displayed in the browser is inconsistent with
what's displayed on the screen. It's useful to do a redirect at the end of
some requests in order to reconcile the URL with the page that's displayed.

For example, if my login form submits to /processLogin.do and then forwards
to my home page, the browser URL will still display /processLogin.do. What I
really want is for the browser to display the URL of my home page (say
/index.do). So I issue a redirect, rather than forward to achieve this.

So what? Well, for one thing, different URLs for the same page can confuse
the user. Secondly, if the action was a long running one or updates the
database and the user refereshes the screen after a forward it could cause
the action to be re-run. I know, you can use tokens to prevent this, but
then you get a situation where the user just wants to refresh the home page
and ends up getting an error message that a form was submitted out of
sequence!

So, sometimes a redirect is the right thing to do, but for maximum
flexibility it should be done using an ActionFoward with redirect set to
true.

Steve


 Jing
 Netspread Carrier
 http://www.netspread.com

 - Original Message -
 From: Mike Duffy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 28, 2003 11:27 AM
 Subject: Sending a Redirect Directly from an Action Class


  What are your thoughts on sending a redirect directly from an Action
  class:
 
  response.sendRedirect(/somePage.jsp?);
  return null;
 
  There is a setRedirect(boolean redirect) in the ActionForward class
  that could be used for the same purpose (with a few extra lines of
  code and an entry in the strutsconfig.xml).
 
  Thanks.
 
  Mike
 
 
  __
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!
  http://sbc.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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






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



RE: Submiting a form through a link

2003-06-28 Thread Steve Raeburn
  a href= onclick=document.forms[0].submit();return false;Click
here/a
  (or the equivalent using Struts html:link tag.)

  html:form action=/path
html:hidden property=action value=MyAction/
  /html:form

The above code works for me. Not sure if the return false; has any impact -
probably does nothing.
Do you have more than one form on the page? You might need to change the
forms[] index number.
You can also try using the form name (which is the same as defined in
struts-config.xml) e.g.

  document.forms['testForm'].submit()

If that doesn't work then please post more of your form  link code.

Steve

p.s. Don't forget that if your users don't have javascript enabled then they
won't be able to use this feature of your site. ;-)

 -Original Message-
 From: Cristiano Moreira Silva [mailto:[EMAIL PROTECTED]
 Sent: June 28, 2003 12:02 PM
 To: Struts Users Mailing List
 Subject: Submiting a form through a link


 Hello. I'm trying to submit a html:form through a
 html:link. When I click the link, on the onclick
 event, I call a javascript function and execute:

 document.forms[0].submit()

 Then nothing happens.

 Can someone send me a simple example (or a URL to it)
 of submiting a html:form through html:link? Thanks.



 =
 
 Cristiano Moreira Silva
 Site - http://computologo.vila.bol.com.br
 E-mail - [EMAIL PROTECTED]
 Tudo posso nAquele que me fortalece. Fp. 4:13

 ___
 Yahoo! Mail
 Mais espaço, mais segurança e gratuito: caixa postal de 6MB,
 antivírus, proteção contra spam.
 http://br.mail.yahoo.com/

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






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



Re: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Jing Zhou

- Original Message - 
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 4:17 PM
Subject: RE: Sending a Redirect Directly from an Action Class




  -Original Message-
  From: Jing Zhou [mailto:[EMAIL PROTECTED]
  Sent: June 28, 2003 10:28 AM
  To: Struts Users Mailing List
  Subject: Re: Sending a Redirect Directly from an Action Class
 
 
  I have the following concerns whenever the redirect is used:
 
  * The statement response.sendRedirect(/somePage.jsp)
 will bind the codes statically to the underlying file system
 structures. So if someone moves the somePage.jsp to
 a different location, the codes are broken.

 Yes, there's nothing gained by hard coding the redirect in the action
class
 and it's easier and more flexible to use redirect=true on an
ActionForward.

 
  * The JSP page somePage.jsp could not be protected
 by the standard security constraints. So it is recommended
 to use response.sendRedirect(/someAction.do) or
 a Filter, either way that provides security checking.
 Improper use of the redirect could make the security
 constraints over complicated as in an early discussion on
 how we redirect to restricted pages.
 

 This is not true. When you redirect the client issues a new request which
is
 subject to container managed security. (You can set up a rule to protect
 /somePage.jsp as easily as you can /someAction.do. When you *forward*
 a request, this happens within the container and does not trigger security
 rules.

If you means the new redirected request to the page /somePage.jsp is
subject to container managed security because a custom action in the page
perform the security checking, that is not called container manager
security.
It is the old Model 1 things.


  * Use the redirect only when it is really needed. It needs
 extra CPU time and network resources than just forward.
 

 Technically true, because it does create an extra round-trip between
client
 and server. But the overall effect is negligible. About as much as your
user
 clicking on a link to go to another page and I think most servers should
be
 able to handle that ;-)

  Regarding to the last concern, I have a question: what
  business requirements that need the redirect within
  a web application? Using the redirect across web
  applications or web sites is reasonable as well as when
  we dynamically build hyper links.
 
  A delay at client side? Any more ideas?

 When you forward request the client URL does not change. This can cause
 situations where the URL displayed in the browser is inconsistent with
 what's displayed on the screen. It's useful to do a redirect at the end of
 some requests in order to reconcile the URL with the page that's
displayed.

 For example, if my login form submits to /processLogin.do and then
forwards
 to my home page, the browser URL will still display /processLogin.do. What
I
 really want is for the browser to display the URL of my home page (say
 /index.do). So I issue a redirect, rather than forward to achieve this.

 So what? Well, for one thing, different URLs for the same page can confuse
 the user. Secondly, if the action was a long running one or updates the
 database and the user refereshes the screen after a forward it could cause
 the action to be re-run. I know, you can use tokens to prevent this, but
 then you get a situation where the user just wants to refresh the home
page
 and ends up getting an error message that a form was submitted out of
 sequence!

It is a good example. I did heard some customers mentioned it somewhere.
But displaying *right* URL on the address bar is a more client issue.
Has any body tried to use Java scripts to change the URL to a desired
string? For me, I just turn off the address bar. Of course, it is not a
general solution to it. Any other examples?


 So, sometimes a redirect is the right thing to do, but for maximum
 flexibility it should be done using an ActionFoward with redirect set to
 true.

 Steve

 
  Jing
  Netspread Carrier
  http://www.netspread.com
 
  - Original Message -
  From: Mike Duffy [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 28, 2003 11:27 AM
  Subject: Sending a Redirect Directly from an Action Class
 
 
   What are your thoughts on sending a redirect directly from an Action
   class:
  
   response.sendRedirect(/somePage.jsp?);
   return null;
  
   There is a setRedirect(boolean redirect) in the ActionForward class
   that could be used for the same purpose (with a few extra lines of
   code and an entry in the strutsconfig.xml).
  
   Thanks.
  
   Mike
  
  
   __
   Do you Yahoo!?
   SBC Yahoo! DSL - Now only $29.95 per month!
   http://sbc.yahoo.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  

Re: JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Jason Lea
Hi Rick,

Here are some ideas, I haven't tested them so they could be horribly 
wrong :)

The html-el:text tag are just like the html:text tag, but I can evaluate 
EL expressions.

What you want to generate is something like this:

someCode:  input type=text name=fooMap['aCode'].someCode 
value=aCodebr

because when this is submitted Struts will do something like:
formBean.getFooMap().get(aCode).setSomeCode(a new value)
So then looking at the html:text tag documentation we see for 'property':

Name of this input field, and the name of the corresponding bean 
property if value is not specified. The corresponding bean property (if 
any) must be of type String.

This means the value of 'property' will be the name of the text input 
field - this is the bit we want to become name=fooMap['aCode'].someCode.

The other importent part is the 'indexed' property:

Valid only inside of logic:iterate tag. If true then name of the html 
tag will be rendered as id[34].propertyName. Number in brackets will 
be generated for every iteration and taken from ancestor logic:iterate tag.

You are using JSTL and have not created a logic:iterate tag so the index 
isn't going to be generated for you.  You could switch to using 
logic:iterate and I think the tags figure out what to call themselves eg

html:form action=
logic:iterate id=beanInMap name=fooMap
someCode: html-el:text name=beanInMap 
property=deptCode indexed=true/br
/logic:iterate
/html:form

or use the nested:* tags, which would be something like:

nested:form action=
nested:iterate name=fooMap
someCode: nested:text property=deptCode /br
/nested:iterate
/html-el:form
If you want to use JSTL, you probably have to generate the property name 
yourself:

html:form action=
c:forEach var=beanInMap items=${formBean.fooMap}
someCode: html-el:text 
property=fooMap['${beanInMap.someCode}'].someCode /br
someDescrip:  html-el:text 
property=fooMap['${beanInMap.someDescrip}'].someDescrip /br
br
/c:forEach
/html:form



Rick Reumann wrote:
Ok this has me stumped...

the down and dirty:

formBean has HashMap called fooMap

fooMap has keys that bring back beans of type BarBean

BarBean has properties someCode , someDescrip 

Now I want to iterate over this map and create the properties based on
the properties in BarBean and be able to update this form which will
then update the underlying BarBeans in the map.
(Ignore the part that I know that's a hassle about the reset method and
making sure Map exist there).
c:forEach var=beanInMap items=${formBean.fooMap}

someCode: html-el:text property=/br
someDescrip:  html-el:text property=/br
br
  
/c:forEach

the text will display fine in the form with:

someCode: html-el:text name=beanInMap property=beanInMap.deptCode /

but when the form submits all the bean property values are null ( in the
reset if it matters for testing i'm just creating a few maps with empty
BarBeans in the map).
I'm stumped.. any help much appreciated.





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


Re: JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Rick Reumann
On Sat, 2003-06-28 at 19:00, Jason Lea wrote:
 
 Here are some ideas, I haven't tested them so they could be horribly 
 wrong :)
 
 The html-el:text tag are just like the html:text tag, but I can evaluate 
 EL expressions.
 
 What you want to generate is something like this:
 
 someCode:  input type=text name=fooMap['aCode'].someCode 
 value=aCodebr
 
 because when this is submitted Struts will do something like:
 formBean.getFooMap().get(aCode).setSomeCode(a new value)

Thanks Jason. I'll have to try some of this. The problem with the above
though is what do i substitute in for aCode that represents key. The
keys can be different obviously as the iterations take place.  

 
 So then looking at the html:text tag documentation we see for 'property':
 
 Name of this input field, and the name of the corresponding bean 
 property if value is not specified. The corresponding bean property (if 
 any) must be of type String.
 
 This means the value of 'property' will be the name of the text input 
 field - this is the bit we want to become name=fooMap['aCode'].someCode.
 
 The other importent part is the 'indexed' property:
 
 Valid only inside of logic:iterate tag.  

Actually this seemed to also work within the JSTL foreach loop.

 If true then name of the html 
 tag will be rendered as id[34].propertyName. Number in brackets will 
 be generated for every iteration and taken from ancestor logic:iterate tag.
 
 You are using JSTL and have not created a logic:iterate tag so the index 
 isn't going to be generated for you.  You could switch to using 
 logic:iterate and I think the tags figure out what to call themselves eg
 
 html:form action=
  logic:iterate id=beanInMap name=fooMap
  someCode: html-el:text name=beanInMap 
 property=deptCode indexed=true/br
  /logic:iterate
 /html:form

I tried the above but it complained that it couldn't find my map (fooMap
in the above example).

 
 or use the nested:* tags, which would be something like:
 
 nested:form action=
  nested:iterate name=fooMap
  someCode: nested:text property=deptCode /br
  /nested:iterate
 /html-el:form
 
 If you want to use JSTL, you probably have to generate the property name 
 yourself:
 
 html:form action=
  c:forEach var=beanInMap items=${formBean.fooMap}
  someCode: html-el:text 
 property=fooMap['${beanInMap.someCode}'].someCode /br
  someDescrip:  html-el:text 
 property=fooMap['${beanInMap.someDescrip}'].someDescrip /br
  br
  /c:forEach
 /html:form

With the above I end up with the error:

org.apache.jasper.JasperException: An error occurred while evaluating
custom action attribute property with value
departments['${beanInMap.deptCode}'].deptCode: Unable to find a value
for deptCode in object of class java.util.HashMap$Entry using
operator . (null)

the syntax looks like:

c:forEach var=beanInMap items=${employeeForm.departments}
  Code: 
html:text  property=departments['${beanInMap.deptCode}'].deptCode /
br
  Name:  
html:text  property=departments['${beanInMap.deptName}'].deptName /
br
br
/c:forEach 

I've tried all kinds of other combos also and still stumped.

Thanks for the help so far.

 
 Rick Reumann wrote:
  Ok this has me stumped...
  
  the down and dirty:
  
  formBean has HashMap called fooMap
  
  fooMap has keys that bring back beans of type BarBean
  
  BarBean has properties someCode , someDescrip 
  
  Now I want to iterate over this map and create the properties based on
  the properties in BarBean and be able to update this form which will
  then update the underlying BarBeans in the map.
  
  (Ignore the part that I know that's a hassle about the reset method and
  making sure Map exist there).
  
  
  c:forEach var=beanInMap items=${formBean.fooMap}
  
  someCode: html-el:text property=/br
  someDescrip:  html-el:text property=/br
  br

  /c:forEach
  
  
  the text will display fine in the form with:
  
  someCode: html-el:text name=beanInMap property=beanInMap.deptCode /
  
  but when the form submits all the bean property values are null ( in the
  reset if it matters for testing i'm just creating a few maps with empty
  BarBeans in the map).
  
  I'm stumped.. any help much appreciated.
  
 
 
 


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



Re: JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Jason Lea
Hi Rick,

Rick Reumann wrote:
On Sat, 2003-06-28 at 19:00, Jason Lea wrote:
 

Here are some ideas, I haven't tested them so they could be horribly 
wrong :)

The html-el:text tag are just like the html:text tag, but I can evaluate 
EL expressions.

What you want to generate is something like this:

someCode:  input type=text name=fooMap['aCode'].someCode 
value=aCodebr

because when this is submitted Struts will do something like:
formBean.getFooMap().get(aCode).setSomeCode(a new value)


Thanks Jason. I'll have to try some of this. The problem with the above
though is what do i substitute in for aCode that represents key. The
keys can be different obviously as the iterations take place.  


So then looking at the html:text tag documentation we see for 'property':

Name of this input field, and the name of the corresponding bean 
property if value is not specified. The corresponding bean property (if 
any) must be of type String.

This means the value of 'property' will be the name of the text input 
field - this is the bit we want to become name=fooMap['aCode'].someCode.

The other importent part is the 'indexed' property:

Valid only inside of logic:iterate tag.  


Actually this seemed to also work within the JSTL foreach loop.


If true then name of the html 
tag will be rendered as id[34].propertyName. Number in brackets will 
be generated for every iteration and taken from ancestor logic:iterate tag.

You are using JSTL and have not created a logic:iterate tag so the index 
isn't going to be generated for you.  You could switch to using 
logic:iterate and I think the tags figure out what to call themselves eg

html:form action=
logic:iterate id=beanInMap name=fooMap
someCode: html-el:text name=beanInMap 
property=deptCode indexed=true/br
/logic:iterate
/html:form


I tried the above but it complained that it couldn't find my map (fooMap
in the above example).
Are you using the html:form tag?  All of these tags should be inside one 
so they know what formBean to use.



or use the nested:* tags, which would be something like:

nested:form action=
nested:iterate name=fooMap
someCode: nested:text property=deptCode /br
/nested:iterate
/html-el:form
If you want to use JSTL, you probably have to generate the property name 
yourself:

html:form action=
c:forEach var=beanInMap items=${formBean.fooMap}
someCode: html-el:text 
property=fooMap['${beanInMap.someCode}'].someCode /br
someDescrip:  html-el:text 
property=fooMap['${beanInMap.someDescrip}'].someDescrip /br
br
/c:forEach
/html:form


With the above I end up with the error:

org.apache.jasper.JasperException: An error occurred while evaluating
custom action attribute property with value
departments['${beanInMap.deptCode}'].deptCode: Unable to find a value
for deptCode in object of class java.util.HashMap$Entry using
operator . (null)
Ahh, yes.  That now triggers something I read a while ago.  When JSTL 
gets something out of a map it will be of the type java.util.Map.Entry 
so perhaps try

c:forEach var=beanInMap items=${employeeForm.departments}
  Code:  html-el:text 
property=departments['${beanInMap.key}'].deptCode /
br
  Name:  html-el:text 
property=departments['${beanInMap.key}'].deptName /
br
br
/c:forEach

You will have to use the html-el:text to evaluate the ${beanInMap.key} 
 (at least I hope it tries to evaluate it that way).  If you use 
html:text then it will just treat it as text, essentially looking up 
the departments map with '${beanInMap.key}' instead of the actual key.


the syntax looks like:

c:forEach var=beanInMap items=${employeeForm.departments}
  Code: 
html:text  property=departments['${beanInMap.deptCode}'].deptCode /
br
  Name:  
html:text  property=departments['${beanInMap.deptName}'].deptName /
br
br
/c:forEach 

I've tried all kinds of other combos also and still stumped.

Thanks for the help so far.


Rick Reumann wrote:

Ok this has me stumped...

the down and dirty:

formBean has HashMap called fooMap

fooMap has keys that bring back beans of type BarBean

BarBean has properties someCode , someDescrip 

Now I want to iterate over this map and create the properties based on
the properties in BarBean and be able to update this form which will
then update the underlying BarBeans in the map.
(Ignore the part that I know that's a hassle about the reset method and
making sure Map exist there).
c:forEach var=beanInMap items=${formBean.fooMap}

   someCode: html-el:text property=/br
   someDescrip:  html-el:text property=/br
   br
 
/c:forEach

the text will display fine in the form with:

someCode: html-el:text name=beanInMap property=beanInMap.deptCode /

but when the form submits all the bean property values are null ( in the
reset if it matters for testing i'm just creating a few maps with empty
BarBeans in the map).
I'm stumped.. any help much appreciated.







Re: Using html:options/ tag with multiple=true

2003-06-28 Thread Eva Murray
Hi Wendy,
Thanks so very much for your reply.  It was in fact a big help, and in the
end, helped me to find the solution.

It turned out that the problem was actually with how I was populating the
form jurisdiction field.
Apparently the s.getJurisdictionF() method was returning an array which had
some null entries, and the null entries in the array caused everything to
choke.

I then re-tested with setJurisdiction(String j[])  versus
setJurisdiction(String [ ]j) and everthing worked just fine either way.
None the less, I'll keep the setJurisdiction(String [] j) to make sure I
don't run into other problems.


The UpdateAction Class
public ActionForward perform(
TestPageForm testPageForm = (TestPageForm) form;
Service s = (Service) ServiceUtility.getServiceByPk(id);
testPageForm.setJurisdiction(s.getJurisdictionF());
}

Thanks again
Eva

- Original Message -
From: Wendy Smoak [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 10:55 AM
Subject: RE: Using html:options/ tag with multiple=true


 Eva wrote:
  I want the form to be prepopulated with the data which
  I retrieved from the database, and those items previously
  selected by the user highlighted .  I am unable to do this
  for the multi-select drop down lists.

 I vote for the old type of get and set methods do not match problem:

 public String[] getJurisdiction() { return this.jurisdiction; }
 public void setJurisdiction(String j[]) { this.jurisdiction = j; }

 I would try using setJurisdiction( String[] j) instead.

 The Introspection/Reflection process is *very* picky when it comes to
 recognizing JavaBeans properties.  Usually it's someone mixing String and
 int properties, but I can see how it would be confused by String j[] and
 String[] as well.

 --
 Wendy Smoak, Arizona State University
 BTW, Lucifer just called and he needs a pair of ice skates :-)
 James Turner in struts-dev, voting to release Struts 1.1 Final





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



RE: jgs Quartz error

2003-06-28 Thread Holman, Cal
I had a problem until I added all three to WEB-INF/lib in my .war.  I have a simple 
web app in a war under tomcat.  Sorry no help

Cal

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 13:38
To: [EMAIL PROTECTED]
Subject: RE: jgs Quartz error

I have all 3 jar files within my WAR. I have not added them anywhere else.
I have an EAR with a common.jar, ejbs.jar and yoursos.war. All 3 jars in the
war.

Should I be adding them in the classpath somewhere else?
If so, where do I add them, and why is having them in the WAR not good
enough.

Thanks in advance sooo much for your help. This has been kicking my
butt!


---
Thanks...
Mick Knutson
---





From: Holman, Cal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sat, 28 Jun 2003 12:46:47 -0400

Do you have the jgs-struts-0.1d.jar in your classpath?  jgs-quartz-0.1d.jar
needs it.

Cal

http://www.calandva.com/Last update 04/26/03

??Email: [EMAIL PROTECTED]
??Phone:706 322-4963
??Snail Mail: 1001 Brookwood Ave   Columbus, GA 31906

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 01:35
To: Struts Users Mailing List
Subject: Re: jgs Quartz error

 21:30:28,495 INFO  [TilesPlugin] Tiles definition factory loaded for
 module ''.
 21:30:28,511 ERROR [MainDeployer] could not start deployment:
 file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
 sos-app.ear/35.yoursos-app.ear-contents/yoursos-web-application.war
 java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn

I don't understand this: there's a log message from the TilesPlugin
saying that it has configured, followed immediately by a message
saying that org.apache.struts.action.PlugIn could not be found?

Still, from reading the stack trace, I don't see any problems that
look related to the QuartzPlugIn.  This looks like a different stack
trace than anything you posted last time this problem came up.

This is out of my league -- it seems like something unique to JBoss
and your deployment environment.  At least, we have the QuartzPlugIn
running in a production app here, and from a little googling, it
seems like one or two other folks are using it OK.

Wish I could be of more help,
 Joe

--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
If nature worked that way, the universe would crash all the time.
 --Jaron Lanier

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


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

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


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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

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

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



RE: jgs Quartz error

2003-06-28 Thread Mick Knutson
Sorry, I ment to say they are all 3 in my Web-Inf/lib directory.
But now they are also in my EAR also. But then I still get this error.


---
Thanks...
Mick Knutson
---




From: Holman, Cal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sat, 28 Jun 2003 20:51:14 -0400
I had a problem until I added all three to WEB-INF/lib in my .war.  I have 
a simple web app in a war under tomcat.  Sorry no help

Cal

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 13:38
To: [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
I have all 3 jar files within my WAR. I have not added them anywhere else.
I have an EAR with a common.jar, ejbs.jar and yoursos.war. All 3 jars in 
the
war.

Should I be adding them in the classpath somewhere else?
If so, where do I add them, and why is having them in the WAR not good
enough.
Thanks in advance sooo much for your help. This has been kicking my
butt!
---
Thanks...
Mick Knutson
---




From: Holman, Cal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sat, 28 Jun 2003 12:46:47 -0400

Do you have the jgs-struts-0.1d.jar in your classpath?  
jgs-quartz-0.1d.jar
needs it.

Cal

http://www.calandva.com/Last update 04/26/03

??Email: [EMAIL PROTECTED]
??Phone:706 322-4963
??Snail Mail: 1001 Brookwood Ave   Columbus, GA 31906

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 01:35
To: Struts Users Mailing List
Subject: Re: jgs Quartz error

 21:30:28,495 INFO  [TilesPlugin] Tiles definition factory loaded for
 module ''.
 21:30:28,511 ERROR [MainDeployer] could not start deployment:
 
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
 sos-app.ear/35.yoursos-app.ear-contents/yoursos-web-application.war
 java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn

I don't understand this: there's a log message from the TilesPlugin
saying that it has configured, followed immediately by a message
saying that org.apache.struts.action.PlugIn could not be found?

Still, from reading the stack trace, I don't see any problems that
look related to the QuartzPlugIn.  This looks like a different stack
trace than anything you posted last time this problem came up.

This is out of my league -- it seems like something unique to JBoss
and your deployment environment.  At least, we have the QuartzPlugIn
running in a production app here, and from a little googling, it
seems like one or two other folks are using it OK.

Wish I could be of more help,
 Joe

--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
If nature worked that way, the universe would crash all the time.
 --Jaron Lanier

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


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

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


_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Learn more about Paymentech's payment processing services at 
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may 
not print, distribute, or copy this message or any attachments.  If you 
have received this communication in error, please notify the sender by 
return e-mail and delete this message and any attachments from your 
computer.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  

Re: nested bean parameters

2003-06-28 Thread K.C. Baltz
What kind of output are you getting?  It is possible something is wrong 
with the logic:iterate rather than the bean:write?



Mick Knutson wrote:

I have a Collection of AlertDto's. Each AlertDto has a method called 
getStartingLocation() that returns a LocationDto. That LocationDto has 
a method called getLocationTitle().

How, in a JSP can I get the locationTitle?

I have tried:

logic:iterate id=alert name=alertListForm property=userAlerts
bean:write name=alert property=startingLocation.locationId /
/logic:iterate


---
Thanks...
Mick Knutson
---
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


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


RE: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Steve Raeburn

 -Original Message-
 From: Jing Zhou [mailto:[EMAIL PROTECTED]
 Sent: June 28, 2003 3:46 PM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: Sending a Redirect Directly from an Action Class


 If you means the new redirected request to the page /somePage.jsp is
 subject to container managed security because a custom action in the page
 perform the security checking, that is not called container manager
 security.
 It is the old Model 1 things.


Nope. I mean container managed security, defined in web.xml


 It is a good example. I did heard some customers mentioned it somewhere.
 But displaying *right* URL on the address bar is a more client issue.
 Has any body tried to use Java scripts to change the URL to a desired
 string? For me, I just turn off the address bar. Of course, it is not a
 general solution to it. Any other examples?


Javascript and hiding the address bar are unneccesary, inelegant and are
easily broken. By using a redirect you don't need to resort to such tactics.
I don't think anyone has ever suggested that redirects should not be used.
They're just another tool in the box.

Steve



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



Re: nested bean parameters

2003-06-28 Thread Mick Knutson
I tried it with an uppercase LocationId, and got this error:
[ServletException in:/WEB-INF/default/body/alert.list.jsp] No getter method 
for property StartingLocation.LocationId of bean alert' 
javax.servlet.jsp.JspException: No getter method for property 
StartingLocation.LocationId of bean alert at 
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:907) at 
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:286) at 
org.apache.jsp.alert$list$jsp._jspService(alert$list$jsp.java:419) at

Or I tried with lowercase and got almost the same erro but I posted the full 
error here...
This is the error I get:

[ServletException in:/WEB-INF/default/body/alert.list.jsp] No getter method 
for property StartingLocation.locationId of bean alert' 
javax.servlet.jsp.JspException: No getter method for property 
StartingLocation.locationId of bean alert at 
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:907) at 
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:286) at 
org.apache.jsp.alert$list$jsp._jspService(alert$list$jsp.java:419) 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.java:201) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121) at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) 
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) 
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) 
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) 
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at 
org.apache.jsp.default$jsp._jspService(default$jsp.java:381) 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.java:201) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129) at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) 
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254) 
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) 
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) 
at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40) 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) 
at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) 
at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:48) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) 
at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) 
at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) at 

Re: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Jing Zhou

- Original Message - 
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 9:45 PM
Subject: RE: Sending a Redirect Directly from an Action Class



  -Original Message-
  From: Jing Zhou [mailto:[EMAIL PROTECTED]
  Sent: June 28, 2003 3:46 PM
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: Sending a Redirect Directly from an Action Class
 

  If you means the new redirected request to the page /somePage.jsp is
  subject to container managed security because a custom action in the
page
  perform the security checking, that is not called container manager
  security.
  It is the old Model 1 things.
 

 Nope. I mean container managed security, defined in web.xml

If you mean the page /somePage.jsp can be put under a security
constraint in web.xml and you can redirect to it, that is not going to work
in theory. This is the original point why the page can not be protected
by the security constraint when the method
response.sendRedirect(/somePage.jsp) is called and
the call response.sendRedirect(/someAction.do) is one
of solutions to it.


 
  It is a good example. I did heard some customers mentioned it somewhere.
  But displaying *right* URL on the address bar is a more client issue.
  Has any body tried to use Java scripts to change the URL to a desired
  string? For me, I just turn off the address bar. Of course, it is not a
  general solution to it. Any other examples?
 

 Javascript and hiding the address bar are unneccesary, inelegant and are
 easily broken. By using a redirect you don't need to resort to such
tactics.
 I don't think anyone has ever suggested that redirects should not be used.
 They're just another tool in the box.

You use it as you *need* it, not because it is another tool in the box.
What I am searching for is some compelling business requirements
that the redirect within a web application is *really* necessary. I hope
some
one could provide more hints.


 Steve



Jing

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




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



RE: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Steve Raeburn
 If you mean the page /somePage.jsp can be put under a security
 constraint in web.xml and you can redirect to it, that is not
 going to work in theory. This is the original point why the
 page can not be protected by the security constraint when the method
 response.sendRedirect(/somePage.jsp) is called and
 the call response.sendRedirect(/someAction.do) is one
 of solutions to it.

You are mistaken. Container managed security can protect any resource in the
web application, including JSPs. Please don't think I'm advocating calling
JSPs directly - I'm not. But the reasons you shouldn't do not include
anything to do with CMS.

 You use it as you *need* it, not because it is another tool in the box.
 What I am searching for is some compelling business requirements
 that the redirect within a web application is *really* necessary. I hope
 some one could provide more hints.

That's what I meant. You use the tool that's most appropriate and redirects
are *one* of many tools available to us. It would be wrong to use it for
everything but it would be equally wrong to avoid using it where it is
appropriate.

Anyway this has strayed well away from Struts. The original question was
whether to use sendRedirect in the action or use an ActionForward. That
question has been answered.

Steve



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



Re: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Jing Zhou
- Original Message - 
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 11:42 PM
Subject: RE: Sending a Redirect Directly from an Action Class


  If you mean the page /somePage.jsp can be put under a security
  constraint in web.xml and you can redirect to it, that is not
  going to work in theory. This is the original point why the
  page can not be protected by the security constraint when the method
  response.sendRedirect(/somePage.jsp) is called and
  the call response.sendRedirect(/someAction.do) is one
  of solutions to it.

 You are mistaken. Container managed security can protect any resource in
the
 web application, including JSPs. Please don't think I'm advocating calling
 JSPs directly - I'm not. But the reasons you shouldn't do not include
 anything to do with CMS.

When you said This is not true. to the original concerns regarding
response.sendRedirect(/somePage.jsp) method (which implies a
direct call to the JSP page) and now you are not
calling JSP directly, I don't get you. Of course, we know the security
contraints can protect any thing. The problem is when a page is
protected, the redirect will fail.


  You use it as you *need* it, not because it is another tool in the box.
  What I am searching for is some compelling business requirements
  that the redirect within a web application is *really* necessary. I hope
  some one could provide more hints.

 That's what I meant. You use the tool that's most appropriate and
redirects
 are *one* of many tools available to us. It would be wrong to use it for
 everything but it would be equally wrong to avoid using it where it is
 appropriate.

 Anyway this has strayed well away from Struts. The original question was
 whether to use sendRedirect in the action or use an ActionForward. That
 question has been answered.

 Steve



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




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



RE: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Steve Raeburn

 When you said This is not true. to the original concerns regarding
 response.sendRedirect(/somePage.jsp) method (which implies a
 direct call to the JSP page) and now you are not
 calling JSP directly, I don't get you. Of course, we know the security
 contraints can protect any thing. The problem is when a page is
 protected, the redirect will fail.

You said, The JSP page somePage.jsp could not be protected by the standard
security constraints. That's what I was referring to when I said, This is
not true.

If you redirect to /someAction.do and that is protected by security
contraints then the exact same error would occur aswhen you redirect to
/somePage.jsp. So, purely in terms of security contraints, there is no
difference between redirecting to the action or the jsp. As I said, that
does not mean that I advocate directly accessing JSPs, just that the reasons
for not doing so have nothing to do with redirects or container security.

Hope that is clearer

Steve





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



Re: Sending a Redirect Directly from an Action Class

2003-06-28 Thread Jing Zhou

- Original Message - 
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 29, 2003 12:33 AM
Subject: RE: Sending a Redirect Directly from an Action Class



  When you said This is not true. to the original concerns regarding
  response.sendRedirect(/somePage.jsp) method (which implies a
  direct call to the JSP page) and now you are not
  calling JSP directly, I don't get you. Of course, we know the security
  contraints can protect any thing. The problem is when a page is
  protected, the redirect will fail.

 You said, The JSP page somePage.jsp could not be protected by the
standard
 security constraints. That's what I was referring to when I said, This
is
 not true.

 If you redirect to /someAction.do and that is protected by security
 contraints then the exact same error would occur aswhen you redirect to
 /somePage.jsp. So, purely in terms of security contraints, there is no
 difference between redirecting to the action or the jsp. As I said, that
 does not mean that I advocate directly accessing JSPs, just that the
reasons
 for not doing so have nothing to do with redirects or container security.

When I talked the use of the redirect to /someAction.do, it doesn't imply it
is
protected by the security constraints. Normal pratice of the MVC model is
that
most of JSP pages should be protected while actions should not. Because
actions have internal logics to perform security checking,
that is a common sense (If you protect all of your actions, /*.do, how
do your end users submit web forms? :-)

Jing


 Hope that is clearer

 Steve





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




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