resource properties not found

2002-11-07 Thread Cindy Horn at SF x4874
I have a resource property defined in my web.xml file as follows:

servlet
...
   init-param
  param-nameapplication/param-name
  param-valueVCSCResources_en_US.properties/param-value
/init-param
...
  /servlet

This properties file is in the application jar file at the root.  And I'm
trying to access a property as follows in my jsp:

bean:message key=container.search.event/

I get the following error:

javax.servlet.jsp.JspException: Missing message for key
container.search.event
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at
jsp_servlet._st.__ContainerList._jspService(__ContainerList.java:205)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:241)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

What else needs to be condigured?  What else can I look at to resolve this
issue?

Thanks,

Cindy

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




html:link with multiple parameters

2002-11-04 Thread Cindy Horn at SF x4874
Using html:link and java.util.Map, how do I specify more than one
parameter?  I looked at the user's guide and I'm still unclear on how to do
this.

Thanks in advance,

Cindy Horn
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: html:link with multiple parameters

2002-11-04 Thread Cindy Horn at SF x4874
The information I've found in these threads does not provide adequate
information on how to do this dynamically.  If I use the form to create a
map, it doesn't know which item I'm iterating through in the list.  The link
I'm using now is this:

html:link page=/shipmentNavigation.do paramId=equipmentNumber
paramName=container paramProperty=equipmentNumber

inside this iterator:

logic:iterate id=container name=listToBrowse
type=com.matson.shipment.ejb.ShipmentContainerValue 

I would like to add another parameter to my link to say
action=containerDetail.

Should I use jstl c tag as follows:

jsp:useBean id=paramMap class=java.util.HashMap/
c:set target=${paramMap} property=action value=containerDetail/
c:set target=${paramMap} property=equipmentNumber
value=${container.equipmentNumber}/
html:link forward=foo name=paramMap/

Is it going to know what ${container.equipmentNumber} is?  I'm asking now
before I configure my app server for JSTL.  

Thanks,

Cindy

-Original Message-
From: Kris Schneider [mailto:kris;dotech.com]
Sent: Monday, November 04, 2002 12:37 PM
To: Struts Users Mailing List
Subject: RE: html:link with multiple parameters


Uh, battled? I hope that's not how it came off, especially if I got my butt 
kicked ;-).

Quoting Sri Sankaran [EMAIL PROTECTED]:

 This was just battled at quite some length earlier today.  Please see
 http://marc.theaimsgroup.com/?l=struts-userm=103639896111848w=2.
 
 Sri
 
 -Original Message-
 From: Cindy Horn at SF x4874 [mailto:CHorn;matson.com] 
 Sent: Monday, November 04, 2002 3:09 PM
 To: Struts (E-mail)
 Subject: html:link with multiple parameters
 
 
 Using html:link and java.util.Map, how do I specify more than one
 parameter?  I looked at the user's guide and I'm still unclear on how to
do
 this.
 
 Thanks in advance,
 
 Cindy Horn
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: html:link with multiple parameters

2002-11-04 Thread Cindy Horn at SF x4874
Maybe a better way to solve my issue is to have different actions... I'm
trying to use one action for all navigation requests.  Either way, I would
still like to know if jstl would understand

jsp:useBean id=paramMap class=java.util.HashMap/
c:set target=${paramMap} property=shipmentNumber
value=${container.shipmentNumber}/
c:set target=${paramMap} property=equipmentNumber
value=${container.equipmentNumber}/
html:link forward=foo name=paramMap/

inside this iterator:

logic:iterate id=container name=listToBrowse
type=com.matson.shipment.ejb.ShipmentContainerValue 

Thanks,

Cindy


-Original Message-
From: Cindy Horn at SF x4874 [mailto:CHorn;matson.com]
Sent: Monday, November 04, 2002 3:02 PM
To: 'Struts Users Mailing List'
Subject: RE: html:link with multiple parameters


The information I've found in these threads does not provide adequate
information on how to do this dynamically.  If I use the form to create a
map, it doesn't know which item I'm iterating through in the list.  The link
I'm using now is this:

html:link page=/shipmentNavigation.do paramId=equipmentNumber
paramName=container paramProperty=equipmentNumber

inside this iterator:

logic:iterate id=container name=listToBrowse
type=com.matson.shipment.ejb.ShipmentContainerValue 

I would like to add another parameter to my link to say
action=containerDetail.

Should I use jstl c tag as follows:

jsp:useBean id=paramMap class=java.util.HashMap/
c:set target=${paramMap} property=action value=containerDetail/
c:set target=${paramMap} property=equipmentNumber
value=${container.equipmentNumber}/
html:link forward=foo name=paramMap/

Is it going to know what ${container.equipmentNumber} is?  I'm asking now
before I configure my app server for JSTL.  

Thanks,

Cindy

-Original Message-
From: Kris Schneider [mailto:kris;dotech.com]
Sent: Monday, November 04, 2002 12:37 PM
To: Struts Users Mailing List
Subject: RE: html:link with multiple parameters


Uh, battled? I hope that's not how it came off, especially if I got my butt 
kicked ;-).

Quoting Sri Sankaran [EMAIL PROTECTED]:

 This was just battled at quite some length earlier today.  Please see
 http://marc.theaimsgroup.com/?l=struts-userm=103639896111848w=2.
 
 Sri
 
 -Original Message-
 From: Cindy Horn at SF x4874 [mailto:CHorn;matson.com] 
 Sent: Monday, November 04, 2002 3:09 PM
 To: Struts (E-mail)
 Subject: html:link with multiple parameters
 
 
 Using html:link and java.util.Map, how do I specify more than one
 parameter?  I looked at the user's guide and I'm still unclear on how to
do
 this.
 
 Thanks in advance,
 
 Cindy Horn
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
I have a jsp with a list of shipment data where hrefs are defined on the
equipment keys.  I would like the client to click on the link to drill down
from the list to a detailed jsp.  If I do the following:

a href=/vcsc/shipmentTracking.do?equipmentNumber=MATU33445

I get a 404 url not found.  How do I get the link to go to the
shipmentTracking Action?  Do I need to create a form on the jsp and use the
onClick javascript to set the action of the form?

Thanks in advance,

Cindy

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
I've tried the html:link tag and I get a 500:

10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] GET
/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1 500 53 

This is the tag I'm using:

html:link href=/vcsc/shipmentTracking.do paramId=equipmentNumber
paramName=container paramProperty=equipmentNumber
bean:write name=container property=equipmentNumber//html:link

I have debugging lines in my Action class and those are not getting invoked.
Does the action class not accept a GET?  

-Original Message-
From: Penubothu, Rajani [mailto:rpenubothu;epocrates.com]
Sent: Wednesday, October 30, 2002 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: Re: href to perform an action


You might want to checkout html:link/ tag. Using that tag, you need to use
attributes page=/vcsc/shipmentTracking.do. You can even pass parameters
using other attributes like paramProperty,paramId and paramName etc

Thanks,Rajani. 



Cindy Horn at SF x4874 [EMAIL PROTECTED] wrote in message
news:769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e...
 I have a jsp with a list of shipment data where hrefs are defined on the
 equipment keys.  I would like the client to click on the link to drill
down
 from the list to a detailed jsp.  If I do the following:
 
 a href=/vcsc/shipmentTracking.do?equipmentNumber=MATU33445
 
 I get a 404 url not found.  How do I get the link to go to the
 shipmentTracking Action?  Do I need to create a form on the jsp and use
the
 onClick javascript to set the action of the form?
 
 Thanks in advance,
 
 Cindy
 
 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
Then why would this not work?  The first line I have in my perform method is
a debug line and this is not showing up.  It's behaving as though it can not
find the action class.  Here is my definition in the config file:

action
  path=/shipmentTracking
  type=com.matson.shipment.web.ShipmentTrackingAction
  name=shipmentTrackingForm
  scope=session


-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Wednesday, October 30, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


Actions do accept GET requests.


From: Cindy Horn   at SF   x4874 [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 12:25:32 -0800

I've tried the html:link tag and I get a 500:

10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] GET
/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1 500 53

This is the tag I'm using:

html:link href=/vcsc/shipmentTracking.do paramId=equipmentNumber
paramName=container paramProperty=equipmentNumber
bean:write name=container property=equipmentNumber//html:link

I have debugging lines in my Action class and those are not getting 
invoked.
Does the action class not accept a GET?

-Original Message-
From: Penubothu, Rajani [mailto:rpenubothu;epocrates.com]
Sent: Wednesday, October 30, 2002 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: Re: href to perform an action


You might want to checkout html:link/ tag. Using that tag, you need to 
use
attributes page=/vcsc/shipmentTracking.do. You can even pass parameters
using other attributes like paramProperty,paramId and paramName etc

Thanks,Rajani.



Cindy Horn at SF x4874 [EMAIL PROTECTED] wrote in message
news:769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e...
  I have a jsp with a list of shipment data where hrefs are defined on the
  equipment keys.  I would like the client to click on the link to drill
down
  from the list to a detailed jsp.  If I do the following:
 
  a href=/vcsc/shipmentTracking.do?equipmentNumber=MATU33445
 
  I get a 404 url not found.  How do I get the link to go to the
  shipmentTracking Action?  Do I need to create a form on the jsp and use
the
  onClick javascript to set the action of the form?
 
  Thanks in advance,
 
  Cindy
 
  --
  To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Iterate and Embedded Value Objects

2002-08-09 Thread Cindy Horn at SF x4874

I'm working with a list of value objects and using the iterator tag.  This
works perfectly until I have to access another value object within the
parent value object:

   bean:define id=listToBrowse name=shipmentTrackingForm
property=bookingList type=java.util.Collection scope=session/
logic:iterate id=shipmentDetail name=listToBrowse
type=com.matson.shipment.ejb.ShipmentDetailValue
bean:define id=detail name=shipmentDetail
type=com.matson.shipment.ejb.ShipmentDetailValue toScope=page/
!-- This is the line that's causing me problems --
bean:define id=header name=detail property=shipmentHeader
type=com.matson.shipment.ejb.ShipmentHeaderValue scope=page
toScope=page/

The last line above where I try to define a bean causes the following error:

java.lang.NullPointerException
at weblogic.utils.UnsyncHashtable.put(UnsyncHashtable.java:272)
at
weblogic.servlet.jsp.PageContextImpl.setAttribute(PageContextImpl.java:125)
at
weblogic.servlet.jsp.PageContextImpl.setAttribute(PageContextImpl.java:150)
at
org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:210)
at
jsp_servlet._st.__BookingsOnly._jspService(__BookingsOnly.java:263)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:241)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

The value object ShipmentHeaderValue is not truely a bean.  It's generated
with EJBGen and does NOT have a no-arg constructor.  Neither does the
ShipmentDetailValue, but it works fine with the iteration tag.  Why would
the detail value object work and the header not work.  I'm hoping to still
use this graph.  I would hate to have to make it a flat object.  Please
advise.  

Thanks,

Cindy

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