This is what I am trying to do is to populate the same nested JSP template
over and over again with different page data coming from the database. This
is the process I imagine:
- The user presses a link containing a pageID, which in turn gets send to
Struts as a request.
- The associated
Subject: about connectionPool
From: Gary [EMAIL PROTECTED]
===
Since most of u r using Structs, what kind of database connection pool do u
highly recommend to adopt? ( shareware will be better)
Thanks.
--
/**
* Name: Gary Wang
* Tele: 010-65546668-8119
* Mail: [EMAIL PROTECTED]
*/
--
To
hello everybody,
i require an alternative to tomcat 4.0.1, i have upgraded from tomcat 3.2.1 and
am looking for a freeware which will reduce my configuration setting overheads
to minimum , and also has good document to support it..your opinion will be
highly appreciated..i had also applied
Hi,
i got problem with .properties file. when i'm dysplaing errors form my properties file
it's not correctly printed. instead of special local characters are dysplayed only ?
symbols. all my JSP files are encoded in Cp1250 and content-type contains
charset=windows-1250.
everything else works
Hello there !
I was wondering if anybody was using Oracle9i JDeveloper with Struts.
If someone is...How do you go about configuring JDeveloper to use it ?
Thanks in advance.
Baz
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
I have a form with a multiple select box.
class myForm1 extends ActionForm {
String[] getFields() { ...}
void setFields(String[] fields )
...
}
html:select property=fields multiple=1 size=3
html:options collection=list property=value
this works ...
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19545.html
Martin Fekete
- Original Message -
From: Martin Fekete [EMAIL PROTECTED]
To: Struts Users List [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 10:10 AM
Subject: problem with properties file
Barry Dreckmann wrote:
Hello there !
I was wondering if anybody was using Oracle9i JDeveloper with Struts.
If someone is...How do you go about configuring JDeveloper to use it ?
I'm using struts with JDev O9iAS RC (Win NT).
JDev seams to have some pbs using a .jar in the WEB-INF/lib
Typically you would derive it in order to add a new property, which value
can be set in the struts-config.xml (as Ted described in his post). This
property can be used for example to control the logic of
ActionForm.validate() or of Action.perform(): both are given the
ActionMapping instance as
From what I have seen by the postings, Poolman is the favorite.
Dick Starr
- Original Message -
From: Struts Newsgroup @[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 2:25 AM
Subject: about connectionPool
Subject: about connectionPool
From: Gary [EMAIL
Hi folks...
I have a problem. What should i do so that the session ids do not appear in
the hyperlinks or in the address bar when you execute a link or an action?
coz right now, here is what comes out on my address bar.
You can call the HttpSession.Invalidate() method, if you are not using Session any more
Alvin
alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München
Leopoldstr .3
80802 München
Germany
Office Tel + 49.89.21025979
Office Fax + 49.89.21025980
[EMAIL
can somebody tell if exists some report taglib ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
You can get headers etc. using tiles...
Have a look at www.DBForms.org
Jon
Rubens Gama wrote:
well, i have a ResultSet object populated, ok?
i want a header..
page break...
a footer
the report's body can use the ResultSet to show the data in a determined
way(like 3 columns and 60
Well, I've found one solution:
logic:present parameter=fields property=fields
logic:iterate id=fieldsValue
collection=%=request.getParameterValues(fields)%
html:hidden property=fields value=%=fieldsValue%/
/logic:iterate
/logic:present
Is there a better way to do this?
--
Try:
http://dyn21:8080/struts-example/admin/reload.do
The .do suffix is needed, only then the request will be forwarded to
ActionServlet.
João.
Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
http://www.visionnaire.com.br
Tel/Fax: +55 41 373-7400 r: 217
- Original
One option would be to create a frameset
with a full screen frame as so:
HTML
HEADTITLEWebApp/TITLE/HEAD
FRAMESET
FRAME name=main src=/webapp/appEntry.do scrolling=auto
frameborder=no
/FRAMESET
/HTML
all the user will see in the address bar
is http://server/webapp/appEntry.do and the
page
Hi,
I have used option two.
The code for my servlet is below. It works for me. If you have any
suggestions, enhancements please send me a note.
Alex
package com.sirius.struts.action;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.log4j.*;
public class
hi all,
sorry first for one more question on this topic,
but I am trying to run struts-sample and another application using
WebSphere 3.5.4 on Linux 7.2 for almost 4 days without success.
I was reading the installation hints
http://jakarta.apache.org/struts/installation-was352-x.html
I agree with Alex that current strut taglib has a big
deficiency. It allows only access through get/set
methods of a property. How do I write the size of
collection object to a page without resorting
scriptlet or %=? How do I write toString() output to
a page without resorting scriptlet or %=?
Here are some steps I compiled for the guys at work.
Note: WEB-INF for struts will automatically be
recognized as a web-module. (There is no talk of
struts below). Also note that the list of steps is
for an older release 3.3 beta 6. The latest release
of netbeans may not need all of the steps.
Use this
-
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.ActionServlet;
import org.apache.log4j.xml.DOMConfigurator ;
import org.apache.log4j.Category ;
import
Thanks, gentlemen. I start to get the idea but am still fuzzy on how to
issue logging requests in my custom Action classes. Do I have to
declare a static Category variable in each and every Action class I
write? Please share some code on how logging is actually done, now that
I know how to set
Hi
Could anyone suggest a good way to code these lines in struts.I Am converting normal
JSP to a struts JSP and launchsearch is an Javascript function which is to be called.I
am totally confused and wanna do it in struts .
LinkedList list = (LinkedList) pd.getValue(field);
use cookies
- Original Message -
From: Henrik Chua [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 2:12 AM
Subject: session id appearing
Hi folks...
I have a problem. What should i do so that the session ids do not appear
How about putting a helper class in your session which has methods:-
String stringArrayToTokenizedString(String[] array)
//store array elements delimted by some char that's not in the data.
String[] tokenizedStringToStringArray.
//Use StringTokeniser to build the array again.
Then you
Hi
Could anyone suggest a good way to code these lines in struts.I Am converting normal
JSP to a struts JSP and launchsearch is an Javascript function which is to be called.I
am totally confused and wanna do it in struts .
LinkedList list = (LinkedList) pd.getValue(field);
Hi
Could anyone suggest a good way to code these lines in struts.I Am converting normal
JSP to a struts JSP and launchsearch is an Javascript function which is to be called.I
am totally confused and wanna do it in struts .
LinkedList list = (LinkedList) pd.getValue(field);
Hi all
I am facing a strange problem in Struts.
The situation is as follows
There is a check box (html:checkbox property=allowOffContractPricing
disabled=true /)which is disable and checked.When I submit that page,
the corresponding set method(public void setAllowOffContractPricing(String
Hi,
I just joined this mailing list and I think it is great for
someone starting off with struts and even in the longer term. I need an
opinion on the connection pooling build in struts. Is this safe to use,
how does it behave under heavy load? Can you forward me to an example
where this
Nick:
In Professional JSP Site Design page 608 Ted Husted says ... since the
Struts GenericDataSource is an optional package, its just as easy to use
something else (and in a production environment, I would recommend that you
do, since this Struts package is really not designed for intensive
I'm hoping someone on this list will know the solution to this. I'm using
Tomcat 4.0.1 on a Windows platform.
I start Tomcat and run it in a console window on my machine, but I never see
any logging messages. I *know* they're there, because when I put the same
application on another machine
I just noticed that my error messages are acting strange.
I recently changed to a nightly build (approx 1/2).
For example, instead of getting the text:
You must specify a Contact Name.
I am now getting:
null You must specify a Contact Name. null
There are no substitution parms in the
Should I use an action class for my read-only page or
just using the jsp to call the Model layer directly? I
can understand if the page is large then you can use
the action to load the data, but what I've is a small
page. Do you know what are the guidelines or best
practices regarding the use of
Very simple - use Poolman! All you need to do is to download it, and put
poolman.jar and the poolman.xml location in your classpath. It even has
caching of frequent requests - cool stuff.
Michae
- Original Message -
From: Adrian Theuma [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
you must define in ApplicationResourses.properties:
error.header=
error.footer=
the problem is solved.
ok?
-Mensagem original-
De: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 16 de janeiro de 2002 15:15
Para: Struts (E-mail)
Assunto: html:errors error?
I just
Advanced Javaserver Pages is a great book but I have run into problems with
his tags, as they were compiled with Xalan1 ( now deprecated ) I had to hack
some of his source to work with Xalan 2 to use any xslt related
functionality.
just a note
- Original Message -
From: Vaughan Jackson
I use Tomcat 4.0.x which has connection pooling built in. The pooling jar is
available separately from http://tyrex.exolab.org/. The version bundled with
Tomcat 4.0.1 is missing some configuration options, this may be fixed in the
newer release.
Dave
-Original Message-
From: Struts
Hi Eric, here's how use Logging to provide method call logging.
import org.apache.log4j.Category;
public class myclass {
private static final Category log = Category.getInstance(myclass .class);
public void mymethod() {
try {
log.debug(enter mymethod);
}
finally {
All Logs are in the logs directory which is off your tomcat installation
directory.
Dave
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 January 2002 6:10 a.m.
To: [EMAIL PROTECTED]
Subject: [Off Topic] Turn on Logging in Tomcat 4.0.1
I'm hoping
Hi,
Maybe this is more related on how reflection works, But I'm trying to understand the
behavior here...
Here's my situation:
I have a Bean under request scope with the following methods:
public MyBean {
private java.util.Calendar startDate;
public void
Exactly what does struts do with form files? Does struts use
some kind of intermediate temporary file for storing the file
prior to the user writing the file out to some specified location?
If a temp file is used how does struts determine the appropriate
path for the tempfile?
Thanks
Rob
--
Hi. Does anyone know how to upload multiple files using a single file field -
ie allow the user to choose multiple files in the file select box that opens?
Pretty sure you can't do it in regular HTML, but does anyone know of any 3rd
party tools to do it?
Cheers,
Dave
--
To unsubscribe,
In some of my JSPs I've tried setting the page directive %@ page
session=false % (for performance reasons) but when the JSP includes
bean:message tags this results in the following exception at compilation
time:
java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an
[EMAIL PROTECTED] wrote:
hi all,
sorry first for one more question on this topic,
but I am trying to run struts-sample and another application using
WebSphere 3.5.4 on Linux 7.2 for almost 4 days without success.
I was reading the installation hints
This seems to be an obvious limitation based on Java reflection. By
overloading the setStartDate method you seem to be confusing the write/read
permission mechanism available from JSP. By adding a second method you seem
to lose read capability altogether.
Here's a little workaround - make the
Solution: run LINUX!! Just kiddin' - the logs should be in your
$CATALINA_HOME\logs\ directory (I'm using Windows slashes - hehehehe :-)
If you want them to go somewhere else change the following entry in your
$CATALINA_HOME\conf\server.xml file:
Logger
I have created a class called DefaultAction which extends Action. It
contains some common helper methods which all my actions will use. I
then extend DefaultAction for my actual action fooAction. When I do this
I get 'No action instance for path /foo could be created'. Now, when I
extend Action
Thanks for all the help! The problem (for some reason) was the name of my
property! I simply created another property and its getter that returned
the value of the first property.
John Collard
[EMAIL PROTECTED]
-Original Message-
From: Arron Bates
Sent: Tuesday, January 15,
Is there a struts tag library that does basic authentication?
ken
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello Everyone:
I've come across an interesting issue that I'd like to share with everyone
with the hopes that someone might be able to provide an explanation or
solution.
I have a form with a bunch of text fields. One of these fields I want to
have disabled (disabled=true). So using the struts
disabled elements are not submitted with the form
as per the html spec (below)
http://www.w3.org/TR/html4/interact/forms.html#h-17.12
---begin---
17.12.1 Disabled controls
Attribute definitions
disabled [CI]
When set for a form control, this boolean attribute disables the control for
user
I think adding property role to the page as a html:hidden field will solve your
problem. This way it WILL be submitted with each request.
Ryan
[EMAIL PROTECTED] 01/16/02 02:42PM
Hello Everyone:
I've come across an interesting issue that I'd like to share with everyone
with the hopes that
Hi
I want to get the alphabet of a language based on the
locale. How can I do that? I have to display an index
structure based on the locale. So I need alphabet of
the particular locale which comes in the request.
Any help regarding this would be highly appreciated.
Thanks
Junta
A getter method like...
public int getMyListSize() {
return this.myList.getSize();
}
with a tag like...
bean:write name=myForm property=myListSize /
...maybe?
Arron.
c tang wrote:
I agree with Alex that current strut taglib has a big
deficiency. It allows only access through get/set
You have three options on starting the nested tags.
nested:form - extends html:form
html:form - naturally
nested:root - this is the formless option for starting off. It requires only a
name attribute which has to match the name of a bean which is in scope. This can
be done by defining a bean
Sweet!
:)
Have fun.
Arron.
Collard, John wrote:
Thanks for all the help! The problem (for some reason) was the name of my
property! I simply created another property and its getter that returned
the value of the first property.
John Collard
[EMAIL PROTECTED]
--
To unsubscribe,
Is table[5].minimumSales the tag's name or its property property?...
Have you tried the nested extension for doing this stuff?...
Arron.
TODD HARNEY wrote:
If I have a html:text field on my form with the property named table[5].minimumSales,
wouldn't this result in:
1) A
Arron, was this in some documentation that I failed to read. If so, could
you please point me to it. I will try this at home tonight.
Thanks.
-AP_
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 3:37 PM
To: Struts Users Mailing List
Isnt there a way to get the alphabet of a language?
--- John Hunt [EMAIL PROTECTED] wrote:
Hi
I want to get the alphabet of a language based on
the
locale. How can I do that? I have to display an
index
structure based on the locale. So I need alphabet of
the particular locale which comes
This is how to put it in your action:
List resultList = someClass.getResultList( request );
request.setAttribute(resultList, resultList);
This could also be done by someClass.getResultList directly.
This is how to get it in you JSP:
List resultList = (List)
Hi
I want to have a mouseover effect on a button. When the mouse is not over the button
the button should display graphic A, when the mouse is over the button the graphic
should be graphic B. What is the best way to do this with struts.
I have had a look at the
html:button
tag but am not
s45652001 == s45652001 Tony writes:
s45652001 Hi
s45652001 I want to have a mouseover effect on a button. When the mouse is not
over the button the button should display graphic A, when the mouse is over the button
the graphic should be graphic B. What is the best way to do this
Do you mean to check if the user has a role?
There is support in the logic:present tag and also in the tglibs, the
request taglib(http://jakarta.apache.org/taglib/) There is also role
checking.
Also, I believe the logic:present supports checking usernames also.
Later
Jake T
-Original
Hi Jorge,
Thanks for the info, but in the JSP page, I would like to pass the result list
to the struts taglib, e.g.
html:select property=profileName onchange=submitProfileForm();
html:options collection=resultlist property=name /
/html:select
how do i do that? thanks.
regards,
Jin S. Voon
Is anyone else seeing weirdness with the focus attribute to the
html:form tag? It works fine for me on Windows (NS and IE), but on
Linux, NS never grabs the focus properly. Is this a known bug?
I've attached the html result. It all looks good to me, but yet...
Any thoughts?
Thanks,
-Mark
Hi
This is an old post that follows. I have found the same problem with Struts
1.01. Is this behaviour a bug or is it how Struts is meant to work?
Also can someone please tell me what setting
the value of redirect=true does besides clearing the request attributes.
Cheers
Tony
Hello,
Subject: Re: Struts Connection Pooling
From: Gary [EMAIL PROTECTED]
===
Where could i download it?
Thanks.
Michael Mehrle [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Very simple - use Poolman! All you need to do is to download it, and put
poolman.jar and the poolman.xml
Is the indexed feature supported in 1.0.1 ? don't think so... not sure.
Use the nightly builds.
Struts Users Mailing List [EMAIL PROTECTED] wrote:
If I have a html:text field on my form with the property named table[5].min
imumSales,
sorry for this one
the whole file web.xml
##
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app SYSTEM
file:/opt/IBMWebAS/hosts/default_host/OKBVWebApp/servlets/org/apache/struts/resources/web-app_2_2.dtd
web-app
servlet
servlet-nameaction/servlet-name
could be that bean:write needs a String to be returned by the getter ... and not a
Calendar ? since it is a String that is inserted ...
Struts Users Mailing List [EMAIL PROTECTED] wrote:
Hi,
Maybe this is more related on how
71 matches
Mail list logo