Re: RE: Stuts forwarding does not work

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



RE: Stuts forwarding does not work

2005-01-13 Thread David G. Friedman
Alex,

Check the Javadocs because the perform() method is GONE in Struts v1.2.4,
deprecated in v1.1, and normal for the old v1.0.  So, what version are you
using?  Probably v1.2.4 since defining perform() like that will never be
called resulting in a standard dummy execute() method being invoked which,
TADA, returns a blank page by default!

Regards,
David

P.S. Check your computer's time.  It looks like you sent your messages over
a day ahead of us.  Considering daylight savings time only allows for a 24
hour window, I'm guessing your computer's (whichever one you send email
from) time might be off just a little, a tad, a pinch, a smidgeon, etc.

-Original Message-
From: Alex Kravets [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 22, 2005 9:51 AM
To: Struts Users Mailing List
Subject: Re: Stuts forwarding does not work


Actually now it works. I moved everything to another application name
and it started working. But, another problem. When I submit my page I
get a blank page. Action class does not do anything, just forwards to
success page. Here is the action mapping in struts-config.xml:



















And ActionClass:

package app;

import java.io.IOException;
import java.util.Vector;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
//import com.kwi.DBDriver;


public final class ExecuteQueryAction extends Action {

public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

// Obtain username and password from web tier
String sqlQuery = ((ExecuteQueryForm) form).getSQLQuery();

// Return success
return mapping.findForward("success");

}

} // End LogonAction

The same blank screen after submit happens when I deploy and run
application logon.war from Husted's Struts In Action source code. So may
be my struts installation is wrong?

thanks a lot,
Alex

Amit Gupta wrote:

>What are you writing in your index.jsp?
>
>
>Amit Gupta
>Mobile: 91-9891062552
>Yahoo IM: amitguptainn
>MSN IM : amitguptainn
>-Original Message-
>From: Alex Kravets [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 13, 2005 1:11 AM
>To: user@struts.apache.org
>Subject: Stuts forwarding does not work
>
>I am trying to redirect from index.jsp to another page but no luck. I
>get this error:
>
>
>org.apache.jasper.JasperException: Exception forwarding for name
queryInput: org.apache.jasper.JasperException
>   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
>   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
>   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
>   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
>   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
>   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
>   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
>   at
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrR
ealm.java:220)
>   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
>   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
>   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
>   at
org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStat
sValve.java:76)
>   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
>   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   

Re: Fwd: RE: [Tiles] Why the text doesn't show

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Fwd: RE: [Tiles] Why the text doesn't show

2005-01-13 Thread Vernon

Note: forwarded message attached.




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 
--- Begin Message ---
Thanks David for the links.

After reread the API, I find the cause is that I
didn't give the string type for the text with the
insert tag. So, the problem is solved by either adding
the type of string or using the getAsString tag
instead.

My test shows that the dummy component definitions in
the template have no impact in this regard.

Vernon

 

--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:

> Vernon,
> 
> Have you read "Tiles Advanced Features" by Cedric
> Dumoulin?  It is listed
> under the Struts userGuide section for Tiles,
> http://struts.apache.org/userGuide/dev_tiles.html
> with a direct URL of:
>
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
> 
> Read all subsections under section 4.1 as it will
> better explain (and with
> examples) what I was talking about.
> 
> I am unsure if this is a requirement or just
> something I learned through
> trial and error, but when I extend a definition and
> add a new component, I
> make sure to add it to every parent tile (i.e.
> "this" extended "that" so I
> add the fields to "that", but "that" extended
> "another" so I added those
> same component names with some default value to
> "another.") back up the tree
> of definitions.  If you do not define attributes in
> that strict a manner,
> you may fine, as other posters have discovered, that
> some tiles' JSP
> pieces/pages may not be able to see your attributes,
> especially if your
> "body" component is a JSP that needs access to the
> other tile components.
> I'm not explaining this well but the PDF is
> excellent in describing tiles
> concepts with numerous examples.
> 
> Regards,
> David
> 
> -Original Message-
> From: Vernon [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 8:39 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles] Why the text doesn't show
> 
> 
> David:
> 
> After I add empty strings for all insertion
> components
> in the definition xml file, nothing is changed.
> 
> When you said "rule of thumb", do you mean what is
> in
> the document or a hacking practice?
> 
> regards,
> 
> Vernon
> >
> > The way I've always used Tiles is different from
> > your approach.  In the
> > struts-tiles.xml definition file, my "template"
> > could contain the components
> > "title", "category", and "category_menu" with
> dummy
> > values.  The two tiles
> > derived from "template", i.e. "landscape" and
> > "water", would
> > overload/override those fields as necessary.  If
> you
> > define an component
> > named "styleSheet" in "landscape" but not in
> > "template", when the page
> > starts displaying the master tile (i.e.
> "template"'s
> > /WEB-INF/jsp/template/main.jsp JSP), the master
> tile
> > won't know about the
> > "styleSheet" component you defined in the later
> > child tile named
> > "landscape."
> >
> > My rule of thumb is that you define all components
> > in the master tile(s).
> > For any tile you extend, make sure you are only
> > overriding previously
> > defined components as you need them.  They can
> > initially be set to blank,
> > i.e. "", in "template" so nothing shows up in the
> > JSP unless you've
> > overridden it in the "landscape" or "water" tiles.
> > Why?  Nesting and
> > passing components can be difficult or awkward in
> > Tiles if you are not VERY
> > careful.'
> >
> > Regards,
> > David
> >
> > -Original Message-
> > From: Vernon [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 12, 2005 3:26 PM
> > To: Struts Users Mailing List
> > Subject: RE: [Tiles] Why the text does'nt show
> >
> >
> > Thanks for your response, David. And please see
> > below.
> >
> > "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > A few things come to mind with your below
> included
> > > details:
> > >
> > > 1: Where are the "taglib" statements in your
> > > main.jsp template?
> >
> > The taglib statement is there as the following:
> >
> > <%@ taglib prefix="tiles"
> > uri="http://jakarta.apache.org/struts/tags-tiles";
> %>
> >
> > Absenting of the statement will lead to miss all
> > insertions. In this case, only inserted text is
> > missing.
> >
> > >
> > > 2: To use "title" when you "extend" a master
> > > template, I'm pretty sure you
> > > MUST have a "title" component listed in your
> > master
> > > template too because you
> > > are orverriding it in your "landscape" or
> "water"
> > > templates.
> > >
> >
> > I don't follow above. The inheritance is the
> > following:
> >
> > water <- landscape <- template
> >
> > Nothing, including the "title", is overriden.
> >
> > > -Original Message-
> > > From: Vernon [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, January 12, 2005 2:02 PM
> > > To: user@struts.apache.org
> > > Subject: [Tiles] Why the text does'nt show
> > >
> > >
> > > In a project, I have the Tiles integrat

validator - intRange - enhancement?

2005-01-13 Thread Nathan Coast
Hi,
for the various range validations, is it possible to specify greater 
than or less than ranges (ie, either no max or no min)?

if not, would this make a sensible enhancement?
At the moment for an integer > 0 I specify

  
  
  
  
min
1
  
  
max
2147483647
  

would it be 'nicer' to be able to specify:

  
  
  
min
1
  

Also, this gives me two error messages if my value is greater than 
2147483647 - firstly telling me that this is not an integer, although 
this makes sense to nerds like me, it might not make sense to an end user.

I have the option of excluding the integer depends but this then tells 
me that 'abcdef is not in the range 0 - 2147483647', where 'abcdef is 
not an integer' would be the better message

cheers
Nathan
--
Nathan Coast
Managing Director
Codeczar Ltd
mob : (852) 9049 5581
tel : (852) 2834 8733
fax : (852) 2834 8755
web : http://www.codeczar.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


URL validation isn't working

2005-01-13 Thread Ben
Hi

I am using Struts 1.2.4 and have the following settings in the validation.xml:


  
  
nofragments
true
  
  
schemes
http,https
  


In my HTML form, I have this value for the website field:

http://www.ibm.com.au/

It is a valid URL but how come the validator says it is not valid?

Am I missing something?

Thanks,
Ben

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



Re: Why Can't show the errors generated by a ActionForm's validate method

2005-01-13 Thread 艳龙 周
thank you, the proplem has been solved. 





-
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮

Re: Why Can't show the errors generated by a ActionForm's validate method

2005-01-13 Thread Kishore Senji
On Fri, 14 Jan 2005 10:03:55 +0800 (CST), èé å <[EMAIL PROTECTED]> wrote:
> hi, I'm new to struts and I really can't find a way to solve the proplem.
> plese help me. thank you so much.
> Here is the proplem. I have a input.jsp,a ActionForm and a Action
> public class HelloForm extends ActionForm
> {
>private String name=null;
> 
>   public ActionErrors validate(ActionMapping map,HttpServletRequest req)
>{
>ActionErrors err=new ActionErrors();
>if(name.length()<1||name==null)
>err.add("nouser" ,new ActionMessage("jsp.no.user"));
> 

 expects ActionError.
So add an ActionError instead of ActionMessage or use 

>return err;
>}
> when name!=null &&name.lengh>1 ,everything is normal ,the Action goto the jsp 
> page I expect
> but  when (name.length()<1|| name==null) is true,I think it should go to the 
> input.jsp,and use  to display the AcionMessage("jsp.no.user") 
> ..But the proplem comes out:
> 
> java.lang.ClassCastException
> org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:215)  
> org.apache.jsp.input_jsp._jspx_meth_html_errors_0(input_jsp.java:349)   
> org.apache.jsp.input_jsp._jspx_meth_html_html_0(input_jsp.java:133) 
> org.apache.jsp.input_jsp._jspService(input_jsp.java:87) 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)  
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) 
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)   
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
>  
> org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
>  
> org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:980)
>
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)  
>   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)   
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)please help me~
> 
> 
> -
> Do You Yahoo!?
> æåäçäæåèçéèåèçé
>

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



Re: JSF Initialization

2005-01-13 Thread Craig McClanahan
On Thu, 13 Jan 2005 19:11:41 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote:
> How does one create managed beans with dynamic values?  Would you do
> this by listing the managed bean in your faces-config and then having
> a Context life cycle listener actually create the beans and put them
> in application scope?
> 
> Is there a better practice to follow in doing this?

Yep ... use  declarations nested inside your .

As an example of this, the demo program for the Shale proposal (start
at http://wiki.apache.org/struts/StrutsShale and follow the links for
the nightly builds) uses the following syntax to initialize the dialog
controller for the logon process, including turning on or off the
"remember me" and "confirmation email" features:




logon$dialog

org.apache.shale.usecases.logon.Dialog

session



confirmation
boolean
false




rememberMe
boolean
true




What's even more interesting, however, is that you can use value
binding expressions for the  elements ... so you can calculate
initialization values dynamically, or even build up a whole tree of
beans instead of just one (essentially, managed beans support the
"setter injection" style of IoC configuration).  For example, consider
a case where you want to instantiate a backing bean for a customer,
and initialize the credit limit to a value that is based on a context
init parameter named "defaultCreditLimit".  Something like this will
do the trick:


creditLimit
double
#{initParam.defaultCreditLimit}


because "initParam" is a magic name that returns a Map of the context
init parameters.

There is also syntax available to initialize maps, lists, and arrays
-- see the DTD for a faces-config.xml file for more info.

> 
> Thanks!
> 

Craig

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



Why Can't show the errors generated by a ActionForm's validate method

2005-01-13 Thread 艳龙 周
hi, I'm new to struts and I really can't find a way to solve the proplem.
plese help me. thank you so much.
Here is the proplem. I have a input.jsp,a ActionForm and a Action
public class HelloForm extends ActionForm
{
private String name=null;

   public ActionErrors validate(ActionMapping map,HttpServletRequest req)
{
ActionErrors err=new ActionErrors();
if(name.length()<1||name==null)
err.add("nouser" ,new ActionMessage("jsp.no.user"));
  
return err;
}
when name!=null &&name.lengh>1 ,everything is normal ,the Action goto the jsp 
page I expect
but  when (name.length()<1|| name==null) is true,I think it should go to the 
input.jsp,and use  to display the AcionMessage("jsp.no.user") 
..But the proplem comes out:

java.lang.ClassCastException
org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:215)  
org.apache.jsp.input_jsp._jspx_meth_html_errors_0(input_jsp.java:349)   
org.apache.jsp.input_jsp._jspx_meth_html_html_0(input_jsp.java:133) 
org.apache.jsp.input_jsp._jspService(input_jsp.java:87) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)  
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:980)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)please help me~






-
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮

JSF Initialization

2005-01-13 Thread Eddie Bush
How does one create managed beans with dynamic values?  Would you do
this by listing the managed bean in your faces-config and then having
a Context life cycle listener actually create the beans and put them
in application scope?

Is there a better practice to follow in doing this?

Thanks!

-- 
Eddie Bush

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



Re: Re: how to get data from http get / url?

2005-01-13 Thread Dody Rachmat Wicaksono
Thank you, it's true that creating formbean for simple task
such as http://localhost/detail.do?id=99 is too much efford.

i'd like to use your suggession. thanks.

=== At 2005-01-13, 08:58:16 you wrote: ===

>There might be a few ways, but from my exprience..
>
>String sid = request.getParameter("id");
>
>or
>
>editFormsform = (editForm)form;
>String sid = sform.getUserid();  
>
>
>- Original Message - 
>From: "Dody Rachmat Wicaksono" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" 
>Sent: Thursday, January 13, 2005 2:42 AM
>Subject: how to get data from http get / url?
>
>
>> What should i do to get the value from url?
>> ex: http://localhost:8080/st/editForm.do?id=99
>> 
>> how to get the id value?
>> Thank you in advance.
>> 
>> 
>> Dody
>
>
>-
>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: Re: how to get data from http get / url?

2005-01-13 Thread Dody Rachmat Wicaksono
Thank you, it's true that creating formbean for simple task
such as http://localhost/detail.do?id=99 is too much efford.

i'd like to use your suggession. thanks.

=== At 2005-01-13, 08:58:16 you wrote: ===

>There might be a few ways, but from my exprience..
>
>String sid = request.getParameter("id");
>
>or
>
>editFormsform = (editForm)form;
>String sid = sform.getUserid();  
>
>
>- Original Message - 
>From: "Dody Rachmat Wicaksono" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" 
>Sent: Thursday, January 13, 2005 2:42 AM
>Subject: how to get data from http get / url?
>
>
>> What should i do to get the value from url?
>> ex: http://localhost:8080/st/editForm.do?id=99
>> 
>> how to get the id value?
>> Thank you in advance.
>> 
>> 
>> Dody
>
>
>-
>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: Action Chaining

2005-01-13 Thread Dakota Jack

On Thu, 13 Jan 2005 09:37:47 -0500, [EMAIL PROTECTED] 
> Here is my problem,
> 
> When the user clicks "previous" on the AnnuityAction, the previous method is
> called.  Previous saves the page, then forwards to /basic.do, which by default
> will call load.   


I would begin by not doing this.  I would also not use
LookupDispatchAction.  That is a really inefficient solution which is
outdated.

Jack

-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: Action Chaining

2005-01-13 Thread Joe Germuska
At 1:58 PM -0500 1/13/05, [EMAIL PROTECTED] wrote:
Sorry, I seem to have spoken too soon.  The method paramater will have a value
because the previous button has been pressed.  I don't want to say we won't
validate on previous or next, since we need to, I just need to not validate if
struts is coming from another action
And this is something that Struts is not designed to do, because it 
is not designed to support two passes through the RequestProcessor 
for a single HTTP Request.

Lots of work is underway for Struts 1.3.x to make this more 
straightforward, but this is not ready for production applications, 
and probably won't be for several weeks if not months.

In the meantime, probably the most straightforward thing to do would 
simply be to have a second action mapping which has validate="false" 
and use that mapping path in your forward/chain.  I think you said 
this wasn't appealing, but having it work is probably more appealing 
than not!

There's a lot of recent chatter in the archives of both the Struts 
user and dev lists about the ComposableRequestProcessor for Struts 
1.3 which should make this easier.  It is possible to use a precursor 
to this in Struts 1.2 using the struts-chain library, which was never 
formally released, but which can be extracted from the SVN repository.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: Action Chaining

2005-01-13 Thread Kishore Senji
Sounds like you need one more request parameter to distinguish between
the a new request and a request coming after finishing an action.

Token processing might be a good option which prevents the user from
book marking.

Do a saveToken() in the AnnuityAction.
If the previous and next are form "submit"'s rather than "links" then
the "token" is automatically put as a hidden parameter if you use
"" tag; otherwise you have to take the burden of tacking
on that token as a request parameter.


In the validate method; check for the validity of the token.
(isTokenValid() is available in the org.apache.struts.action.Action).
Since you are checking it from the form; you don't have that utility
method available. Nevertheless, it's simple to check. Just compare the
value of the token that's coming in the request to that of the value
in the session; if they match; don't do the validation


On Thu, 13 Jan 2005 13:58:23 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> Sorry, I seem to have spoken too soon.  The method paramater will have a value
> because the previous button has been pressed.  I don't want to say we won't
> validate on previous or next, since we need to, I just need to not validate if
> struts is coming from another action
> 
> 
> -
> 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]



ApplicationResources.properties file kindly help

2005-01-13 Thread Avinash Sridhar
Hi,
   Thanks for the replies.I added the values in the file and then restarted the 
application / tomcat web server.But still the values assigned to welcome.title 
, button.save , button.reset are not being shown.Kindly let me know what the 
problem is 

Thanking you all
AS
- Original Message -
From: "Dakota Jack" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Re: ApplicationResources.properties file kindly help
Date: Thu, 13 Jan 2005 10:03:56 -0800

> 
> Did you add the values in the file without restarting the application?
>   If so, then the values will not show.
> 
> Jack
> 
> 
> On Thu, 13 Jan 2005 10:59:32 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > From: "Avinash Sridhar" <[EMAIL PROTECTED]>
> > > What could be the problem, it not reading the
> > > ApplicationResources.properties file.
> >
> > http://struts.apache.org/userGuide/configuration.html#resources_config
> >
> > I have this in struts-config.xml:
> > 
> >
> > The ApplicationResources.properties file lives in WEB-INF/classes/
> >
> > HTH,
> > --
> > Wendy Smoak
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> --
> 
> "You can lead a horse to water but you cannot make it float on its back."
> 
> ~Dakota Jack~
> 
> "You can't wake a person who is pretending to be asleep."
> 
> ~Native Proverb~
> 
> "Each man is good in His sight. It is not necessary for eagles to be crows."
> 
> ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> 
> ---
> 
> "This message may contain confidential and/or privileged information.
> If you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose, or take any action based
> on this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



Re: Action Chaining

2005-01-13 Thread Todd_Nine

Sorry, I seem to have spoken too soon.  The method paramater will have a value
because the previous button has been pressed.  I don't want to say we won't
validate on previous or next, since we need to, I just need to not validate if
struts is coming from another action



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



Re: Action Chaining

2005-01-13 Thread Todd_Nine

Thanks,
  I had soemthing similar in my parent form LaserForm, but that just checked
for a query String on the request since we are bridging the old system to
struts.  I just never made the connection to check for the method parameter.
Thanks for all the help.

Todd



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



Re: uncheck and update

2005-01-13 Thread Kishore Senji
In your "reset" method get the Collection of "users"; Iterate over
that collection and set the two properties "admin" and viewer on the
object (I assume "user") to false;


On Thu, 13 Jan 2005 11:46:37 -0600, UKASICK, AIMEE L (SBCSI)
<[EMAIL PROTECTED]> wrote:
> Hi. I'm using the Struts Nested taglib to display rows of editable data
> to the user. I can select a checkbox in a row and the underlying POJO is
> updated correctly. However, when I uncheck a box, the value of the
> checkbox is not changed and therefore the POJO is not updated.
> In the Struts documentation on , I read this:
> 
> " WARNING: In order to correctly recognize unchecked checkboxes, the
> ActionForm bean associated with this form must include a statement
> setting the corresponding boolean property to false in the reset()
> method. "
> 
> How do I do this with a ? There is no property on the
> ActionForm associated with the nested property.
> 
> 
>
>  value="true">Administrator
> 
> value="true">Viewer
> 
>
>
> 
>
> 
> 
> I've looked at the Monkey examples but haven't been able to find
> anything relating to my issue. Can anyone help me out? Thanks in
> advance.
> 
> Aimee Ukasick
> 
>

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



Re: [almost OT] Struts in Practice

2005-01-13 Thread Bryce Fischer
Another +1 on oswd.org. I am chiming in to offer one of my favorite sites:
http://www.csszengarden.com/
Really shows what you can do with CSS.. I browse ocassionally for 
inspiration.

Martin Wegner wrote:
+1 on www.oswd.org  They are a great place to start your next web project.
--- "M. Bitner" <[EMAIL PROTECTED]> wrote:

As a programmer with no design skills, one resource I've found to be
helpful is Open Source Web Design:
http://www.oswd.org/
There are quite a few site designs to choose from, many using CSS.
They do have professional designs you can purchase if you'd like to go
that direction, but I've found the free designs to be more than
sufficient for my needs.
HTH,
Melissa
On Wed, 12 Jan 2005 07:28:00 -0800 (PST), t t <[EMAIL PROTECTED]>
wrote:
Also because I really like the Google style: simple, but useful and
powerful. So I have been trying  to make my website--
www.sportslovers.net in that way. I am not sure if I can say that mine
is powerful now, but I am sure I can say it's useful, and, simple. :)
t t <[EMAIL PROTECTED]> wrote:Thanks. I would like to get a web
designer to help me. But I don't have money to do that. :(
Vincent <[EMAIL PROTECTED]> wrote: Congrats. So this your demo site?
If it is in production, you may
want think about getting a web designer to help you with the layout.
It kind of reminds me of a 1998 webpage.
No offense intended.
t t wrote:
If you are a sports lover, or Struts lover, please take a look at
this website:
www.sportslovers.net . It's based on Struts. Have a good day!
Sorry if this email bothers you.
-
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: ApplicationResources.properties file kindly help

2005-01-13 Thread Dakota Jack
Did you add the values in the file without restarting the application?
 If so, then the values will not show.

Jack


On Thu, 13 Jan 2005 10:59:32 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Avinash Sridhar" <[EMAIL PROTECTED]>
> > What could be the problem, it not reading the
> > ApplicationResources.properties file.
> 
> http://struts.apache.org/userGuide/configuration.html#resources_config
> 
> I have this in struts-config.xml:
> 
> 
> The ApplicationResources.properties file lives in WEB-INF/classes/
> 
> HTH,
> --
> Wendy Smoak
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: ApplicationResources.properties file kindly help

2005-01-13 Thread Wendy Smoak
From: "Avinash Sridhar" <[EMAIL PROTECTED]>
> What could be the problem, it not reading the
> ApplicationResources.properties file.

http://struts.apache.org/userGuide/configuration.html#resources_config

I have this in struts-config.xml:


The ApplicationResources.properties file lives in WEB-INF/classes/

HTH,
-- 
Wendy Smoak



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



ApplicationResources.properties file kindly help

2005-01-13 Thread Avinash Sridhar
Hi,
  Thanks for the friendly piece of advice, I did correct it and
changed the dtd from 1.0 to 1.1 and I got no errors now., ?But I have
gotten into this problem

this is the data inside my ApplicationResources.properties file
present inside the classes directory.

/**ApplicationResources.properties
file***/

button.save=Change name
button.reset=Reset
error.name.required=To change the name, a name must be entered
prompt.name=Enter name:
welcome.title=A Simple Application

/**ApplicationResources.properties
file***/

On the index.jsp page that is being displayed.

The values of the welcome.title, prompt.name , error.name.required ,
button.reset , button.save are not being displayed,

instead I am getting like this

   ???en_US.welcome.title???
   ???en_US.error.name.required???
and so on.

What could be the problem, it not reading the
ApplicationResources.properties file.

Help would be greatly appreciated.

Thanks
AS
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



uncheck and update

2005-01-13 Thread UKASICK, AIMEE L \(SBCSI\)
Hi. I'm using the Struts Nested taglib to display rows of editable data
to the user. I can select a checkbox in a row and the underlying POJO is
updated correctly. However, when I uncheck a box, the value of the
checkbox is not changed and therefore the POJO is not updated.
In the Struts documentation on , I read this:
 
" WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement
setting the corresponding boolean property to false in the reset()
method. "
 
How do I do this with a ? There is no property on the
ActionForm associated with the nested property.
 


 Administrator

Viewer  
 





 
 
I've looked at the Monkey examples but haven't been able to find
anything relating to my issue. Can anyone help me out? Thanks in
advance.
 
Aimee Ukasick

 


Re: Action Chaining

2005-01-13 Thread Kishore Senji
In your BasicForm's validate() you could do check for the
"parameter"'s value and return "ActionErrors" based on that value;

public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){
  /* if load or unspecified return null */
  
if(org.apache.commons.lang.StringUtils.isEmpty((String)request.getParameter(mapping.getParameter()))
||   
if(org.apache.commons.lang.StringUtils.equals((String)request.getParameter(mapping.getParameter()),
"load")){
return null;
  }
  
  ActionErrors errors = new ActionErrors();
  
  // do the validation
   
  return errors;
}



On Thu, 13 Jan 2005 09:37:47 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi all.  I have a question that I cannot find the answer to, and hopefully
> someone has run in to this.
> 
> I have 3 Actions and 2 Forms
> 
> AnnuityAction <-> AnnuityForm ,   BasicAction <-> BasicForm
> 
> I have an abstract class called LaserAction that extends LookupDispatchAction.
> Both AnnuityAction and Basicform extend LaserAction.  LaserAction overrides g
> etMethodName(mapping, form,request, response, parameter)and defines the 
> abstract
> method load.  If no method is specified in the request then it calls load by
> default. This works perfectly, but I am running into issues with validation 
> and
> forwarding.
> 
> Here is my problem,
> 
> When the user clicks "previous" on the AnnuityAction, the previous method is
> called.  Previous saves the page, then forwards to /basic.do, which by default
> will call load.   Is there any way to set validate=false for the forward?
> I know you can do it for the action declaration, but I only want to disable it
> for this particular forward.  The problem is that struts is calling
> BasicForm.validate(mapping, request)  before it reaches
> BasicAction.load(mapping, form, request, response).  I would like to not have 
> to
> declare an action such as /basicLoad that disables validation.  I'm trying to
> introduce struts at my new position, and adding more mappings would just make
> things more confusing for the other developers.
> 
> Thanks,
> Todd
> 
> -
> 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]



Messages and errors log

2005-01-13 Thread Margarida Sargento
Hello

 

I am new to Struts. My first applications are examples that I download
from several web sites. One of them logs the forms data with:
servlet.log("...");

I have already search information about this and the Struts home page
refers this too. However I don't know where the logs are being saved. I
can not find the file and the corresponding path.

 

If you can help me, please reply.

Thank you very much.

 

Ana Margarida Sargento



Re: [almost OT] Struts in Practice

2005-01-13 Thread Martin Wegner

+1 on www.oswd.org  They are a great place to start your next web project.


--- "M. Bitner" <[EMAIL PROTECTED]> wrote:

> As a programmer with no design skills, one resource I've found to be
> helpful is Open Source Web Design:
> http://www.oswd.org/
> 
> There are quite a few site designs to choose from, many using CSS.
> They do have professional designs you can purchase if you'd like to go
> that direction, but I've found the free designs to be more than
> sufficient for my needs.
> 
> HTH,
> Melissa
> 
> On Wed, 12 Jan 2005 07:28:00 -0800 (PST), t t <[EMAIL PROTECTED]>
> wrote:
> > Also because I really like the Google style: simple, but useful and
> powerful. So I have been trying  to make my website--
> www.sportslovers.net in that way. I am not sure if I can say that mine
> is powerful now, but I am sure I can say it's useful, and, simple. :)
> > 
> > t t <[EMAIL PROTECTED]> wrote:Thanks. I would like to get a web
> designer to help me. But I don't have money to do that. :(
> > 
> > Vincent <[EMAIL PROTECTED]> wrote: Congrats. So this your demo site?
> If it is in production, you may
> > want think about getting a web designer to help you with the layout.
> > It kind of reminds me of a 1998 webpage.
> > No offense intended.
> > 
> > t t wrote:
> > > If you are a sports lover, or Struts lover, please take a look at
> this website:
> > > www.sportslovers.net . It's based on Struts. Have a good day!
> > > Sorry if this email bothers you.
> > >
> 
> -
> 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: Regarding JBOSS

2005-01-13 Thread Paul McCulloch
I'd guess that RC1 means release candidate 1 - i.e. not the final version.

I *think* that jboss-4.0.1.zip is the final version.

Paul

> -Original Message-
> From: Jay Chandran [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2005 16:40
> To: Struts Users Mailing List
> Subject: Re: Regarding JBOSS
> 
> 
> Hi,
> 
> 
> i am downloading JBOSS from  the below link as per ur instructions.
> 
> http://ovh.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.1RC1.zip
> 
> is this ok for me .
> 
> or should i download some other links. I can see lots of links for
> downloading JBOSS.
> 
> 
> jay
> 
> 
> 
> - Original Message - 
> From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" 
> Sent: Thursday, January 13, 2005 9:21 PM
> Subject: RE: Regarding JBOSS
> 
> 
> > >  I need to download JBOSS 4.0.1 for windows. Where can i get
> > > this ? What should i download? I can see lots of  downloads
> > > for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip..  etc.
> >
> > http://www.jboss.org/downloads/index
> >
> > JBoss Application Server
> >
> >
> > --
> > Tim Slattery
> > [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]
> 

Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message, and notify us 
immediately. If you or your employer does not consent to Internet email 
messages of this kind, please advise us immediately. Opinions, conclusions and 
other information expressed in this message are not given or endorsed by my 
Company or employer unless otherwise indicated by an authorised representative 
independent of this message.
 
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore strongly 
advised to undertake anti virus checks prior to accessing the attachment to 
this electronic mail.  Axios Systems Ltd grants no warranties regarding 
performance use or quality of any attachment and undertakes no liability for 
loss or damage howsoever caused.


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



[OT] Re: Regarding JBOSS

2005-01-13 Thread DGraham
Yes.





"Jay Chandran" <[EMAIL PROTECTED]> 
01/13/2005 11:40 AM
Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Re: Regarding JBOSS






Hi,


i am downloading JBOSS from  the below link as per ur instructions.

http://ovh.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.1RC1.zip

is this ok for me .

or should i download some other links. I can see lots of links for
downloading JBOSS.


jay



- Original Message - 
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Thursday, January 13, 2005 9:21 PM
Subject: RE: Regarding JBOSS


> >  I need to download JBOSS 4.0.1 for windows. Where can i get
> > this ? What should i download? I can see lots of  downloads
> > for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip..  etc.
>
> http://www.jboss.org/downloads/index
>
> JBoss Application Server
>
>
> --
> Tim Slattery
> [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: Regarding JBOSS

2005-01-13 Thread Jay Chandran
Hi,


i am downloading JBOSS from  the below link as per ur instructions.

http://ovh.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.1RC1.zip

is this ok for me .

or should i download some other links. I can see lots of links for
downloading JBOSS.


jay



- Original Message - 
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Thursday, January 13, 2005 9:21 PM
Subject: RE: Regarding JBOSS


> >  I need to download JBOSS 4.0.1 for windows. Where can i get
> > this ? What should i download? I can see lots of  downloads
> > for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip..  etc.
>
> http://www.jboss.org/downloads/index
>
> JBoss Application Server
>
>
> --
> Tim Slattery
> [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: Regarding JBOSS

2005-01-13 Thread Jay Chandran
Thanks :-)

Jay


- Original Message - 
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Thursday, January 13, 2005 9:21 PM
Subject: RE: Regarding JBOSS


> >  I need to download JBOSS 4.0.1 for windows. Where can i get 
> > this ? What should i download? I can see lots of  downloads 
> > for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip..  etc.
> 
> http://www.jboss.org/downloads/index
> 
> JBoss Application Server
> 
> 
> --
> Tim Slattery
> [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: Regarding JBOSS

2005-01-13 Thread Slattery, Tim - BLS
>  I need to download JBOSS 4.0.1 for windows. Where can i get 
> this ? What should i download? I can see lots of  downloads 
> for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip..  etc.

http://www.jboss.org/downloads/index

JBoss Application Server


--
Tim Slattery
[EMAIL PROTECTED]


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



Regarding JBOSS

2005-01-13 Thread Jay Chandran
Hi all,

 I need to download JBOSS 4.0.1 for windows. Where can i get this ? What
should i download? I can see lots of  downloads for jboss. ie jboss4.0.1
RC1.zip, jboss4.0.1 RC2.zip..  etc.


Which one should i download??


:-)


Jay






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



Re: [almost OT] Struts in Practice

2005-01-13 Thread t t
Thanks so much. I will take a look. I believe it will be helpful. BTW, what's 
"HTH"?
T.T.

"M. Bitner" <[EMAIL PROTECTED]> wrote:
As a programmer with no design skills, one resource I've found to be
helpful is Open Source Web Design:
http://www.oswd.org/

There are quite a few site designs to choose from, many using CSS.
They do have professional designs you can purchase if you'd like to go
that direction, but I've found the free designs to be more than
sufficient for my needs.

HTH,
Melissa

On Wed, 12 Jan 2005 07:28:00 -0800 (PST), t t wrote:
> Also because I really like the Google style: simple, but useful and powerful. 
> So I have been trying to make my website-- www.sportslovers.net in that way. 
> I am not sure if I can say that mine is powerful now, but I am sure I can say 
> it's useful, and, simple. :)
> 
> t t wrote:Thanks. I would like to get a web designer to help me. But I don't 
> have money to do that. :(
> 
> Vincent wrote: Congrats. So this your demo site? If it is in production, you 
> may
> want think about getting a web designer to help you with the layout.
> It kind of reminds me of a 1998 webpage.
> No offense intended.
> 
> t t wrote:
> > If you are a sports lover, or Struts lover, please take a look at this 
> > website:
> > www.sportslovers.net . It's based on Struts. Have a good day!
> > Sorry if this email bothers you.
> >

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Unable to see out put

2005-01-13 Thread Abdullah Jibaly
Sorry, I was probably thinking that current was the varStatus variable. My 
mistake.

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 5:23 PM
To: Struts Users Mailing List
Subject: Re: Unable to see  out put


I used:



  

  



And this worked fine, gave me:  1 2 3 4 5 in red.

Jack


On Wed, 12 Jan 2005 12:52:59 -0600, Abdullah Jibaly
<[EMAIL PROTECTED]> wrote:
> Actually I think it's ${current.count}
> 
> -Original Message-
> From: Kishore Senji [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 12:37 PM
> To: Struts Users Mailing List
> Subject: Re: Unable to see  out put
> 
> On Wed, 12 Jan 2005 13:52:32 +0530, Vamsee Kanakala
> <[EMAIL PROTECTED]> wrote:
> > Rick Reumann wrote:
> >
> > > It sounds like you are probably are now using a JSP2.0 container like
> > > Tomcat5 and are refering to the wrong tld. Refer to the one in the jar
> > > like:
> > >
> > > <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
> > >
> > > and remove and direct pointing to the tlds you have.
> >
> > Yes, I am using Tomcat 5.0.28. I then downloaded beanutils from the
> > jakarta site, replaced the jstl.jar and standard.jar, and pointed to
> > taglibs like you said above. I have strange problem - I am able to use
> >  etc., but the "var" is not getting set. If I give something
> > like this:
> >
> > 
> >  
> > 
> >
> > I get something like this:
> >
> > ${current} ${current} ${current} ${current} ${current}
> >
> 
> Well, If you use "var" attribute;  tries to assign the
> current element of the iteration over a collection to a variable with
> that name. If you don't have any collection specified by the attribute
> "items" then nothing is set to the "var" attribute; in other words a
> variable with that name doesn't exist. If you wanted to see the loop
> counter you could use
> 
> 
>   
> 
> 
> > I can't figure out what seems to be the problem. Please help.
> >
> > TIA,
> > Vamsee.
> >
> > -
> > 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]
> 
> 


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Help with ApplicationResources.properties file.

2005-01-13 Thread Avinash Sridhar
Hi,
Thanks for the friendly piece of advice, I did correct it and changed the 
dtd from 1.0 to 1.1 and I got no errors now., ?But I have gotten into this 
problem

this is the data inside my ApplicationResources.properties file present inside 
the classes directory.

/**ApplicationResources.properties 
file***/

button.save=Change name
button.reset=Reset
error.name.required=To change the name, a name must be entered
prompt.name=Enter name:
welcome.title=A Simple Application

/**ApplicationResources.properties 
file***/

On the index.jsp page that is being displayed.

The values of the welcome.title, prompt.name , error.name.required , 
button.reset , button.save are not being displayed, 

instead I am getting like this 

 ???en_US.welcome.title???
 ???en_US.error.name.required???
and so on.

What could be the problem, it not reading the ApplicationResources.properties 
file.

Help would be greatly appreciated.

Thanks 
AS

 ???en_US.
- Original Message -
From: [EMAIL PROTECTED]
To: "Struts Users Mailing List" 
Subject: Re: Still PLZ Help with Cannot find message resources under key
org.apache.struts.action.MESSAGE
Date: Thu, 13 Jan 2005 09:58:25 -0500

> 
> 
> Your first issue is a result of your second.  The XML parser is 
> telling you that
> your format did not match the DTD.  In the config, the elements must be in the
> order of
> 
> 1. data-sources
> 2. form-beans
> 3. global-forwards
> 4. action-mappings
> 5. messages and plugins.
> 
> for instance I have.
> 
> 
> 
> 
> 
> 
>...
> 
> 
> 
> 
>...
> 
> 
> 
> 
>...
> 
> 
> 
> 
> 
> 
> 
> "/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
> 
> 
> 
> Hope that helps.
> 
> Todd
> 
> 
> |-+>
> | |   "Avinash Sridhar"|
> | |   <[EMAIL PROTECTED]|
> | |   .com>|
> | ||
> | |   01/13/2005 09:26 |
> | |   AM   |
> | |   Please respond to|
> | |   "Struts Users|
> | |   Mailing List"|
> | ||
> |-+>
>
>  
> >---|
>|
> |
>|   To:   "Struts Users Mailing List" 
> 
>|
>|   cc:  
> |
>|   Subject:  Still PLZ Help with Cannot find message 
> resources under keyorg.apache.struts.action.MESSAGE 
>|
>
>  
> >---|
> 
> 
> 
> 
> Hi,
> 
> Thanks for the suggestionsAfter I add
> 
>parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>null="false" />
> 
> to the struts-config.xml file, When I start-up the server, I get the following
> error message
> 
> /**Error***/
> 
> Element type "message-resources" must be declared.
> 
> AND
> 
> 
> The content of element type "struts-config" must match
> "(data-sources?,form-beans?,global-forwards?,action-mappings?)".
> 
> /**Error***/
> 
> Help towards this wud be greatly appreciated.
> 
> Thanking you
> AS
> 
> 
> - Original Message -
> From: "David G. Friedman" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Subject: RE: PLZ Help with Cannot find message resources under key
> org.apache.struts.action.
> Date: Thu, 13 Jan 2005 00:34:55 -0500
> 
> >
> > To your struts-config.xml, have you added an entry something like this:
> >
> >  >  parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
> >   null="false" />
> >
> > Regards,
> > David
> >
> > -Original Message-
> > From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 12, 2005 10:01 PM
> > To: user@struts.apache.org
> > Subject: PLZ Help with Cannot find message resources under key
> > org.apache.struts.action.
> >
> >
> > Hi All,
> > This is my directory structure
> > WEB-INF i have struts-config.xml and web.xml
> > WEB_INF classes / com / masslight / StrutsExampleClasses/
> > ApplicationResources.properties
> > Name.java
> > NameForm.java
> > SetNameAction.java files
> >
> > /***Error **/
> >
> > Cannot find message resources under key org.apache.struts.action.MESSAGE
> >
> > /***Error **/
> >
> > Kindly help me out with this
> >
> > PS: I am using Tomcat 5.0.28, Eclipse 3.0 St

Re: Nested and javascript'

2005-01-13 Thread Hubert Rabago
This works for me in IE and FireFox:







function tryMe() {
var frm = document.myForm;
var ctrl = frm['something[0].down.here'].value="Hello!";
}


- Hubert

On Thu, 13 Jan 2005 09:56:00 -0200, Vinicius Caldeira Carvalho
<[EMAIL PROTECTED]> wrote:
> Well, this is kinda off topic, but I thought that maybe some of you may
> ran into this problem.
> 
> I have a nested text field. It's name is : destiny[0].airShip.name
> I need to use a javascript function to get this value. But
> document.forms[0].destiny[0].airShip.name will not work, which seems
> logical since those are not objects but a string generated by struts. Is
> there a way to access those properties?
> 
> thanks
> 
> -
> 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: Property file question

2005-01-13 Thread Slattery, Tim - BLS
> I am having property file under WEB-INF directory. I am 
> currently storing something like
  
> title.mainmenu = Main Menu
> error.validation = Validation Error
> 
  
> Can i make use of these variables inside my any normal java 
> classes - or whether these r meant for only JSPs ?

You can use them in your Java classes.

If your property file is named "myapp.properties", then something like this:

ResourceBundle res = ResourceBundle.getBundle("myapp");
 
String menuTitle = res.getString("title.mainmenu");
 

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Still PLZ Help with Cannot find message resources under key org.apache.struts.action.MESSAGE

2005-01-13 Thread Todd_Nine

Your first issue is a result of your second.  The XML parser is telling you that
your format did not match the DTD.  In the config, the elements must be in the
order of

1. data-sources
2. form-beans
3. global-forwards
4. action-mappings
5. messages and plugins.

for instance I have.






  ...




  ...




  ...







  



Hope that helps.

Todd


|-+>
| |   "Avinash Sridhar"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   01/13/2005 09:26 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>---|
  | 
  |
  |   To:   "Struts Users Mailing List" 
  |
  |   cc:   
  |
  |   Subject:  Still PLZ Help with Cannot find message resources under key 
   org.apache.struts.action.MESSAGE   |
  
>---|




Hi,

   Thanks for the suggestionsAfter I add



to the struts-config.xml file, When I start-up the server, I get the following
error message

/**Error***/

Element type "message-resources" must be declared.

AND


The content of element type "struts-config" must match
"(data-sources?,form-beans?,global-forwards?,action-mappings?)".

/**Error***/

Help towards this wud be greatly appreciated.

Thanking you
AS


- Original Message -
From: "David G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: RE: PLZ Help with Cannot find message resources under key
org.apache.struts.action.
Date: Thu, 13 Jan 2005 00:34:55 -0500

>
> To your struts-config.xml, have you added an entry something like this:
>
>   parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>   null="false" />
>
> Regards,
> David
>
> -Original Message-
> From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 10:01 PM
> To: user@struts.apache.org
> Subject: PLZ Help with Cannot find message resources under key
> org.apache.struts.action.
>
>
> Hi All,
> This is my directory structure
> WEB-INF i have struts-config.xml and web.xml
> WEB_INF classes / com / masslight / StrutsExampleClasses/
> ApplicationResources.properties
> Name.java
> NameForm.java
> SetNameAction.java files
>
> /***Error **/
>
> Cannot find message resources under key org.apache.struts.action.MESSAGE
>
> /***Error **/
>
> Kindly help me out with this
>
> PS: I am using Tomcat 5.0.28, Eclipse 3.0 Struts 1.2.4.
>
> Any Help would be greatly appreciated...
>
> I can give you the trace of the log files too.
>
> Thanks in advance
> AS
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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







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



Re: Java IDE's

2005-01-13 Thread fzlists
You'll have to pry UltraEdit and batch files from my cold, dead hands before I 
use any IDE :)

Ok, I'm not really quite THAT extreme. :)

But it has been my experience that no IDE adds anything big enough to deal with 
the little annoyances that they all seem to have (most of them seem to have the 
same annoyances too).  I've been trying a couple more lately to see what I'm 
missing, and at this point my conclusion is the same as it was before: not 
enough to make the switch.

I'm not a fan of code generators of any kind in general, even if it's 
generating minor code like getters and setters.  I don't like being "freed" of 
even "mundane" tasks.  I like to think, I like being in complete control.  And 
besides, I tend to think and work faster than most people I've met (probably 
not BETTER, just faster), so a lot of these "time-saving" tools like code 
generators don't atually save me any significant time in the end.

I don't like being forced to work any particular way, and every IDE I've tried 
does that.  Here's the first thing I look at with any new IDE: does it force me 
to create a project if all I want to do is enter a quick class, compile and 
execute it?  I've never met an IDE that allows me to do that, they all want me 
to set up a project.  I've tried IntelliJ, Eclipse, WSAD, JDeveloper, and a few 
other lesser known ones.  They all suffer this problem (well, problem in my 
mind anyway, some people don't mind, or even prefer it this way).

None of them allow me to customize them to the degree I want and need... For 
example, Eclipse... is there an option to put text labels on the toolbar icons? 
 I can't find it.  Little things like that wind up making me less efficient.

To be sure, IDEs do offer some functionality that I'd like to have... renaming 
variables throughout a bunch of source files is very nice.  Some of the 
refactoring tools are of course very useful.  There's some decent class 
browsing functionality I've seen, cross-linking between various source files 
and such for instance.  Intellisense-type functionality can sometimes be useful 
(can also sometimes just get in the way I think).  Debuggers of course are nice 
(although honestly I've been programming for almost 23 years and I've found I 
can work as well without them as with them 95% of the time... still, nice to 
have that 5% of the time).  But they don't save me enough time to make 
everything else like slow startup speed, less than stellar reaction times (try 
right-clicking on source in WSAD... argh!  I'll go get my lunch while I wait 
for the menu to appear) and the typical "we know the best way to develop so do 
it our way" syndrome they all seem to suffer from.

In the end, much of programming winds up being text editing anyway, so why not 
have the best text editor you can find?  UltraEdit is that for me.  It has nice 
macro capability, so I wind up having a lot of the same functionality IDEs 
provide anyway (like code cleanup for instance).  It has a nice file system 
browser, so as long as I put all the files of my project in one folder I get 
essentially a hierarchical view of it.  It has a fantastic search and replace 
facility, so a great deal of code refactoring I wind up doing with that.  My 
directory structure is my package scheme, so I get that.  

I'm exceptionally proficient in simple batch files (that become not so simple) 
so I have a lot of hotkeys that shell out to processes to do various thing... 
For instance, I do my development under Tomcat... I have one batch file that 
will shut down Tomcat if running, recompile my entire webapp (including JSPs), 
report any errors back to me (and I can click on the error and be brought right 
to the offending line), then it restarts Tomcat and opens my browser to the 
starting page of the app.  This is all assigned to Alt-F1.  That's it, one 
keypress, no dialogs to muddle through, it all happens seemlessly, and very 
quickly... there's around 600 source files in this project with something like 
75,000 lines of code... it all happens in about 15 seconds, give or take.  To 
me, that saves as much time as many of the smaller productivity tools in any 
IDE do combined.

I'm not actually trying to convince anyone of anything here, except this: each 
of us works at their peak efficiency in different ways.  It is a big mistake in 
my opinion to force an IDE on someone, or a set of tools.  Many companies make 
that mistake.  Let people use the tools they work the best with.  For many that 
will be a full-blown IDE anyway.  If your style has become as refined as mine 
has though, an IDE will either get in the way or at best not offer enough to 
make the switch worth it.

Ironically, I do use an IDE when doing my C++ PocketPC development.  But, as a 
good example of what I'm saying, I find myself fighting it many times and 
costing me time, probably as much as it saves me at others.  There's not nearly 
as much choice there though.

Hey, try every IDE you can get your 

Re: Nested and javascript'

2005-01-13 Thread Radu Badita
Sure it is a way to access those: just assign an unique id - maybe same as 
the name, but without the dots.

At 13:56 13.01.2005, you wrote:
Well, this is kinda off topic, but I thought that maybe some of you may 
ran into this problem.

I have a nested text field. It's name is : destiny[0].airShip.name
I need to use a javascript function to get this value. But 
document.forms[0].destiny[0].airShip.name will not work, which seems 
logical since those are not objects but a string generated by struts. Is 
there a way to access those properties?

thanks
-
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: Stuts forwarding does not work

2005-01-13 Thread Alex Kravets
Actually now it works. I moved everything to another application name 
and it started working. But, another problem. When I submit my page I 
get a blank page. Action class does not do anything, just forwards to 
success page. Here is the action mapping in struts-config.xml:


   
   
   

   
   
   
   
   
   
And ActionClass:
package app;
import java.io.IOException;
import java.util.Vector;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
//import com.kwi.DBDriver;
public final class ExecuteQueryAction extends Action {
   public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws IOException, ServletException {
   // Obtain username and password from web tier
   String sqlQuery = ((ExecuteQueryForm) form).getSQLQuery();
   // Return success
   return mapping.findForward("success");
   }
} // End LogonAction
The same blank screen after submit happens when I deploy and run 
application logon.war from Husted's Struts In Action source code. So may 
be my struts installation is wrong?

thanks a lot,
Alex
Amit Gupta wrote:
What are you writing in your index.jsp?
Amit Gupta
Mobile: 91-9891062552
Yahoo IM: amitguptainn
MSN IM : amitguptainn
-Original Message-
From: Alex Kravets [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 13, 2005 1:11 AM
To: user@struts.apache.org
Subject: Stuts forwarding does not work 

I am trying to redirect from index.jsp to another page but no luck. I 
get this error:

org.apache.jasper.JasperException: Exception forwarding for name 
queryInput: org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at 
org.apache.catalina.core.StandardPipeline$Standa

Re: Java IDE's

2005-01-13 Thread Lee Harrington
Another vote for Eclipse (free) with MyEclipse ($30/yr) add on. 
Wonderfully inexpensive yet productive environment.

Lee


On Thu, 13 Jan 2005 15:56:32 +0530, Ashutosh Satyam <[EMAIL PROTECTED]> wrote:
> Hi,
> Though this is an off topic question, but still
> I'm posting it here as I have found this mailing
> list to be active and members try to furnish the
> information as much as possible.
> 
> Q) Could you suggest some Java IDE's
> 
> 1. What are the top 3 good features you seen in this IDE
> 2. What are the top 3 negatives of those IDEs.
> 
> As for me I'm a VI/EMAC user. But I feel usage
> of an IDE undoubtedly increases efficieny and productivity
> of development cycle.
> 
> All inputs are welcome.
> 
> Thanks in advance,
> Ashutosh
> 
> -
> 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]



[Was OT] Re: Java IDE's

2005-01-13 Thread DGraham
Given the forum, why don't you take a look at Java Studio Creator (Reef 
Shark!) and NitroX.
http://developers.sun.com/prodtech/javatools/jscreator/
http://www.m7.com/product.do

Dennis




"Ashutosh Satyam" <[EMAIL PROTECTED]> 
01/13/2005 05:26 AM
Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Java IDE's






Hi,
 Though this is an off topic question, but still
I'm posting it here as I have found this mailing
list to be active and members try to furnish the
information as much as possible.

 Q) Could you suggest some Java IDE's 

 1. What are the top 3 good features you seen in this IDE
 2. What are the top 3 negatives of those IDEs.

As for me I'm a VI/EMAC user. But I feel usage
of an IDE undoubtedly increases efficieny and productivity
of development cycle.

All inputs are welcome.

Thanks in advance,
 Ashutosh





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




Action Chaining

2005-01-13 Thread Todd_Nine
Hi all.  I have a question that I cannot find the answer to, and hopefully
someone has run in to this.

I have 3 Actions and 2 Forms

AnnuityAction <-> AnnuityForm ,   BasicAction <-> BasicForm

I have an abstract class called LaserAction that extends LookupDispatchAction.
Both AnnuityAction and Basicform extend LaserAction.  LaserAction overrides g
etMethodName(mapping, form,request, response, parameter)and defines the abstract
method load.  If no method is specified in the request then it calls load by
default. This works perfectly, but I am running into issues with validation and
forwarding.

Here is my problem,

When the user clicks "previous" on the AnnuityAction, the previous method is
called.  Previous saves the page, then forwards to /basic.do, which by default
will call load.   Is there any way to set validate=false for the forward?
I know you can do it for the action declaration, but I only want to disable it
for this particular forward.  The problem is that struts is calling
BasicForm.validate(mapping, request)  before it reaches
BasicAction.load(mapping, form, request, response).  I would like to not have to
declare an action such as /basicLoad that disables validation.  I'm trying to
introduce struts at my new position, and adding more mappings would just make
things more confusing for the other developers.

Thanks,
Todd





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



Still PLZ Help with Cannot find message resources under key org.apache.struts.action.MESSAGE

2005-01-13 Thread Avinash Sridhar
Hi,

   Thanks for the suggestionsAfter I add 



to the struts-config.xml file, When I start-up the server, I get the following 
error message

/**Error***/

Element type "message-resources" must be declared.

AND


The content of element type "struts-config" must match 
"(data-sources?,form-beans?,global-forwards?,action-mappings?)".

/**Error***/

Help towards this wud be greatly appreciated.

Thanking you 
AS


- Original Message -
From: "David G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: RE: PLZ Help with Cannot find message resources under key
org.apache.struts.action.
Date: Thu, 13 Jan 2005 00:34:55 -0500

> 
> To your struts-config.xml, have you added an entry something like this:
> 
>   parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
>   null="false" />
> 
> Regards,
> David
> 
> -Original Message-
> From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 10:01 PM
> To: user@struts.apache.org
> Subject: PLZ Help with Cannot find message resources under key
> org.apache.struts.action.
> 
> 
> Hi All,
> This is my directory structure
> WEB-INF i have struts-config.xml and web.xml
> WEB_INF classes / com / masslight / StrutsExampleClasses/
> ApplicationResources.properties
> Name.java
> NameForm.java
> SetNameAction.java files
> 
> /***Error **/
> 
> Cannot find message resources under key org.apache.struts.action.MESSAGE
> 
> /***Error **/
> 
> Kindly help me out with this
> 
> PS: I am using Tomcat 5.0.28, Eclipse 3.0 Struts 1.2.4.
> 
> Any Help would be greatly appreciated...
> 
> I can give you the trace of the log files too.
> 
> Thanks in advance
> AS
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



Re: Java IDE's

2005-01-13 Thread Raj Tilak
Strongly recommend IntelliJ IDEA. The best innovative Java IDE. Certainly 
reduces a lot of development time.
 If you can spend a little definitely IDEA or else Eclipse.

From: Antony Paul <[EMAIL PROTECTED]>
Reply-To: Antony Paul <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Subject: Re: Java IDE's
Date: Thu, 13 Jan 2005 16:49:07 +0530
I use Eclipse. Earlier I was sticking to EditPlus. I was very
comfortable with it. My other team menbers are using Eclipse and we
needed a standard environment to work as the client required that I
started using Eclipse. First it was very boring to use it as it takes
time to start up, open a file etc. Then I learned that it have lot of
features. Some are
1. Shows which code is using a method,constructor, variable in the
project. It is very important as we are working on a maintenance
project.
2. Package Explorer - which shows the class files in a package in a
hierarchy and we can see the members of that class.
3. Built in CVS support with SSH - This is imortant to connect to
remote servers and there are hardly any other free tools for windows
platform.
4. Can set the editor to use spaces instead of tab.
5. Integrates with Ant.
6. It is free.
The cons are
1. No way to save a file in another platforms line ending character.
ie. I cant save a file created in windows in Linux format.
2. Can't type in CVS commands from a command prompt.
3. is slow even on a system with 512 MB RAM.
You have to choose an IDE based whether it satisfies your
requirements. Usually it will be requirements of the project you are
working with.
rgds
Antony Paul
On Thu, 13 Jan 2005 15:56:32 +0530, Ashutosh Satyam <[EMAIL PROTECTED]> 
wrote:
> Hi,
>  Though this is an off topic question, but still
> I'm posting it here as I have found this mailing
> list to be active and members try to furnish the
> information as much as possible.
>
>  Q) Could you suggest some Java IDE's
>
>  1. What are the top 3 good features you seen in this IDE
>  2. What are the top 3 negatives of those IDEs.
>
> As for me I'm a VI/EMAC user. But I feel usage
> of an IDE undoubtedly increases efficieny and productivity
> of development cycle.
>
> All inputs are welcome.
>
> Thanks in advance,
>  Ashutosh
>
> -
> 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]


firefox javascript error from validation js

2005-01-13 Thread Nathan Coast
the static js generated from:

throws the following error to the firefox javascript console:
Error: [Exception... "'Permission denied to get property 
XULElement.selectedIndex' when calling method: 
[nsIAutoCompletePopup::selectedIndex]"  nsresult: "0x8057001e 
(NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: 
http://media:8080/tomcat/acl/Validation.jsp :: validateRequired :: line 
258"  data: no]
Source File: http://media:8080/tomcat/acl/Validation.jsp
Line: 258

the js that throws the error is the alert at the end of the function:
validateRequired(form) {
..
.
.
}
if (fields.length > 0) {
   focusField.focus();
   alert(fields.join('\n'));  // this line causes the error
}
return isValid;
}
other alerts in the js throw the same error.  The javascript seems to 
work fine though.

Firefox bug?
cheers
Nathan
--
Nathan Coast
Managing Director
Codeczar Ltd
mob : (852) 9049 5581
tel : (852) 2834 8733
fax : (852) 2834 8755
web : http://www.codeczar.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: XML date validation

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: XML date validation

2005-01-13 Thread deepak
Thanks Joe.

- Original Message - 
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "deepak" <[EMAIL PROTECTED]>; "Struts Users Mailing List"

Sent: Wednesday, January 12, 2005 7:41 PM
Subject: Re: XML date validation


> At 5:04 PM +0530 1/12/05, deepak wrote:
> >Hi,
> > Using XML date validation, how do I check if the entered date is
> >in the future or not ?
>
> If by "XML date validation", you mean the commons-validator framework
> and ValidatorForm or a class derived from it, there is no built-in
> support for this.  On the other hand, it is possible to write custom
> validator classes, register them by name in the config file, and then
> use the name as one of the values in the "depends" attribute of your
> per-form validation.
>
> Have a look at the validator-rules.xml file and the
> org.apache.struts.validator.FieldChecks class for some idea of how
> this is done.  I'll admit that I don't find it extremely
> straightforward, but you can get pretty far by copying what comes
> built in to Struts.
>
> Joe
>
>
> >Thanks
> >
> >--Deepak
>
>
> -- 
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

***
This email (which includes any files transmitted with it) is intended
for the above named only. It may contain privileged, confidential or
price sensitive information. If you are not the intended recipient,
please notify the sender immediately and destroy all copies of this
email, as well as deleting the email from your computer system. This
email is protected by copyright. If you are not the intended recipient,
you are not entitled to use, disclose or copy the email or rely on it
in any way whatsoever.
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: content of form lost when validation failed if the form has encoder type set to multipart/form-data

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



content of form lost when validation failed if the form has encoder type set to multipart/form-data

2005-01-13 Thread Yaroslav Vinogradov
Hello all,

I have the following problem with Struts 1.2.4.
I have form with html:file and other fields like html:text.
The values entered in fields of the form are lost if form fails validation
in case the for enctype is set to "multipart/form-data".

What to do with this?

Regards,
Yaroslav Vinogradov


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



Re: Nested and javascript'

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Nested and javascript'

2005-01-13 Thread Vinicius Caldeira Carvalho
Well, this is kinda off topic, but I thought that maybe some of you may 
ran into this problem.

I have a nested text field. It's name is : destiny[0].airShip.name
I need to use a javascript function to get this value. But 
document.forms[0].destiny[0].airShip.name will not work, which seems 
logical since those are not objects but a string generated by struts. Is 
there a way to access those properties?

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


Re: Java IDE's

2005-01-13 Thread Antony Paul
I use Eclipse. Earlier I was sticking to EditPlus. I was very
comfortable with it. My other team menbers are using Eclipse and we
needed a standard environment to work as the client required that I
started using Eclipse. First it was very boring to use it as it takes
time to start up, open a file etc. Then I learned that it have lot of
features. Some are
1. Shows which code is using a method,constructor, variable in the
project. It is very important as we are working on a maintenance
project.
2. Package Explorer - which shows the class files in a package in a
hierarchy and we can see the members of that class.
3. Built in CVS support with SSH - This is imortant to connect to
remote servers and there are hardly any other free tools for windows
platform.
4. Can set the editor to use spaces instead of tab.
5. Integrates with Ant.
6. It is free.

The cons are
1. No way to save a file in another platforms line ending character.
ie. I cant save a file created in windows in Linux format.
2. Can't type in CVS commands from a command prompt.
3. is slow even on a system with 512 MB RAM.

You have to choose an IDE based whether it satisfies your
requirements. Usually it will be requirements of the project you are
working with.

rgds
Antony Paul


On Thu, 13 Jan 2005 15:56:32 +0530, Ashutosh Satyam <[EMAIL PROTECTED]> wrote:
> Hi,
>  Though this is an off topic question, but still
> I'm posting it here as I have found this mailing
> list to be active and members try to furnish the
> information as much as possible.
> 
>  Q) Could you suggest some Java IDE's
> 
>  1. What are the top 3 good features you seen in this IDE
>  2. What are the top 3 negatives of those IDEs.
> 
> As for me I'm a VI/EMAC user. But I feel usage
> of an IDE undoubtedly increases efficieny and productivity
> of development cycle.
> 
> All inputs are welcome.
> 
> Thanks in advance,
>  Ashutosh
> 
> -
> 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: Re: Java IDE's

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: Java IDE's

2005-01-13 Thread Sebastian Hennebrueder
I use MyEclipse
the support for web development (struts) is really good. jsp preview
and it is quite cheap.
EJB development is using xDoclet, which is sometimes a bit slow compared 
to jbuilder EJB visual ejb development

Regards Sebastian
Ashutosh Satyam wrote:
Hi,
Though this is an off topic question, but still
I'm posting it here as I have found this mailing
list to be active and members try to furnish the
information as much as possible.
Q) Could you suggest some Java IDE's 

1. What are the top 3 good features you seen in this IDE
2. What are the top 3 negatives of those IDEs.
As for me I'm a VI/EMAC user. But I feel usage
of an IDE undoubtedly increases efficieny and productivity
of development cycle.
All inputs are welcome.
Thanks in advance,
Ashutosh


-
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: Re: Java IDE's

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: Java IDE's

2005-01-13 Thread Pedro Salgado

 use Intellij IDEA...

 +++

 1 simple and doesn't get in the way
 2 ant/junit integration
 3 because it is really really good

 ---

 1 $500 personal license (compared with $0 eclipse) - if you don¹t want to
spend money... well it is not for you.


Pedro Salgado

On 13/1/05 11:26 am, "Ashutosh Satyam" <[EMAIL PROTECTED]> wrote:

> Hi,
> Though this is an off topic question, but still
> I'm posting it here as I have found this mailing
> list to be active and members try to furnish the
> information as much as possible.
> 
> Q) Could you suggest some Java IDE's
> 
> 1. What are the top 3 good features you seen in this IDE
> 2. What are the top 3 negatives of those IDEs.
> 
> As for me I'm a VI/EMAC user. But I feel usage
> of an IDE undoubtedly increases efficieny and productivity
> of development cycle.
> 
> All inputs are welcome.
> 
> Thanks in advance,
> Ashutosh
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Java IDE's

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Java IDE's

2005-01-13 Thread Ashutosh Satyam
Hi,
 Though this is an off topic question, but still
I'm posting it here as I have found this mailing
list to be active and members try to furnish the
information as much as possible.

 Q) Could you suggest some Java IDE's 

 1. What are the top 3 good features you seen in this IDE
 2. What are the top 3 negatives of those IDEs.

As for me I'm a VI/EMAC user. But I feel usage
of an IDE undoubtedly increases efficieny and productivity
of development cycle.

All inputs are welcome.

Thanks in advance,
 Ashutosh





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



Re: Re: and char encoding

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: and char encoding

2005-01-13 Thread Guillaume Cottenceau
Laurent  writes:

> Nicolas De Loof wrote:
> > Can someone explain me what's wrong in HTTP / servlet API about char
> > encoding :
> > I'm using  to build a link with parameters, whose values
> > use french chars ('é', 'à' ...)
> > I need to set useLocaleEncoding to get values in my servlet (that is
> > not a struts action) using getParameterMap.
> > If I do not set this attribute, I get values with strange strings
> > that looks like UTF-8 sequences.
> > Is they're no strict standard for URI encoding ? Is tomcat servlet
> > API wrong about this ?
> 
> I don't know about the specific behaviour of tomcat, but the answer to
> the first question is No: the only standard is us-ascii. If a browser

Do you have any evidence, the HTTP RFC or something else?

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html
makes me think that tomcat uses ISO-8859-1 by default, not
US-ASCII.

> needs to send characters that are outside us-ascii, it will always
> encode them in the same encoding as the page that contains the link /
> form.

"Always" seems a bit too definitive to me. When present, the
accept-charset attribute of the form element would make this
behaviour different.

> If you are doing this on the server side, just make sure you do
> the necessary encoding/decoding while sending and receiving so that it
> works!

What are you talking about, more precisely? As far as I know,
there is no explicit encoding/decoding when using tomcat. The
results of HttpServletRequest#getParameter is a String, not an
array of bytes, therefore it has already been decoded by tomcat
(HttpServletRequest#getCharacterEncoding can show which encoding
was used).

-- 
Guillaume Cottenceau

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



Re: Re: and char encoding

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: and char encoding

2005-01-13 Thread Guillaume Cottenceau
Nicolas De Loof  writes:

> Hi,
> 
> Can someone explain me what's wrong in HTTP / servlet API about char
> encoding :
> 
> I'm using  to build a link with parameters, whose values
> use french chars ('é', 'à' ...)
> I need to set useLocaleEncoding to get values in my servlet (that is
> not a struts action) using getParameterMap.
> If I do not set this attribute, I get values with strange strings that
> looks like UTF-8 sequences.

By default, GET parameters are decoded in ISO-8859-1, whatever
encoding was used in the page with the link and whatever the
content-type of the GET request is set to. You can use connector
parameters to change this behaviour.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html

Warning, if you still use tomcat4.1.x: this behaviour changed in
tomcat5.

-- 
Guillaume Cottenceau

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



Re: Re: Property file question

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: Property file question

2005-01-13 Thread PA
On Jan 13, 2005, at 05:57, Larry Meadors wrote:
Sure, but you need to create a Properties object to do it and read 
them in.

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html
Talking of properties, check out PL:
http://alt.textdrive.com/pl/
It provides a simple format to handle basic things like Map and 
Collection:

http://alt.textdrive.com/pl/3/pl-the-format
http://alt.textdrive.com/assets/public/PL-ABNF.txt
As well as a drop-in replacement for java.util.Properties:
http://alt.textdrive.com/download/6/pl-the-download
Cheers
--
PA
http://alt.textdrive.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: Database connection question - seeking expert opinion

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED]  This mail account is not 
functioning anymore. 



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



Re: Database connection question - seeking expert opinion

2005-01-13 Thread Erik Weber

Manisha Sathe wrote:
Hi all,
This is to give big thanks to all. 

Erik - i will go thr it - i think i need some some time to grasp it.
 

You are welcome. Please note that there are many good patterns or idioms 
for this sort of thing -- check as many out as you can, including 
frameworks like iBatis, Hibernate, (as was suggested) etc. Oh, and don't 
forget JDO, because it looks like Sun is sticking with it -- maybe it's 
bigger for the EJB crowd. I'll say, frameworks are great, but ask, are 
you interested in being a specialist of vendor products, or a 
programmer? I suggest you should at least be a little of both . . . Me, 
I like to build stuff on my own because I always have the attitude that 
I can do it better (sometimes a costly attitude :) And yes, it takes 
years to learn all this stuff!

It certainly will help you to read Sun's JDBC tutorial, and the J2EE 
tutorial, which is getting better (I still think building it around the 
"deploy tool" -- the EJB part anyway -- is one of the worst ideas I've 
seen . . . how is that going to help you learn anything? The way to do 
it would be to pick three or four containers and deploy the same 
examples in each . . . It never taught me anything about the deployment 
descriptors doing it that way.). I did learn a *lot* from reading the 
Servlet specification, even though it's not a tutorial. Also, the Tomcat 
docs are pretty good -- especially the DataSource stuff. That "first 
webapp" section helped me a lot back in the early Tomcat 3 days. :) I 
suggest, even if you aren't using Tomcat in a professional capacity, 
that you learn to use it anyway. It will be worth the time.

Oh, and if you don't use Ant yet (you probably do even if it's under 
some IDE), you are in for a treat! Don't forget to check it out!

Erik

Regards and Have a nice day,
Manisha
Erik Weber <[EMAIL PROTECTED]> wrote:
Manisha Sathe wrote:
 

I am still new to struts and even servlets. Last time when i developed 
servlets, i created one common class method to get the connection (with regular 
JDBC call). All database related parameters i stored in a constant variable 
file.
   

That's the way I do it, with or without Struts, with or without a 
DataSource that pools Connections. Make a ConnectionManager class with 
either a static "getConnection" method, or an instance method if you are 
using multiple DataSources and a singleton per DataSource. Then all the 
rest of your app needs to know is ConnectionManager.getConnection(), or 
ConnectionManager.getConnectionManager("config_name").getConnection().

Put the config data in a constant file or a properties file. Include 
both the information needed to obtain a DataSource from the naming 
server and (possibly) the information needed to obtain a Connection 
directly from DriverManager. Write your ConnectionManager so that if it 
can't find the DataSource or get a Connection from it, it will log an 
alert and (possibly) get one from the DriverManager. If it finds the 
DataSource and can get a Connection from it, it should cache the 
DataSource reference so that it doesn't have to repeat the lookup:

protected DataSource dataSource;
protected void init() {
try {
InitialContext ic = new InitialContext();
//use JBoss' naming server
Object ds = ic.lookup("java:/MyDataSourceName");
//use Tomcat's naming server
//Object ds = ic.lookup("java:/comp/env/jdbc/MyDataSourceName");
dataSource = (DataSource) PortableRemoteObject.narrow(ds, 
DataSource.class);
}
catch (Exception e) {
//problem!
}
}

public Connection getConnection() {
try {
return dataSource.getConnection();
}
catch (Exception e) {
//do something about it
return null;
}
}
Also consider including cleanup methods.
Your DAOs in any type of Servlet application can use this 
ConnectionManager class, which has no knowledge of Struts (why should 
it?). With that said, your DataSource implementation is much more 
important than where in your code you configure your DataSource and 
distribute your Connections (I have had problems with DBCP and leaks 
which may or not be my fault; there are other open source DataSource 
implementations). You don't gain anything that I know of by configuring 
Struts to know about your DataSource.

Typically in Struts I do something like this:
Action.execute --> Manager.get or Manager.put --> DAO.query or 
DAO.insert/update (using ConnectionManager).

Also, it's important to clean up connections properly, if you are using 
a DataSource that pools connections. Use this idiom or similar:

Connection c = null;
PreparedStatement p = null;
ResultSet r = null;
ArrayList items = new ArrayList();
try {
c = ConnectionManager.getConnection();
if (c == null) throw new SystemException("no database connection 
available");
String sql = SQLManager.getSQL(SQLManager.GUMMY_BEAR_FLAVORS_SELECT);
p = c.prepareStatement(sql);
r = p.executeQuery();
while (r.hasNext()) {
//add gummy bear flavors to list
}
p.close(); //also closes r
p = null;
c.close();
c = null;
return items;
}
//possibly

Re: html:hidden query

2005-01-13 Thread Kishore Senji


Note that  is just enough to populate
the text box. The  in the body of  doesn't do
anything.


On Wed, 12 Jan 2005 23:34:27 -0800 (PST), Manisha Sathe
<[EMAIL PROTECTED]> wrote:
> Following i could get it but now i want this inside html hidden form tag.
> 
> 
> 
> 
> 
> But If i use hidden tag then gives me error saying hidden can not have value. 
> How can i put my bean data in   ?
> 
> regards
> Manisha
> 
> Janarthan Sathiamurthy <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> If you have a bean by name myBean in request scope, a property of the bean by 
> name myProperty can be displayed in the jsp page by -
> 
> Best Regards,
> Janarthan S
> 
> Manisha Sathe wrote:
> I have Add/Edit/Delete for one database table.
> 
> For Edit what i want is to get the values from database and display it on 
> form as default.
> 
> What i am doing is ->
> 1)First calling one action handler getting the values from database and 
> putting inside one data bean. Putting that bean inside request scope then 
> forwarding to Edit Form
> 2)Inside Edit form I want to get these values as by default for text box
> 
> I tried something many different combination using cout / html:bean... etc 
> etc but i am not getting the values.
> 
> Is there any good solution for getting default values inside Edit Form?
> 
> regards
> Manisha
> 
> 
> -
> Do you Yahoo!?
> Meet the all-new My Yahoo! â Try it today!
> 
> -
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> 
> -
> Do you Yahoo!?
> All your favorites on one personal page â Try My Yahoo!
>

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