Sashi,
What I would do to get around all this is just create your regular
actions and such.
Then in the JSP that you are calling just forward to the action needed.
Something like this in the jsp will do the trick.
<%@ page language="java" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tag
Hi
(1)
The speech application is developed using vxml, Nuance has provided its own
version of send command to invoke the jsp,
which accept URI of jsp. Though nuance uses strut but it does not allows us
to modify their struts-config.xml.
(2)
The log file (log4j) contain debugging info. In our form
Hmm
1) Why can't it use the XX.do of struts? Its just a resource as far as
an external system is concerned.
2) How do you know the action is not instantiated? Are you getting an
error message in tomcat? Can you send that along if so. Without an error
message I would be want to think that the act
Hi,
My application consists of two major component one is speech application and
other is web application.
The speech application send some data to web application, web app store that
data in database.
The speech application is developed using Nuance VBuilder and it is deployed
in Nuance v-server
Thanks everyone. I really like the idea of using a ServletContext
attribute, but I'm not using the EL, is there a way I can do that
without using the EL?
-Original Message-
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 6:26 PM
To: 'Struts Users Mailing
Dang, sorry I forgot to change the to field, and couldn't catch it
before it went out. But at least it was only about 2K, so shorter than
some reply's in here :)
Al
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Mick,
I figured you would want a copy so I'm sending without you asking :)
Al
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 6:52 PM
To: user@struts.apache.org; [EMAIL PROTECTED]
Subject: RE: Load message resources from DB???
Even if
Actually you have to extend MessageResources, and
MessageResourcesFactory.
I have a quick hack I did up tonight that works for a minimal case. (it
does not do the substitution and such. But if you just have a key=value
and value does not contain {x} in it then it will work. (Actually it
will work
> Even if I could just get some general directions on what method to pull the
> data in, and what method to put the data into what type of container.
> Just something would be good.
I think I remember reading a post about this before.
Start by looking at the PropertyMessageResources source code,
I followed Craig's advice about disableing cookies in the context element of
Tomcat's server.xml file (or the [context].xml file in Tomcat 5.0) and we now
have all our URLs rewritten with the sessionID without having to disable
cookies at that browser. This allows us to run multiple sessions fro
Great tips. Exactly what I was lookin for. Thanks David.
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 6:37 PM
To: Struts Users Mailing List
Subject: RE: Struts , hibernate, and DBCP
Brian,
If you use a Tomcat resource reference to
Even if I could just get some general directions on what method to pull the
data in, and what method to put the data into what type of container.
Just something would be good.
--
Thanks...
Mick Knutson
Systems Developer
Business Direct Services, Wells Fargo Bank
333 Market Street, SF, CA
Care to tell us why you're re-inventing the wheel when there's Spring
and Hivemind? Why is Bridgetown better than these frameworks?
Matt
On Mar 29, 2005, at 5:42 AM, Peter A. Pilgrim wrote:
Yet another IoC container / AOP framework hybrid written and
programmed by
experience J2EE developer / ar
I am still waiting for an example of this as well. I would very much like
to add this feature, but is not critical and I have other things to work on.
If you find an example please let me know.
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineeri
I am still waiting for an example of this as well. I would very much like
to add this feature, but is not critical and I have other things to work on.
If you find an example please let me know.
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineeri
Yet another IoC container / AOP framework hybrid written and programmed by
experience J2EE developer / architect.
Latest new features :
* AOP Service Assembler default implementation
* Lumber Jacque virtual transaction service management architecture
* Support for JTA virtual transact
Does anyone ahve any examples of extending the PropertyMessageResources and
PropertyMessageResources Factory?
-Original Message-
From: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 1:35 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Load me
Brian,
If you use a Tomcat resource reference to initialize your DB pool, be
careful where you put it: the location you place that init reference makes
the difference between YOUR webapp using the hibernate pool and ANY webapp
being able to use your hibernate pool.
Now, since someone posted about
Dear Tarek,
Action example URL:
http://server/my-application/my-module/doSomething.do
Resulting JSP's image example UR:
http://server/my-application/images/some-image.gif
What happens when you use html:img with (depending on your version of
Struts):
a) contextRelative="false"[for 1.1 or earl
Sure.
Here is the code I have for a testApp I have to run tests in (for
Hibernate). Not sure it's such a great practice to stick the
SessionFactory onto ServletContext as far as best practices for
Hibernate are concerned (new to Hibernate), but it works for my small
Hibernate tests.
So,
Step 1: D
Ok.. Im not to sure how that works. Can you explain a little more?
-Original Message-
From: N G [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 4:34 PM
To: Struts Users Mailing List
Subject: Re: Struts , hibernate, and DBCP
Oh... I didn't know that DBCP doesn't initialize the p
ARRG>... but someone beat me to it! hahhahaha
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 4:38 PM
To: Struts Users Mailing List
Subject: RE: Struts , hibernate, and DBCP
This is the first time i actually get to help someone in this user
This is the first time i actually get to help someone in this user list rather
than asking a million questions like a little kid..
I ran into a bunch of problems with the microsoft driver. UGH>. horrible. It
would double my pool size if the app was idle overnight. It wouldnt re-connect
if the
Kris Schneider wrote:
Erik Weber wrote:
If you are using SQL Server, I would say, watch out for the drivers
as much as the DataSource implementation. I have read and heard many
horror stories about the Microsoft drivers and have experienced
problems myself (though pinpointing them is another ma
Oh... I didn't know that DBCP doesn't initialize the pool on server
startup and thus misunderstood your question.
Truth is, if you want to go the easiest route, without having to make
your own Controller, you can just configure your Hibernate
SessionFactory in a listener
(ServletContextListener.co
Erik Weber wrote:
If you are using SQL Server, I would say, watch out for the drivers as
much as the DataSource implementation. I have read and heard many horror
stories about the Microsoft drivers and have experienced problems myself
(though pinpointing them is another matter). There are third
If you are using SQL Server, I would say, watch out for the drivers as
much as the DataSource implementation. I have read and heard many horror
stories about the Microsoft drivers and have experienced problems myself
(though pinpointing them is another matter). There are third party
drivers out
Well all the folks in the Hibernate boards seem to favor either Proxool or
C3P0. I've heard about the complaints on DBCP and am using SQL Server for this
implementation so i'll watch out for connection leaks. It's really not that
hard to switch the pooler, I'll probably give c3p0 a shot with a
Interesting. Yeah, I was going to suggest writing some "trigger" code
for startup, and it looks like that's what you have done. Also, you're
not stuck with DBCP. There are many DataSource implementations out
there, including others that are open source. I was hoping to get around
to reviewing t
Eric Thanks for response. I wrote a follow up that explained my work around.
But to your points, in using commons-dbcp and specifying the initial pool size
of 5, you'd think that it would fire up the pool on application start but it
doesnt. In code, you have to request a connection from the J
In my opinion, the question is on topic.
I'm not sure whether by "instantiated" you mean the pool class or the
connection class. If it's the former, I'm not sure of the answer, but I
would assume that the pool class typically is instantiated at server
startup. If not, wouldn't the JNDI lookup fa
I read that. And that doesn't explain how to create your pool on application
server startup. It only explains how to create a pool on first data call.
I worked around my problem "in struts" by creating a new base Controller as my
action servlet which extends "ActionServlet".
action
com.i
This has nothing to do with Struts:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
Good luck,
NG.
On Tue, 29 Mar 2005 13:40:56 -0500, Brian McGovern
<[EMAIL PROTECTED]> wrote:
> Im using struts, hibernate and dbcp connection pooling. Everything works
> fine
If your filter really wants to do a RequestDispatcher.foward() call
(to go someplace other than the servlet that the original request URI
is mapped to), you can do that too ... you're not stuck with
redirects. That way you don't lose your request parameters and
attributes.
Craig
On Tue, 29 Mar
Yeah, my bad... I cracked open the authorization filter I wrote because I
didn't want to give a wrong answer off the top of my head... problem is,
that filter just redirects to a "Go away, your not allowed in here!" kind
of page, so there was no concern with losing request parameters in that
use ca
Frank's suggestion might work, although note that it would result in
the discarding of all request parameters, which may not be what you
want.
If you have complex session initialization logic in an Action and you
want to use it in the Filter, I'd suggest factoring it out into a
utility class.
Im using struts, hibernate and dbcp connection pooling. Everything works fine
but regarding my connection pool. It gets intantiated on the first time I
request a connection from the DBCP pool. I want it to create the pool when
tomcat starts. I think i can do this with struts, but im not sure
response.sendRedirect(url);
That's what I do. You do get a reference to request, so I would assume
you could get a dispatcher off it and do what you always do. I've never
had a need to try it though.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omny
Hello all,
Although I've been using Struts for small projects for a while now, I
haven't really used filters. Now I am incorporating some
functionality from another project into mine, and the other project
used plain old servlets and filters.
My question is this:
In filter's doFilter method, i
I'd also recommend looking at Javascript Templates -
http://www.trimpath.com/project/wiki/JavaScriptTemplates - which is a
template language like Velocity or JSP but using Javascript written in
Javascript. You'd use this on the client side to process data and
create HTML, then replace the HTML of
Thank you Günther, for your help:
Now it works fine!
Jan-Jaap
Günther Wieser wrote:
i think the example in the docs shows you almost everything:
Next element is
all you need to do is drop the "property" attribute as an array doesn't have
properties. then it should work fine.
so this is an "arr
Erik,
The problem may be that you are using JSP Tags, which are commonly written
to only output links to resources within your context. You may want to
simply think of writing plain old and tags and do it yourself.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tue
You may want to check out sarissa [1], a JS library i've written for
doing this and other related tasks like XSLT and XPath using a
crossbrowser API . It's well documented and open source. There's also a
related turorial at oreilly's xml.com at [2]. I intent to wrap up some
JSP taglibs to ease
Can't you embed a ServletContext attribute (variable) in your links
using the EL? The attribute value could come from an init param and get
set at app startup.
Erik
tarek.nabil wrote:
Hi everyone,
I still can not find an answer to my question, so I thought I'd repost
this and try to make it clea
I reposted it at the same address.
Of perhaps more interest though... I am working on an article covering
this in more details with a few more examples. I'm hoping to finish it
today, tomorrow at the latest.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://w
Hi everyone,
I still can not find an answer to my question, so I thought I'd repost
this and try to make it clearer. I really apreciate any help.
How can I refer to resources that are outside my module in a way that
will not mandate rewriting all the URLs in case I change the location of
my modu
Ken,
Over the year or so I've been subscribed to this list, I've seen discussions
(and read referenced articles) suggesting web servers such as Tomcat do well
for moderate traffic as long as the Session Scope contains less than 1k of
data. Putting 2 integers into Session scope doesn't sound like
I tried those methods once in version 1.1 and when the param was "" (null
string), I received a Stack trace but it worked fine if I didn't specify the
"param=". Of course, this was so long ago I may have that reversed it in my
memory.
Regards,
David
-Original Message-
From: Dakota Jack [
For what it is worth, I agree wholeheartedly with Rick, that this use
of "unspecified(...)" is not wise. If you want a default method, call
it "default(...)" and leave unspecified(...) as it is.
Jack
--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~
---
i think the example in the docs shows you almost everything:
Next element is
all you need to do is drop the "property" attribute as an array doesn't have
properties. then it should work fine.
so this is an "array" version:
Next element in array is
kr,
guenther
--
Günther Wieser
creat
Hi everyone,
I look for an example of that iterates over an array (of
strings):
I am not sure how to display these array-values in my jsp-page: should
this be done with ?
If so: what should I fill for name & property?
Thanks for your help!
Jan-Jaap
--
Rick Reumann wrote:
David Kennedy wrote the following on 3/18/2005 9:01 PM:
> [snip me talking about Layout]
But the above has never been the role of struts - to create view
components.
Yes, I agree and understand the relationships between the projects
better now. I must apologise, much of the pr
Thanks for all the replies! I've found and downloaded the source code.
Btw, just to confirm, coz there are 6 folders within, namely
1. conf
2. contrib
3. doc
4. legacy
5. src
6. web
The source code should be inside src/share issit? Coz there're another 7
folders within src, namely i) example, ii
Thanks for the advice, David :)!
But isn't it more troublesome (coz I gotta manually remove it afterwards :P) /
memory intensive to store variables in session scope instead of request scope?
Coz I thought (from reading somewhere on the Internet) that we should generally
restrict the scope as muc
Hello,
I am using DispatchAction unspecified() method to
populate the ActionForm. Form object in unspecified()
method is coming properly but when I try to access the
properties in my JSP using JSTL it does not show up.
I am putting some values in the form that have no
associated controls in the
> >2. If URL rewriting is the only alternative, is there a way to configure
> >Tomcat to use URL rewriting regardless of whether >the browser allows
> >cookies or not?
Or, to answer the question that was actually asked, set
cookies="false" on the element (in
$CATALINA_HOME/conf/server.xml) that
56 matches
Mail list logo