If you call a function inside another function and there is not
decoupling and multithreading involved, then, of course, all things
being equal, the first function cannot continue until the second
completes. Is that an answer to your question?
crack
On Wed, 27 Oct 2004 11:13:08 +0530, Rajesh
Hai McGrady
I cant get you .
I am writing a public final class inside that a normal public function which
created a db connection and workis with it
Inside finally of that function am calling static functiosn like
Commons.closeResultSet(resultSet);
Commons.closeStatement(oStatement);
I am not sure why what I said does not make sense to you, Rajesh.
When you do something with a processor, it takes time. So, of course,
if you run the code you mentioned it will take the time it takes. Is
there something other than that you are asking? I appreciate that we
may be looking at a
Ashish Kulkarni wrote:
Hi
Is there example for handling multipage form, which
handles validation on each page, and handle
forward-backward navigation buttons.
Ashish
Hi Ashish
Could you ellaborate what you mean? The way I'm understandig this is
that you have severeal pages with a form on each
Rajesh wrote:
Hai McGrady
I cant get you .
I am writing a public final class inside that a normal public function which
created a db connection and workis with it
Inside finally of that function am calling static functiosn like
Commons.closeResultSet(resultSet);
I personally use a multithreaded pool for my database connections.
Jack
On Wed, 27 Oct 2004 08:40:10 +0200, dmu2201 [EMAIL PROTECTED] wrote:
Rajesh wrote:
Hai McGrady
I cant get you .
I am writing a public final class inside that a normal public function which
created a db
I have sympathies with those who don't offer shared JVMs, i think that
shared JVMs should only really be used if there's a mainly static site
with say a contact form.
Allowing anyone upload anything to a shared JVM means s/he could bring
em all down.
Glad you found something.
Mark
On 27 Oct
The next Silicon Valley Web Developer JUG meeting will convene at 6:30pm on
Wednesday, November 10th, at Netscape in Mountain View. This is another
co-hosted meeting with the Silicon Valley Java User Group
(http://www.svjug.org). Special thanks goes to Netscape for providing the
meeting space and
Hi all!
I have a small problem:
I am creating a web-application with struts, which contains many jsp-pages. At the
moment I use the concept copy pasting the layout into each page. I read much about
including parts by jsp-commands, templates and tiles and try to use tiles. But I do
have one
Thank you for your help!!!
I tested the redirect set false but I don't know why,
the ActionForm is always reset at the end of the
execute method.
My Struts Config is like this :
form-bean name=ContactForm
type=com.x.gui.wif.directory.ContactForm/
action
Hi,
There is an example in the file tiles-examples-def.xml in tiles-doc.war
definition name=examples.tabs.summaries.body path=/layouts/tabsLayout.jsp
put name=selectedIndex value=0 /
put name=parameterName value=selected /
putList name=tabList
item value=Portal
Hai all,
is it possible to use EL in Struts 1.1 ?
Struts-EL how to use with Struts 1.1.
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the
Hai all,
is it possible to use EL in Struts 1.1 ?
Struts-EL how to use with Struts 1.1.
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the
is it possible to use EL in Struts 1.1 ?
Yes it is. Just insert this in the top of your JSP page:
%@ page isELIgnored=false %
Enjoy...
Claus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hai Claus,
Thanks :)
After i added the line
%@ page isELIgnored=false %
In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3
If i need to display can i just add it as
img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40
?
Regards,
Hai Claus,
Thanks :)
After i added the line
%@ page isELIgnored=false %
In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3
If i need to display can i just add it as
img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40
?
Regards,
Hi!
I know that this is and old issue but i'm not satisfied with solutions.
We have used links with images to go to actions without forms and it works
fine.
Now we got demands that we must use html buttons on pages for accessability.
I've seen
two workarounds, use a dummy form or regular html form
You can put what ever you like in the tile attributes. I store the
resource keys so that they can be looked up depending on locale.
Example - using a welcome page and a view shopping cart page
In your tiles definition
welcome page:
definition ...
put name=title value=welcome.title /
...
Hi Rajesh
In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3
If i need to display can i just add it as
img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40
I'm afraid not since the method signature is
request.getParameter(String) and
Hi
Can someone point out why this do not work, or why this work?
What this does, get a Actionform, set a value in it, add the ActionForm
into an Vector, set the Vector into Session.
Strangely the new ActionForm is not displayed in the JSP returned by
ActionForward. It only appears if the
Hai Claus,
The code
img src=images/category${cagegory.cagegoryId.gif} width=120
height=40 /
Is not parsed and directly appairs in the html source code.
In my lib directry i have standard struts jars some site they added jstl.jar
and struts-el.jar.
I redownloaded struts1.1 but in the
Hai Claus,
The code
img src=images/category${cagegory.cagegoryId.gif} width=120
height=40 /
Is not parsed and directly appairs in the html source code.
In my lib directry i have standard struts jars some site they added jstl.jar
and struts-el.jar.
I redownloaded struts1.1 but in the
I am not a big struts giant :)
But let me give my suggestions on ur doubt
In the case of links we are just invoking a java (acion) file . If we need
to send some value through links to action file we need to send as parameter
from our link.
HTML:FORM tag is mainly meant for passing form
We are decorating each request object for our requirements.
MySpecialRequest customReq= MySpecialRequest(request);
Also , MySpecialRequest extends HttpRequest
If the content type is multipart/form-data ,also struts decorates our request object
in
processMultipart method and returns
Rajesh wrote:
Hai Claus,
The code
img src=images/category${cagegory.cagegoryId.gif} width=120
height=40 /
Is not parsed and directly appairs in the html source code.
You would have to use the struts html tags. I forgot to mention that, sorry.
try
html:img
Sebastian Ho wrote:
Hi
Can someone point out why this do not work, or why this work?
What this does, get a Actionform, set a value in it, add the ActionForm
into an Vector, set the Vector into Session.
Strangely the new ActionForm is not displayed in the JSP returned by
ActionForward. It only
:) My Boss :0
How not working for me then
Should i add any taglib ???
Can u give em any URL i can get basic use of EL ${...} objects
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it so simple
that
:) My Boss :0
How not working for me then
Should i add any taglib ???
Can u give em any URL i can get basic use of EL ${...} objects
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it so simple
that
Now this is a Java question, if XXX newForm = (XXX) form resulted in
form and newForm having the same memory space? How do I really make a
duplicate copy with different memory space (beside using new, or is new
the only solution)?
Sebastian Ho
On Wed, 2004-10-27 at 17:44, dmu2201 wrote:
Rajesh wrote:
:) My Boss :0
How not working for me then
Should i add any taglib ???
Yeah you have to use the HTML and Bean taglibs:
%@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/tlds/struts-bean.tld prefix=bean %
replace the uri with the relative path to
On Wed, 27 Oct 2004 12:43:15 +1000, Ben [EMAIL PROTECTED] wrote:
How do I obtain the Realm context or get the current realm in an
ActionForm? I would like to sign in the users after they have signed
up using my RegistrationActionForm.
Tue, 26 Oct 2004 20:49:16 -0700,
Craig McClanahan [EMAIL
hi
i am using nested checkboxes to display an array of
checkboxes - each row belonging to a new entity.
i also want the form to read these checkboxes when
they are selected(true) and unselected(false).
i have been able to implement the display but the
while reading the form, i get a union of all
Not sure I've i've understood or not but wouldn't a
jsp:useBean id=nav scope=request class=com.domain.package.NavBean /
work?
Perhaps even use one of thise LazyDyanBeans i keep hearing about in
the beanutils package.
Perhaps I've missunderstood the problem.
Mark
On Wed, 27 Oct 2004
Hi,
Due to the requirements related to i18n in my app I use characters that are encoded
like #322; or #243; and so on. If the validation fails the values typed in the
html:text.../ or html:textarea../ are remembered and return to the input with
those charecters escaped - that means if you
Implement the Cloneable interface on your ActionForm and call XXX
newForm = (XXX)oldForm.clone(). Read the JavaDoc on Cloneable and the
Object.clone() method for more information.
-- Jeff
dmu2201 wrote:
Sebastian Ho wrote:
Now this is a Java question, if XXX newForm = (XXX) form resulted in
This is normal behavior. The reset method is only to clear the values
of checkbox fields, not to set all fields in the form to initial values.
Read the JavaDoc on the ActionForm.reset() method for an explanation.
-- Jeff
sqdf qsdf wrote:
I tested the redirect set false but I don't know why,
It's actually pretty straightforward. Just define a title attribute in your
tiles-defs, as you would any other attribute. Override it for each page that requires
a different title. For example:
tiles-defs.xml:
*
definition name=app.base path=/tiles/layouts/baseTemplate.jsp
Hello world,
Before we integrate authorization/authentication based on a sun one
identity server policy agent, i would like to make something more
simple. I'd just like to build an authorization/authentication system
relying on the login-config.xml file of my jboss3.2.2 and the web.xml
and
Maybe it was a bad explanation of my problem.
In our project we have demands on accessability that affect what components
we are using.
In current implementation we have link tags(with images nested) for
submitting forms, for links and so on.
This works fine but if a user has to increase text in
Sorry, Joe. I should say by PLA's comments. At that time I couldn't decide which
hosting company to choose. So I just see which has been chosen by the email list
members.
And thanks for your answer. One more question: Does that mean their server won't look
up for my own web.xml?
Thanks again.
Here is a good resource that I used.
http://www.javaworld.com/javaforums/showflat.php?
Cat=2Board=JavaSecurityNumber=2500page=0view=collapsedsb=5o=fpart=1%3E
-Matt
On Wed, 2004-10-27 at 13:39 +, liooil wrote:
Hello world,
Before we integrate authorization/authentication based on a sun
Error messages display as follows.
[ServletException in:/layout/menu.jsp] null'
java.lang.ClassCastException at
org.apache.jsp.layout.menu_jsp._jspService(menu_jsp.java:193) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
...
...
after adding a few lines to test in the
Decide if you want to use an action or a tiles controller.. Or a tiles action..
You can use an action if you return null rather than a forward (well
for a forward) and use the controllor url attribute. But this means
wiring an an action and a tile/ controllorUrl=/myaction.do
Mark
On Wed, 27
Mark,
It is my 1st trial of using Tiles.
I do not know how to choose. What are you using?
Could you show me some fragment codes with
struts-defs.xml,
struts-config.xml
action or controllerSomething?
Thanks
On Wed, 27 Oct 2004 17:26:55 +0200, Mark Lowe [EMAIL PROTECTED] wrote:
Decide if
What are you trying to do have a constant navigation system?
TilesAction is like Action except it has the tiles context aviable
giving easy access to values in you tiles defs.
TilesControllers let you do stuff to tiles defs before an action.
You current code should work if you map the action
Hi,
I am hoping there is a simple way to do this, but can't find anything in the
docs. I have an object that has a has-a relationship with itself.
Basically, it's like a folder explorer, i.e., a folder can have one or more
folders under it. Each of those folders can have one or more folder under
Nested tags with tiles inclusion, can get you on the road.
-Original Message-
From: Chaikin, Yaakov Y. [mailto:[EMAIL PROTECTED]
Sent: woensdag 27 oktober 2004 17:55
To: StrutsUser (E-mail)
Subject: Recursive iteration
Hi,
I am hoping there is a simple way to do this, but can't find
Hmm ... looks like RequestProcessor.processMultipart() always uses a
MultipartRequestWrapper if the content type is multipart/form-data.
The controller setting you are trying to change sets the
MultipartHandler class, not the request wrapper class.
One could argue that the wrapper class ought to
I've never developed an open source database web app.
Since each open source product only documents its part
of the whole process, I've had some trouble finding a
documented step-by-step procedure for doing the whole
thing. So I tried to make one by patching together
bits from the documentation
Rajesh,
Have you tried one of these approaches:
1) Just a JSP 2.0 application server or web server?
2) Use the Struts-EL taglibs (bean-el, struts-html-el, etc.) located in the
/contrib folder of the 1.1 release?
Regards,
David
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Dan,
I skimmed over your steps outline and it looks like you should turn that
into a book for beginning contractors or webapp developers. It might sell a
few books too. :)
Regards,
David
-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 12:52 PM
Hi
Is there any code out there or any one worked on a
framework, where we can define SQL statements in XML
file and at runtime java program will read this XML
file, build the SQL if prepared statement and execute
it and return a ResultSet
What may be the points to be taken into consideration
if i
Hi
Has anyone developed a data entry screen which spans
more then one jsp page,
This framework must do validation on each page, and
provide navigation buttons to go one page to other or
come back and see the data entered
How do i processed with this requirement
Ashish
Ashish,
Check out the validation.xml page=NUMBER attribute. See Multi Page
Forms at: http://struts.apache.org/userGuide/dev_validator.html
Additionally, handling page navigation depends on how you set it up.
If you set up one action per page but using the same validation.xml form,
you could
Look at iBatis.
robert
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 1:02 PM
To: [EMAIL PROTECTED]
Subject: [OT] SQL in XML file
Hi
Is there any code out there or any one worked on a
framework, where we can define SQL
Ashish,
Where do you want your resultSet returned? You can use Hibernate(.org) in a
webapp or stand-alone (even command line) program. It uses XML
configuration files. If you're looking to start the data layer and have it
run a prepared statement to put into memory for later use, you could do
It's not exacly what you're looking for, as it's meant for testing, but
you might want to take a look at DBUnit. At least you can look at the
source code:
DbUnit has the ability to export and import your database data to and
from XML datasets
http://dbunit.sourceforge.net/
Thompson
Ashish
LOL. Thanks, David. I think if the whole open source
community was one company, we wouldn't even need a
book. We'd probably just have a wizard.
--- David G. Friedman [EMAIL PROTECTED] wrote:
Dan,
I skimmed over your steps outline and it looks like
you should turn that
into a book for
Dennis,
Web server like tomcat have rewrite modules (mod_rewrite) where you can
sense an incoming URL and parse it to make it go where you wish. See:
http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
Also, I'm not sure if a filter in a java web (or application) server might
do the trick.
Ryan,
I posted a code snippet on how to send an HTTP request behind the scenes in
an Action some time ago. This might help if you change the paypal specific
stuff to be your type of transaction:
http://marc.theaimsgroup.com/?l=struts-userm=109529231331622w=2
I have no idea what a
Hi
This is what i want to achieve by keeping the SQL
statement outside java code,
I can change the SQL statement with out having to
compile the java program.
The resltset will be returned to another java program
So ClassA calls ClassB, ClassB reads my.xml file,
which has a SQL statement, ClassB
Ashish,
I've never heard of a data layer that looks proactively at a configuration
file. However, you could make your ClassB check the timestamp of the
configuration file and reload it if it changed since the last time you
looked at it (if you store the modification timestamp or something like
What could lead to a run-time error such as:
[ServletException in:/frame/content/content.jsp]
Exception creating bean of class
org.dhsinfo.content.AddFileForm: {1}'
The strange thing is that the application worked
without any problem before. I did not touch anything.
I re-ran the application a
I am trying this simple struts application here, that uses following:
global-forwards
forward name=welcome path=/Welcome.do/
/global-forwards
and under action-mappings :
action path=/Welcome forward=/pages/Welcome.jsp/
However, I am getting following exceptions.I
Are you using a JSP 1.2 or JSP 2.0 container? If you're using a JSP 1.2
container, you use the jars/tlds in contrib/struts-el/lib. If you're
using a JSP 2.0 container, don't use Struts-EL. I didn't see in any of
these notes where you said what container you're using.
-Original
Struts Console version 4.8 is now available.
http://www.jamesholmes.com/struts/
Download Now:
http://www.jamesholmes.com/struts/struts-console-4.8.zip
-- OR --
http://www.jamesholmes.com/struts/struts-console-4.8.tar.gz
Struts Console is FREE software.
Changes with Struts Console v4.8
*)
Trying to invoke a tile definition via DefinitionDispatcherAction. All I
get is a blank page. Nothing in log file.
This URL shows up in the address
http://oc4j.server.com/labor/viewWeekSchedule.do;jsessionid=0a021a42502f
3623a2117e432bb4d1b48a258cd6cd?def=page.viewWeekSchedule
The HTML is pretty
FYI, here is the debug message from DefinitionDispatcherAction class.
[App=LS][Oct-27 16:41:31:199]
org.apache.struts.tiles.actions.DefinitionDispatcherAction (DEBUG) - get
Definition {name=page.viewWeekSchedule, path=/viewWeekSchedule.jsp,
role=null, controller=null, controllerType=null,
James, thank you! I've been looking forward to this.
Out of curiousity, it doesn't look like it handles the new and improved
way of defining args in validator.xml files as mentioned at the end of
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004
Do the arg0, arg1, arg2 attributes really
James, thank you! I've been looking forward to this.
Out of curiousity, it doesn't look like it handles the new and improved
way of defining args in validator.xml files as mentioned at the end of
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004
Do the arg0, arg1, arg2 attributes really
Hi, all,
While everything works well on my own server, it seems their server can find the
action forward specified in JSP file, but cannot find the mapping specified in action
servlet. Anyone know why?
Thanks in advance.
Tong
-
Do you
thanks
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 11:25 AM
To: Struts Users Mailing List
Subject: RE: mapping a html page request
Dennis,
Web server like tomcat have rewrite modules (mod_rewrite) where you can
sense an
If you change your servet mapping you can have whatever file suffix you want,
change *.do to *.html
beware that doing this will route all *.html requests through the
action servlet.
if you just need to forward to a static html page then forward
name=sucess path=/myfile.html redirect=true /
Hi
I dont do any thing that complemenated, this is what i
had in mind my xml file will look some thing like this
xml
sqlSelect * from ABC
parm type=java.lang.Stringmyfied/parm
/sql
Then my java program will read this XML file and build
a preparedStatement like
pstmtSQl = SELECT * from ABC where
Hai
Am using Tomcat5
Its supporting JSP2 right
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that
Rajesh,
If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
%@ page isELIgnored=false %
Remember to use the standard struts tags, not the contributed struts-el
tags.
Regards,
David
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27,
Hi all,
I'm using LookupDispatchAction to submit a form with multiple submit
buttons. The labels of the buttons are translated. The translated strings
are in a .properties file. I'm able to run the web app fine in English but
when I switch to Korean none of the the submit buttons work and I
I use Tomcat 5.0.27, I don't use the isELIgnored attribute, and I do
use the struts-el tags (Struts version 1.1), and everything works fine.
Erik
David G. Friedman wrote:
Rajesh,
If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
%@ page isELIgnored=false %
Remember to use the
All of your problems are caused because LookupDispatchAction creates a
reverse mapping from the value of a parameter to its key, in order to
get the method name. This is not only resource intensive but also a
constant source of the sorts of difficulties you are experiencing. You
can find what are
79 matches
Mail list logo