I don't see that there will be an issue there - the Applet will run in a
different JVM from the server side part of the application and you
probably want to package it separately in any case as a stand alone JAR
Regards
Duncan Mills
http://www.groundside.com/blog
Ashish Kulkarni wrote:
Hi
Has
Jason King wrote:
It caches by default. To test this, put some arbitrary obscure string
like I am not a number, I am a free man inside your js file, clear
the browser cache, load the page once and you should find this in the
cache once. You'll have to use a find utility that searches on
Heloo,
I'm getting strange troubles on my webapp and I've set a minimalist webapp to
test it :
1 action /logon 1 for LogonForm with 2 fields username password.
Struts 1.2.6 without any plugin
- If I use DynaForm for my formbean, my (trivial) jsp runs fine and displays
the HTML form.
- If
Solved !
I used a struts-1.2.6 jar i compiled myself. Replacing it with binary dist
makes my app work.
Don't know where I failed building struts jar...
Nico.
Heloo,
I'm getting strange troubles on my webapp and I've set a minimalist webapp to
test it :
1 action /logon 1 for
Has anyone successfully setup IBM WTP with Tomcat 5 under Eclipse 3.01?
Every time I go to fire the server off it fails and says there was a problem in
thread main. I can launch Tomcat just fine from the command prompt or as a
service :-|
My guess is that it's doing something wrong in trying
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
====
Has anyone successfully setup IBM WTP with Tomcat 5 under
Eclipse 3.01?
Every time I go to fire the server off it fails and says
there was a problem in thread main. I can launch Tomcat just
fine from the
WTP = Web Tools Platform
I've seen the Sysdedo plugin, but I was trying to keep my environment here
congruent with what's at work. The WTP seems to be what's running inside of
WSAD.
I don't see anything inside the Windows - Preferences section. I do see a
top-level node for Solar Eclipse I
Hi listers,
I'm developing a struts 1.2.4 based small-medium sized application
with around 35-40 JSPs, 6-8 formbeans, 6-8 DispatchActions.
I'm going to make the application available for the testing users (for
kind of blackbox functional testing). I've so far not used logging of
any kind in my
Given a tile definition like:
definition name=layout path=/layout/layout.jsp
put name=body value=/
put name=title value=/
put name=header value=/common/header.jsp/
put name=footer value=/common/footer.jsp/
put name=menu value=/common/menu.jsp/
/definition
and a message
I'm searching for a pattern/best-practise for handling standard
data-manipulation forms (like list, create, edit, update, delete
functionality) in Struts. I've read about the CRUD
(create/read/update/delete) pattern many times, but couldn't find any
in-depth papers on it.
Is there any
Please help!
Background
==
I retrieve data from the database, copy the data into
an Action Form, the data is then automatically entered
into corresponding fields.
After viewing the data, I want the RESET button to
empty all fields whenever it is clicked. Presently,
after clicking the
Instead of a reset you could use a simple button and the related onClick
event to call a javascript that sets all field to .
What do you think about this workaround?
Take note that it isn't an expected behaviour for a reset button. I suggest
you to name such a button with a value different from
Hi
The data which i want to cache has about 1 rows
and i want to cache it in may be servlet context, what
is the best way to cache it, do i just create a java
bean and cache it or some kind of mechanism already
exist like Hibernation (i am not sure what is does)
Ashish
--- Frank W. Zammetti
Hello,
I'm pleased to announce that my book, JavaServer Faces in Action
(ISBN:1932394125), is now available in book stores, including Amazon. The
book covers JSF 1.0 and 1.1, and also includes the following features:
- How JavaServer Faces works and how it relates to other frameworks and
Hi there,
I have a question concerning Struts validator framework:
If have the same attribute for example salary in two forms is there any
possibility
to define the validation rule in one place.
So that my form-field can depend on that rule.
regards
form-validation
formset
Look into the DAO pattern. Create, for example, an EmployeeDTO
(transport object) and an EmployeeDAO class with create(EmployeeDTO
employee), update(EmployeeDTO employee), delete(EmployeeDTO employee)
and getById(...) - is also a crucial method in the DAO pattern.
Here's the create method for
That should be:
public EmployeeDTO create(EmployeeDTO employee)
Thinking and typing at the same time. ;-)
-Original Message-
From: Dahnke, Eric (Company IT)
Sent: Monday, November 29, 2004 10:56 AM
To: Struts Users Mailing List
Hi there,
I would like to try out Validator outside Struts.
I've got the initializion of validatorResources working.
Does anyone have sample-code for using the resources and calling the
validator,extracting validationResult ?
thanks in advance
-Original Message-
From: aris [mailto:[EMAIL PROTECTED]
Instead of a reset you could use a simple button and the
related onClick
event to call a javascript that sets all field to .
What do you think about this workaround?
Take note that it isn't an expected behaviour for a
I'm not sure how tricky it is in JavaScript...
function doit(obj) {
obj = obj.form;
i = 0;
while (obj.elements[i] != null) {
if (obj.elements[i].type.toLowerCase() != button) {
obj.elements[i].value = ;
}
i++;
}
}
Attach this to the onClick event of a button in the form
All,
What's the 'standard' way in Struts to input data in a table whose
number of rows and columns (yes, for both rows and columns) is
decided dynamically on every request? Indexed properties don't seem to
be working with variable number of columns.
So far I've to deal with only html:text
Hello List Members,
Whether to layout a project within version control as a WAR based layout
(images/ pages/ tiles/ WEB-INF/ WEB-INF/src) or as a sun J2SE blueprint
layout (build/ conf/ src/ lib/ webapp/ docs/ test/ etc.
http://java.sun.com/blueprints/code/projectconventions.html) is an issue
Try the nested tags:
http://struts.apache.org/api/org/apache/struts/taglib/nested/package-summary.html#package_description
http://www.keyboardmonkey.com/next/index.jsp
Niall
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Eric,
Have you considered deploying exploded versions of your WAR file in the
development environment? The client side coders could then copy their
deltas directly into the application without having to build and
redeploy it. The means of copying the files could be automated by making
the
Damn, that's not bad is it. I had thought of variations of that, but
hadn't considered ant. Those types of ant tasks would be fast too
wouldn't they.
Having client siders use ant is not a show stopper (they use it now to
reload after struts-conf and tiles-defs changes they make). Thanks
It is not allowed to have just part of attribute value as JSP expression.
Here is the correct solution:
html:text name=iType styleId=%=sp + iterator% property=sharesPer/
Peace,
Aidas
sachin [EMAIL PROTECTED] wrote:
I have a jsp page in which i have a loop and a text field inside it.
Now to
I'm a big believer in simplicity. To that end, the way we work here at my
behest, at least during development, is that applications are simply zipped up
when they need to be moved somewhere and deployed in exploded form. All
developers have Tomcat on their desktop, set up identically, so they
On Monday 29 November 2004 14:27, Aidas Semezys wrote:
It is not allowed to have just part of attribute value as JSP expression.
Here is the correct solution:
html:text name=iType styleId=%=sp + iterator%
property=sharesPer/
Thanks! That solved a problem I was about to ask ...
--
derek
Thanks for all the answers. The problem was indeed that i used perform
instead of execute :-s
_
Kies nu de Site Van Het Jaar en win prachtige prijzen!
http://www.sitevanhetjaar.be/
Hi,
I have a html form. The user can input text in ISO-8859-2 format.
After submit the form the characters are wrong. I don't know why.
I have set
%@ page contentType=text/html; charset=UTF-8 pageEncoding=UTF-8%
and there is a filter (filters.SetCharacterEncodingFilter) to encode UTF-8.
Alexander,
This should help you understand applying DAO/DTO patterns in a Struts
app: http://javaboutique.internet.com/tutorials/ApacheDAOs/
Shed.
-Original Message-
From: Dahnke, Eric (Company IT) [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 11:01
To: Struts Users Mailing
Hi
I have a table in DB2 on AS400 which has about 1
records, i want to cache this data to improve my web
application performance,
I dont want to cache it in session,
I was thinking of loading the data in array or some
class and load it in servlet context,
what is the best way to do it?
is
Hi guys,
Here is what I think should be a very simple tiles question. So simple
in fact that I am left scratching my head thinking there is no way
struts could not do this - I must be doing something wrong!
Lets say I have a base layout jsp
simple-layout.jsp
%@ page language=java%
%@ taglib
It looks for bean myProperty.
html:checkbox property=myProperty/
Shed.
-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 16:21
To: [EMAIL PROTECTED]
Subject: Form tag spanning more than one tile - surely this is possible
or is there
These techniques:
http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-filter.html
http://www.javaworld.com/javaworld/jw-11-2004/jw-1122-select.html
Used against a collection loaded at application init()
Might be what you are looking for.
JC
hi,
i have a problem with nested tiles. I found not much about it in the
struts doc.
the problem is that it not displays the correct body page.I get a
directory listing there.
At the definition startpage i have the value /startpage.jsp
This should be displayed at my page. But it doesn´t :(
I
Commons-Validator :-) You've got the wrong list, my friend. Try:
http://jakarta.apache.org/commons/validator/
They have their very own user list (well, their very own shared user list!)
;-)
http://jakarta.apache.org/site/mail2.html#Commons
It's possible you might get some leads here, but I'd
Possible? Yes ... but you're not going to get much meaningful information.
IMHO, meaningful information comes out of exceptions, and I personally trap
those and cause the app to show meaningful errors to the user. The best
place to have logging is in your catch statements - be that in your
I think most projects point Tomcat to the dev folder, and then issue a
reload command. As soon as you change JSP or java and reload, you see it.
Read up on tomcat reload and then find out your container'saproach.
.V
Dahnke, Eric (Company IT) wrote:
Hello List Members,
Whether to layout a project
Thanks for the response. In this case then, the dev/ folder is
presumably under vcs and the layout would be fairly WAR based?
Thx.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Monday, November 29, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: Re: WAR
Here is a tomcat specific setup of the app:
Context docBase=/dev3/apps/mds/web
/Context
Folder web is much war like! But... next to it in ../mds/src is where
src is.
hth,
.V
Dahnke, Eric (Company IT) wrote:
Thanks for the response. In this case then, the dev/ folder is
presumably
Hi,
Iam converting an existing frames based WebApp to
tiles based WebApp.
I have a requirement where i need to show a word
document in the browser when the user clicked on a
link.
In the old application it was a hard link to the
document.(a
href=../documents/termsConditions.docView terms/a)
so
Do people really deploy things to production like this? We generally just
publish an EAR or WAR file to the server and keep the source in a versioning
system. It seems like pretty wasteful space on a production server to have
an application plus all the files that make up the application.
Interesting. I'm not sure why your code doesn't work. Maybe the value
attribute in put name=body value=/startpage.jsp / should be
/WEB-INF/pgs/startpage.jsp.
Anyway, I haven't done nested tiles in the same way as you do. This is
how I do nested tiles. Maybe someone can comment on which way
I couldn't agree with Craig more. Especially when we're talking about
development, I can't concieve of having to WAR things up, whether it's
going on my own machine or a remote box. I've even seen some people
work with something like Resin that will pick up ANY change instantly
and
We actually have two production environments here... One is a real
hosting environment where there are admins in charge of everything. They
require nothing but WARs. Then there is another environment that was
SUPPOSED to be THE environment eventually, but that plan got nixed. All
the apps
What is the correct pattern for placing a struts html:form tag in a
layout where
- the controls may be in a different location (and hence different
tiles) from the buttons that submit the form
- where you want the action the form submits to to be customisable by
whatever jsp uses this form?
If
Response in-line ...
- Original Message -
From: Frank W. Zammetti [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 7:35 PM
Subject: Re: WAR based project layout vs Sun J2SE blueprint layout
We actually have two production environments
Our development servers are essentially our own workstations :-) Our
development/test box we may only deploy to via a web interface. It's not so
terribly convenient considering it's not typically necessary to publish
things unless there's been significant advancement. Oh there's some times
We do the same as Eddie, with 1 exception. Our test server (really
only for clients and a good point of reference) runs CruiseControl, I
find that this takes care of the hassle of keeping the client/test
copy up-to-date. It also allows the developers to have complete
freedom in their
In the one or two instances were I had page developers and business
logic developers separate, it was a fairly simple approach... Everyone
checked the appropriate files out of source control each morning (page
developers got JSPs, back-end develoeprs got Java files) and both teams
got the
- Original Message -
From: Frank W. Zammetti [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 10:10 PM
Subject: Re: WAR based project layout vs Sun J2SE blueprint layout
In the one or two instances were I had page developers and business
Nishant,
Use *page* attribute while defining your validation.xml. Like this :
--888--
field property=inquiryHeader.deliveryPeriod depends=required
page=1
arg0 key=inquiry.form.header.deliveryPeriod/arg0
/field
--888--
In your Jsp page, add a hidden
Hi Friends,
How can I use Rational XDE for Struts ?
If anyone has any idea please share with me.
--
Sanjay Gupta
Research Engineer
C-DOT, New Delhi
India
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
All Struts Gurus:
We have a pretty large application which needs to migrate into Struts
and possibly to Tiles for the UI. The existing application is quite
similar to MVC-2 model. We have our own Controller and Handlers. The
Handlers communicate with Session EJB to process data through stored
55 matches
Mail list logo