Hi struts-user,
I apologize in advance for this kind of problem ,but I think it is the best
mailing-list I am aware of :)
So when I use the ant to build my application, there are some error:
Buildfile: build.xml
BUILD FAILED
javax.xml.parsers.FactoryConfigurationError:
Hi,
I would like to learn an easy solution to get a XML part as a parameter of a
method a the current object of the stack.
I explain with an example :
Input XML (configuration file of my application) :
cfg
header
field name="from" value="[EMAIL PROTECTED]"/
field name="to" value="[EMAIL
Hello,
We are
working on File Uploading in struts. The problemwe arefacing is the
"name of the file" stored while uploading. When finished submitting, after the
file is selected a Randomly Generated temp file ( strts13374.tmp ) is generated in _tmp_war_uptest directory. But instead of
this
Has anyone ever tried to use Struts-based applications on a Tomcat 3.2.1
server?
I experience parsing errors porting an application from Tomcat 3.1 (where it
works) to Tomcat 3.2.1 (where it crashes). The error looks like this:
org.apache.jasper.compiler.ParseException:
Hi,
I am using tomcat 3.2. I am calling servlet like this.
http://localhost/employee/servlet/dispPage?p=sales
from servlet I redirecting to jsp page. But jsp page URL coming like this
http://localhost/employee/servlet/disp.jsp
I want URL like this.
http://localhost/employee/disp.jsp
my
Hi,
Lets say you have a web app that runs over a number of web pages in a wizard
fashion. On each one of these pages you need to present the user with a
select box holding lists. e.g. locations, cities, etc. This data is read
from a database and rarely changes.
How would you cache these lists
look at the example struts-upload from one of the later nightly
builds. There is a example included to write the file to disk with a
specified name.
Soeren
Kirubakaran Hello,
Kirubakaran We are working on File Uploading in struts. The problem we are
facing is the "name of the file"
If you use a servlet to initialize your lists, you can simply do a post to
this same servlet whenever you need to refresh... without bouncing the
servers. This can be a cron'd process or done automatically whenever you
edit the lists.
- Original Message -
From: "Natra, Uday" [EMAIL
At 09:15 AM 4/17/2001 -0400, Alex Colic wrote:
Lets say you have a web app that runs over a number of web pages in a wizard
fashion. On each one of these pages you need to present the user with a
select box holding lists. e.g. locations, cities, etc. This data is read
from a database and rarely
You could store the data in Application context as you've stated, but provide a
mechanism for that data to be refreshed (either automatically or manually)
without restarting the server. I haven't implemented this at all, but it seems
possible. I've considered using some sort of date/time stamp,
When I use html:form or html:link tags with strut
template, these tags do not get parsed. Has anyone
experienced this? Any solution? Thanks.
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
The above approach is fine if you want to have cache within a single
application. If you want to have the same cached data accessible to
different web applications, you can use a Startup class like what Weblogic
provides. You can have your cached data as instance variables of your
startup
I run the struts applications on tomcat 3.2.1 all the time.
[EMAIL PROTECTED] wrote:
Has anyone ever tried to use Struts-based applications on a Tomcat 3.2.1
server?
org.apache.jasper.compiler.ParseException:
/usr/local/tomcat/webapps/night/content.jsp(43,0) Unterminated user-defined
I would say implement a pattern like the Observer which watches for any
changes to the data list. If any changes occur it immediatly updates the
internal list. So you will always have an updated list (no matter what) and
it is done automatically behind the scenes...
cheers,
Amar..
-Original
Thanks, just as you said but why did it work with the former version
then?
Michael
-Ursprungliche Nachricht-
Von: Rob Leland [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 17. April 2001 03:57
An: [EMAIL PROTECTED]
Betreff: Re: Parsing problem with Tomcat 3.2.1
I run the struts
Hi "Web Programmer" :)
When I use html:form or html:link tags with strut
template, these tags do not get parsed. Has anyone
experienced this? Any solution? Thanks.
Don't forget to define your taglib before you use custom tags.
e.g.
%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %
Thanks Tobias, it worked. I had the taglib only in
the template. Need to put in every file.
--- Tobias Meyer [EMAIL PROTECTED] wrote:
Hi "Web Programmer" :)
When I use html:form or html:link tags with
strut
template, these tags do not get parsed. Has anyone
experienced this? Any
Sorry, I hit the send button before typing.
Maybe there is a /form tag at the bottom of
the page instead of a /html:form. Another possability
is that either the /html:form is either commented out
or there is an unmatched " or ' that is hiding the tag.
[EMAIL PROTECTED] wrote:
Thanks, just as
Hi,
I have a bean StoreRoomForm which I have saved in the session in application
scope via:
StoreRoomForm storerooms=new StoreRoomForm();
ServletContext context=this.getServlet().getServletContext();
context.setAttribute("storeroom",storerooms );
StoreRoomForm has the
Hi there,
In the ActionError, we can internationalize the first
parameter: key. But I am wondering if we can also
internationlize the other parameters, which are
replacement values. For example, I have some
replacement values which are Strings. If these
Strings can be in different languages,
This is ok, but doesnt work if you have no control over the data changes.
Some of our data in the database gets changed by other legacy apps, so we've
implemented a CacheManager through
which we obtain cached data. If the data item is not currently cached we retrieve it
from the EJB tier,
Obviously, design decisions have been made on the session context.
Is anyone running (or considering running) Struts in a truly distributed
server infrastructure?
Does Craig's suggestion of Serializable session beans stand up under volume?
Just looking for some pointers.
Jim
-Original
Hello
Everyone,
I am working on an application
that interacts with a database. When I try to run the app, I get an error (500)
that tells me: javax.servlet.ServletException: Cannot find
ActionMappings or ActionFormBeans collection.
Can someone offer some insight?
Also, I have added a
setStoreroom and getStoreroom are not using the same class type. If you
change them to match, this will work.
--
Dan Miser
http://www.distribucon.com
From: "Alex Colic" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "Struts" [EMAIL PROTECTED]
Subject: Need help with Bean:define.
Date: Tue,
Hi,
caching my lists is going pretty well.
In the init of my ActionServlet I compile all my lists and place them into
the ServletContext. Then throughout my web pages I pull the lists out and
populate select boxes. I have noticed a large speed improvement.
My next challenge is going to be to
I'm currently evaluating Poolman (www.codestudio.com) which has database
connection pooling and query caching. According to the docs, the cached
queries will be periodically updated against a database, at an interval set
in a config file. I haven't tested this package out yet, and I have no
Hi,
I have almost moved my app over to struts. Fantastic framework. I am being
held up at that dual select control where the user selects a storeroom in
the first box and the second box is populated with locations using criteria
from the first.
I have a class pwStoreroomList in the session
Hi,
I have following in my jsp file
a href="javascript:;" onmouseover="hideAll()"
onmouseout="hideAll()"
img src="obj/spacer.gif" width=50 height=16
border=0
/a
html:link forward="success"
onmouseover="highlightSubItem('xdiserver', 4);
hideMenu('xdiserver', false); window.status='Log Out
Hi,
When i include my jsp inside a war file i really
don't know where those files are unpacked (if they are unpacked)
But if i want my jsp's to be updateable from the
internet (uploading)
where must i put my jsp's?
Can i for example put my jsp's inside a DB and then
have some common class
Hi
Scott,
this
may or may not end up answering your question:
I
remember seeing something similar when I was first trying to create my own
Struts app. What happened was that, for some mysterious reason, the
struts-config.xml file was not getting read properly - although I never got a
Hi,
I am using struts 1.0b with Orion 1.4.5 (? one of the latest anyway).
In my JSP I have:
logic:equal name="registrationForm" property="action" scope="request"
value="create"
app:checkLogon/
/logic:equal
in my struts-config.xml I have:
actionpath="/registration"
Hello,
I'm using Struts and Tomcat 3.2.1. Is it possible to set
things up so that jsps cannot be directly accessed at all,
but must always be referenced through an action? I
had writen a checkLogon tag for inclusion in each
jsp when the above question occured to me. I've looked
at web.xml
Hi,
Please add my mail id into struts-user mailing list.
Thanks,
Tangeti.
You can place the JSPs inside your WEB-INF directory.
--
Dan Miser
http://www.distribucon.com
From: "Daniel Toms" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "Struts-User" [EMAIL PROTECTED]
Subject: how to restrict direct access to jsps(and have struts work)
Date: Tue, 17 Apr 2001 14:28:52
there should be another attribute in the datasource like this:
testSql="select * from test"
and GenericConnection has a setTestSql(String) method
and that test method is executed right before the connections is given to the
request in getConnection()
When it fails it closed and tries
Does anyone know if the html:form ... tag can be placed inside the iterate
tag?
Here's what I would like to do, put the form tag inside an iterate so that
each record is in it's own form. That way when I click the submit button
(there will be one submit button associated with each record and
Is there an elegant way of handling file upload errors when the file size is
too large? I want to display an error page that indicates that the file is
too large to upload. Currently I can only get a second exception to
display.
For example if I restrict the file size to be 500K and someone
Thanks for the suggestion, but that won't work for what I'm doing.
All the submit buttons will have the same label, and same action associated
with them.
Here's more information:
logic:iterate id="notes" name="clientNotesListForm" property="notesResults"
tr
tdbean:write name="notes"
Hello,
I am new to Struts and I am struggling on what would
be the best way to do the following:
on several pages, the user can perform actions which
need to be confirmed before being actually performed
(e.g., exiting the application or logging off). The
confirmation page is the same regardless
Is there a way to specify a custom image for a button when using the
html:submit tag?
--
Thanks
Jacob
Is there a recommended method for indicating a required field in an html
input form?
I know I can just type an asterisk in, but isn't there a better way?
Thanks.
Phillip
The exception is happening in the html:form tag. I would guess that you
have a malformed struts-config.xml file. Do you have any error messages in
your console or servlet log file?
You can look up data-source elements that you defined in struts-config.xml
in your Action or ActionForm by using
I've been working on this bean:iterate ... problem for some time now. I
finally had to use a scriplet to get it to work. I am trying to get a list
of FieldTypes from a record controller (PrimaryServer below) which implement
an AbstractField object (this may be the entire problem ... let me
What is the best way to develop a FormAction bean for HTML forms that are
dynamically generated? In other words, the FormAction bean won't know the
parameters names of the form until runtime. For example, if I wanted to
process HTML forms for relational database tables dynamically. Each input
44 matches
Mail list logo