Re: How to redirect to "http://www.cnn.com" from Struts Action?

2003-06-13 Thread Doug Bryant
I believe this will work

declare this forward as a global or local forward
http://www.cnn.com"; redirect="true"/> 

from an action do: return mapping.findForward("cnn")

or from a jsp call   (has to be global for
jsp one to work.

Hope this helps.

Doug



On Fri, 2003-06-13 at 15:46, J. Jason Zhou wrote:
> It seems Struts ALWAYS prefix myapp context so it becomes
> 
> /myapp/http://www.cnn.com
> 
> --
> Best Regards,
> 
> J. Jason Zhou
> Business Intelligence Platform Division (BIP), R & D,
> SAS Institute, 100 SAS Campus Dr.
> Cary, North Carolina 27513-8617
> Voice: 919-531-0568(O)
> Email: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



Re: struts based help system?

2003-06-09 Thread Doug Bryant
we just did a custom tag.  Passed in an parameter to tag such as,
"Shipping".  The tag would then go to the server and lookup the mapping
for what should be displayed for that particular topic, say
"/requestorShipping.jsp" .  Our mapping is just a simple property file. 
It could just as easily be a database lookup, xml file, etc.

Hope this helps.  

Doug

On Mon, 2003-06-09 at 10:05, Ittay Dror wrote:
> Hello,
> 
> Does anybody know of a struts based help system? If not, any other
> server-side (meaning the pages are rendered on request) help system
> framework?
> 
> Thank you,
> Ittay
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



RE: validator: how to validate if either of two fields is presentandvalid

2003-06-05 Thread Doug Bryant
Perfect!  Thanks James.  That's exactly what I was looking for.

Doug

On Wed, 2003-06-04 at 14:16, James Turner wrote:
> Check out the requiredif validation.  It's even in the newbie FAQ now.
> 
> James
> 
> > -Original Message-
> > From: Doug Bryant [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 11:35 AM
> > To: Struts Users Mailing List
> > Subject: validator: how to validate if either of two fields 
> > is present andvalid
> > 
> > 
> > we have a form we are displaying to the user.  depending on 
> > the permissions the user has, they are required to either 
> > fill out a "requiredDeliveryDate" or "daysAro"
> > 
> > Depending on what permissions you have, you must fill out one 
> > or the other and you must fill in either a date or an integer 
> > value depending on the field.
> > 
> > We are currently using validator for the rest of the app (1.1 rc1).
> > 
> > How can we achive this validation using validator?  
> > 
> > Writing a custom validate method does not seem to be a good 
> > solution because you can only validate one field at a time.
> > 
> > We thought about extending 
> > org.apache.struts.validator.DynaValidatorForm, overriding the 
> > validate method,  validating everything we can using 
> > validator and coding the rest, but it seems far from ideal.
> > 
> > Does anyone have any suggestions or has anyone ever run 
> > across this type of problems before.
> > 
> > Thanks for any suggestions.
> > 
> > Doug
> > 
> > 
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



validator: how to validate if either of two fields is present andvalid

2003-06-05 Thread Doug Bryant
we have a form we are displaying to the user.  depending on the
permissions the user has, they are required to either fill out a
"requiredDeliveryDate" or "daysAro"

Depending on what permissions you have, you must fill out one or the
other and you must fill in either a date or an integer value depending
on the field.

We are currently using validator for the rest of the app (1.1 rc1).

How can we achive this validation using validator?  

Writing a custom validate method does not seem to be a good solution
because you can only validate one field at a time.

We thought about extending
org.apache.struts.validator.DynaValidatorForm, overriding the validate
method,  validating everything we can using validator and coding the
rest, but it seems far from ideal.

Does anyone have any suggestions or has anyone ever run across this type
of problems before.

Thanks for any suggestions.

Doug


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



RE: out-of-memory exp

2003-06-04 Thread Doug Bryant
it's weblogic, not struts.  it appears that hot-deploy does not free up
resources upon redeploying an application.  

we are working with a fairly large application.  Most of the developers
here have resorted to restarting the server between redeploys because it
is almost guaranteed to hose up after a couple of minutes of running on
a redeployed app.

Doug



On Tue, 2003-06-03 at 10:26, Nail, Evan Burke wrote:
> nagi, 
>  
> Besides the previously mentioned errors, I sometimes get this error when
> I'm working in my development environment and I have changed a class and
> not restarted my server. 
>  
> I have not used 7.1 much so I don't know if this could be your error ,
> we're on 6.1 and see it occasionally although normally we get scope
> errors when using struts. There might be config methods to help the
> classloader out in these cases ..not sure. 
>  
> 
> bn
>  
> 
> 
> 
> -Original Message-
> From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 9:15 AM
> To: [EMAIL PROTECTED]
> Subject: out-of-memory exp
> 
> 
> 
> hi,
> i am using struts 1.1 with ejb on weblogic7.1
>  
> i  frequently get this error while working with the web application
>  
><101017>
> <[ServletContext(id=4550717,name=cwbweb,context-path=/cwbweb)] Root
> cause of ServletException
> java.lang.OutOfMemoryError
> <>
> no idea why this comes
>  
> any help TIA
>  
> --nagi
>  
> Nagendra Kumar O V S
> Member Technical Staff
> Ikigo India Private Ltd.
> 470-B, Road No. 36,
> Jubilee Hills,
> Hyderabad 500033
> Contact(O): 23544671
> Cell: 98482-41789
> 
>   
> 
>  <http://www.incredimail.com/redir.asp?ad_id=309&lang=9>   IncrediMail -
> Email has finally evolved -
> <http://www.incredimail.com/redir.asp?ad_id=309&lang=9> Click Here 
> 
> 
> 
> **
> This e-mail is the property of Enron Corp. and/or its relevant affiliate
> and may contain confidential and privileged material for the sole use of
> the intended recipient (s). Any review, use, distribution or disclosure
> by others is strictly prohibited. If you are not the intended recipient
> (or authorized to receive for the recipient), please contact the sender
> or reply to Enron Corp. at [EMAIL PROTECTED] and
> delete all copies of the message. This e-mail (and any attachments
> hereto) are not intended to be an offer (or an acceptance) and do not
> create or evidence a binding and enforceable contract between Enron
> Corp. (or any of its affiliates) and the intended recipient or any other
> party, and may not be relied on by anyone as the basis of a contract by
> estoppel or otherwise. Thank you. 
> **
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



Re: Iplanet+tomcat+struts

2003-02-27 Thread Doug Bryant
We had to make IPlanet 4.1 the front end for weblogic.  We just made
iplanet proxy for weblogic.  you should be able to do the same thing
with tomcat.  All the configuration is done on the iplanet server.

the supplied link is for weblogic, but most should be applicable to
tomcat.  It should atleast get you started.

http://edocs.bea.com/wls/docs61/adminguide/nsapi.html

Doug


On Thu, 2003-02-27 at 04:13, Dinesh Samson J wrote:
> Greetings
>  
> May be this is not a right place to post this message, but I couldn't
> get proper documentation for it.
>  
> I need to configure iplanet web server 4.1 to run with tomcat 4.1.18
> both on Solaris 8.
> Can anyone tell me where I can get the document for configuring iplanet.
> 
> If you have done it, kindly send me the configuration to do so.
>  
> regards,
>  
> Dinesh Samson J
>  
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



Re: html:errors - how do you make a bulleted error list

2002-10-10 Thread Doug Bryant

My error messages do show up.  They show up as one long string. For
instance, they would show up like "Text of error1. Text of error2. Text
of error3"

I would like to get this resolved without putting  tags around the
messages themselves.  

thanks, Doug

On Wed, 2002-10-09 at 17:37, David Graham wrote:
> Do any of your error messages show up, or just the header and footer?
> It will only print the prefix if there are errors to display.
> Dave
> 
> 
> >From: Doug Bryant <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: html:errors - how do you make a bulleted error list
> >Date: 09 Oct 2002 17:14:14 -0400
> >
> >Hello,
> >
> >We are trying to display a list of errors at the top of a page.  We are
> >trying to make each error bulleted, but are running into difficulty.
> >
> >I looked through the 1.1b2 examples and saw that there were a couple of
> >examples using "errors.prefix" and "errors.suffix" to wrap errors in
> >bullet points.  However, it's not displaying what I defined there.
> >
> >Does this feature work?  What am I doing wrong?  Below is what I have
> >defined in my application.properties.  The errors.header and
> >errors.footer show up properly.   We are using 1.1 beta 2 struts
> >release.
> >
> >Thanks for any help.
> >
> >Doug
> >
> >errors.header=
> >errors.footer=
> >
> >errors.prefix=
> >errors.suffix=
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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




html:errors - how do you make a bulleted error list

2002-10-09 Thread Doug Bryant

Hello,

We are trying to display a list of errors at the top of a page.  We are
trying to make each error bulleted, but are running into difficulty.

I looked through the 1.1b2 examples and saw that there were a couple of
examples using "errors.prefix" and "errors.suffix" to wrap errors in
bullet points.  However, it's not displaying what I defined there.

Does this feature work?  What am I doing wrong?  Below is what I have
defined in my application.properties.  The errors.header and
errors.footer show up properly.   We are using 1.1 beta 2 struts
release.

Thanks for any help.

Doug

errors.header=
errors.footer=

errors.prefix=
errors.suffix=




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How do I forward/redirect to a dynamic url with parameters

2002-09-30 Thread Doug Bryant

How do I redirect to a dynamic url with parameters? 

I need to forward to some url with a query string that is dynamically
created.  The url I forward to can change and I also need to create that
dynamically.  Also, the url I need to forward to is external to our
system.

I have tried dynamically creating an ActionForward and setting its
parameters, but it just blows up with an exception.  I have also tried
forwarding to a redirector servlet on our system, but have had no
success with that either.  Is there a proper "struts" way to do this. 

Thanks, Doug




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Status of Validator not validating sub-applications bug (#10348)

2002-09-12 Thread Doug Bryant

Does anyone know the status of the bug about the validator not
validating sub-applications?

I noticed that bug mentioned in the 1.1 beta 2 release notes.  We have
developed an application using 1.1 and are getting ready to implement
page level validation for our sub-applications.

If no fix is in place or a fix will not be in place any time soon, could
you suggest workaround for the bug or a place to start looking at the
source.

I should mention that we are using dynaforms so there is not validate
method on the action to override.

Thanks very much in advance.

Doug






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems with file upload - Urgent Please

2002-09-04 Thread Doug Bryant

We had the same problem running a nightly struts build.  We upgraded to
1.1 beta 2 and the problem disappeared.  

It appeared to be a problem specifying the form as multi-part.

Doug

On Wed, 2002-09-04 at 15:58, Venkateswaran Muthuswamy wrote:
> Hi,
> I am working in a project using struts and weblogic. The Action is called 
> fine, and the file (Uploading file) gets written to disk - however when  
> forwarding to the display I get the Following Exception
> 
><[WebAppServletContext(2292995)] 
> Servlet failed with ServletException
> javax.servlet.ServletException: Original request not available
> at 
> 
>weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:115)
> at 
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:972)
> at 
> 
>org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:408)
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> 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(WebAppServletContext.java:2546)
> at 
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> >
> 
> 
> Can anybody help me. This is urgent please.
> 
> Ever Friendly,
> M.Venkateswaran
> 
> "A life’s worth, in the end, isn’t measured in hours, or dollars. It’s 
> measured by the amount of love exchanged along the way"
> 
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: