tag to check value of bean

2002-07-12 Thread rainer jünger

Hi,

can I compare an attribute value of a bean with the logic TagLib?

eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.

How would the logic tag look like??


My suggestion that doesn't work:

   my output
 

thanks!! Rainer





ActionServlet question

2002-07-09 Thread rainer jünger

Hi,

I have a general problem in understanding a Action servlet.
Is the servelt always involved when I access the belonging URL?

e.g.:
 
  
  
 

I access the *something*/trinkwasserform action. In that action I am logging a text to 
the serverlog. I am realy supprised that the logged text showes up only once within 
the log!
Isn't the Action Class always processed when I call the URL (e.g. /trinkwasserform ?)

thanks, Rainer



preview view of a form

2002-07-09 Thread rainer jünger

Hi,

after filling in the form I want to present the user a preview of what she/he entered. 
Pushing save will make data persistance, pushing edit brings back the form with the 
data in the form fields.

How can I realize this with struts?
When I send the control back to the form it always is empty! All data are lost. the 
scope of the action is session.

Rainer



No bean found under attribute key

2002-06-27 Thread rainer jünger

Hi,

When I change the scope in the strus-config.xml form an action to session I
am receiving the below exception.
With request-scoupe everything works just fine! So I cannot understand why
once the Bean can be found and when the scoupe is session it cannot?

My setup is as follows:

struts-config.xml:
.
.

.
.
 
 
  
.
.
thanks für your help!

Rainer

2002-06-27 19:25:47 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: No bean found under attribute key
trinkwasserInputForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
 at
org.apache.jsp.form_0005ftrinkwasser$jsp._jspService(form_0005ftrinkwasser$j
sp.java:596)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
 at
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j
ava:947)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:245)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
 at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
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:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
 at
org.apache.catal

Re: data-sources configuration

2002-05-07 Thread Rainer Jünger


Thanks for the confirmation!
In general the context is clear to me. I just wanted to have some figures.
Actually, how many connections a MySQL can handle? Do you use something like
5 and 40 or is that already to high? I need a startingpiont wherefrom I can
begin my experiments ; )

thanks rainer


> you are correct about min/max.  As to the values, that's going to be
> subjective.  If you don't want your users to fail, then your max better be
> as large as your concurrent users.  The min is trickier.  You need to
> balance your resources against response.  If you are feeling that the
> response is OK even with a low number then I don't see the point of having
> more than a couple for the min.
>
> > -----Original Message-
> > From: Rainer Jünger [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 07, 2002 2:33 AM
> > To: Struts Users Mailing List
> > Subject: data-sources configuration
> >
> >
> > Hi,
> >
> > we are using the pooling of Struts. I know there are better
> > ones. But we think it should do before the new release(1.1) is out.
> > I am having a question on two attributes within the
> > data-source tag of the struts-config.xml file
> >
> > 1) There are two values to be set:
> > maxCount="40"
> > minCount="5"
> > Is it right that minCount means the minimum number of pooled
> > connections which are always provided and maxCount is the
> > maximum number of connections?
> >
> > 2) How can I find out about the best configuration? Are there
> > any values out of your experiance you can give?
> >
> > thanks Rainer
> >
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




alternative to findDataSource()

2002-05-07 Thread Rainer Jünger

Hi,

since findDataSource is going to be deprecated and the Struts Javadoc tells:
Look up data sources directly in servlet context attributes
Could someone give me a sample on this?

thanks, Rainer


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




data-sources configuration

2002-05-06 Thread Rainer Jünger

Hi,

we are using the pooling of Struts. I know there are better ones. But we think it 
should do before the new release(1.1) is out.
I am having a question on two attributes within the data-source tag of the 
struts-config.xml file

1) There are two values to be set:
maxCount="40"
minCount="5"
Is it right that minCount means the minimum number of pooled connections which are 
always provided and maxCount is the maximum number of connections?

2) How can I find out about the best configuration? Are there any values out of your 
experiance you can give?

thanks Rainer




atction-mappings and default action path

2002-05-01 Thread rainer jünger

Hi,

we would like to have a default action at the end of our mappings.
So if none of the other paths matched that the last or default one would be executed.
As far as I know ther is basically no fist or last. But still there must be a solouton 
something like:


.
.
.
.




How can something like this be done??

thanks rainer jünger



Re: atction-mappings and default action path

2002-05-01 Thread Rainer Jünger

Hi Mark,



> retrofitting
> most times just ends up being a kludge.

you are feeding my doubts!

R.


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




Re: atction-mappings and default action path

2002-05-01 Thread Rainer Jünger

Hi Mark,


> Why? (really)

We need to integrate an old own designed MVC architecure into Struts but do
not wont to rewrite have of it.
The old "ActionServelt" (controller) or dispatcher is getting his forward
paths out of a databasebean and it just works fine.
But for new interaction with userforms, login and database manipulation we
want to use Struts in future.

Rainer


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




atction-mappings and default action path

2002-05-01 Thread Rainer Jünger

Hi,

we would like to have a default action at the end of our mappings.
So if none of the other paths matched that the last or default one would be executed.
As far as I know ther is basically no fist or last. But still there must be a solouton 
something like:


.
.
.
.




How can something like this be done??

thanks rainer jünger



"default"

2002-04-26 Thread Rainer Jünger

Hi,

I would like to forward to a certain path when all the other options (like 
  or ohter ) within the action.xml were past without 
maching.
Has this someone realized so far?

thanks, Rainer