See section 5.4.1 and 5.4.2 on the Struts site for how to map your action
path such as "/login" to be either "/login.do" or "/do/login" on
http://struts.apache.org/userGuide/configuration.html
Again, the do (/do/* or *.do) part is customizable. Some people posted
about messing with people's heads
ok, I got it, thanks a lot !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
so I need to map all actions of my webapp?
something like
/login map to /login.do ???
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Craig McClanahan wrote in <[EMAIL PROTECTED]>
>> I think page-driven development frameworks would exacerbate this problem
>> unless they clarify with eloquence up-front how to make a clear
>> seperation of the POST processing from the page preparation required for
>> the next page.
>>
>
>Yep, that
e).
You will also need to make sure you've set up a build.properties file
that points at the dependencies ... in particular, define "jsf.home",
"jstl.home", "junit.home", and "server.home" appropriately.
Craig
On Thu, 11 Nov 2004 14:16:08 -0700, BaTien Duong
Craig,
Thanks for the prompt reply. I have in the past set up DataSources in
Tomcat's server-config.xml. However, due to the nature of our production
environment I don't want to edit this file. It's relatively important that
my web apps are completely self contained.
Jonathan Wright
- Origin
On Fri, 12 Nov 2004 11:46:22 +1300, Jonathan Wright
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Just a quick question about JNDI in a Struts setting. I want to reduce the
> dependencies between objects in my app. Some objects that are not servlet
> aware need access to the ServletContext and DataSources.
On Thu, 11 Nov 2004 17:16:14 -0500, John Vincent
<[EMAIL PROTECTED]> wrote:
>
> On Tomcat, do you configure the app xml files? Or is it configured at the
> server level?
Both are supported. For more info start at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html
and, in part
Hi,
Just a quick question about JNDI in a Struts setting. I want to reduce the
dependencies between objects in my app. Some objects that are not servlet
aware need access to the ServletContext and DataSources. However rather than
complicating matters and increasing the number of arguments I need t
ot; appropriately.
>
> Craig
>
>
>
>
> On Thu, 11 Nov 2004 14:16:08 -0700, BaTien Duong
> <[EMAIL PROTECTED]> wrote:
> > Hello Craig:
> >
> > I downloaded struts-src-2004.tar.gz and try to get the
> > struts-shale-mailreader program to
o need to make sure you've set up a build.properties file
that points at the dependencies ... in particular, define "jsf.home",
"jstl.home", "junit.home", and "server.home" appropriately.
Craig
On Thu, 11 Nov 2004 14:16:08 -0700, BaTien Duong
<[EMAIL PROTECTED]
App Server is WebLogic 8.1.
I can try SunOne Application Server also.
On Tomcat, do you configure the app xml files? Or is it configured at the
server level?
In other words, do I need to check the app server doc or the weblogic*.xml
or sun-*.xml files doc for the Struts app?
John
Crai
Hello Craig:
I downloaded struts-src-2004.tar.gz and try to get the
struts-shale-mailreader program to run. Here are some issues with the build:
1) The struts-shale was built ok to get shale.jar
2) The struts-shale-mailreader has issue at the docs target. so I
make the dist target
On Thu, 11 Nov 2004 08:15:00 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Thanks, Craig,
>
> This allows me to do what I needed to do without taking the day to
> learn this new stuff about subversion right away.
>
> I assume that the CVS will permanently be out of date? Why not scrap
> it? I
What app server are you running? The setup to accomplish this is
going to be specific to that app server, if it is possible at all.
The example I gave, as I stated in the response, was specific to using
Tomcat.
Craig
On Thu, 11 Nov 2004 11:03:45 -0500, John Vincent
<[EMAIL PROTECTED]> wrote:
>
Niall - some comments inline and other stuff below...
Niall Pemberton wrote:
I'm trying to get javascript validation working using the action mapping's
path as the validation key with Struts 1.2.4.
I don't usually use js (I'm trying to test something) but the generated
javascript doesn't appear to
One other thing to check, I think name="myForm" has to be type of
ValidatorActionForm, not the usual ValidatorForm.
Bart
"Niall Pemberton"
On top of the java pages by sun:
http://java.sun.com/j2se/1.5.0/download.jsp
has been out for a while...
Rolf C. Graulich wrote:
Am Dienstag, 26. Oktober 2004 19:09 schrieb Carlos Chang:
[...]NitroX Advertising[...]
I just downloaded the Trial, but it say during installation on a Suse
I'm trying to get javascript validation working using the action mapping's
path as the validation key with Struts 1.2.4.
I don't usually use js (I'm trying to test something) but the generated
javascript doesn't appear to work - from where I'm sitting it looks broken -
can anyone confirm if they h
Am Dienstag, 26. Oktober 2004 19:09 schrieb Carlos Chang:
> [...]NitroX Advertising[...]
>
I just downloaded the Trial, but it say during installation on a Suse
Linux 9.1, that it needs the Java SDK greater than 1.5. So what does this
mean? I do not know such a relase of the Java SDK. It doen't
On Fri, 5 Nov 2004 10:49:25 -0800, Sanjay Choudhary
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have an application which contains 100+ jsp's. Use case is to
> inject the Javascript conditionally into the JSP's. Condition is - If
> a cookie is present in the request, inject the Javascript else lea
Thanks for your hint.
Essentially I want nest:write and bean:write to smart enough to
convert "ab
c" to "ab\nc" byitself.
nest:write is already be able to convert < to < if you set filter=true.
I am trying to find something similar to convert real return to \n.
I am hoping the convertion list is
alert("this message\nwill appear on two lines");
Does that help?
Erik
Shen, Lei wrote:
Hello, all:
I have some code like this:
data = use bean:write or nested:write here
alert(data);
The problem is that javascript does not allow:
data ="ab
c";
How to replac
Hello, all:
I have some code like this:
data = use bean:write or nested:write here
alert(data);
The problem is that javascript does not allow:
data ="ab
c";
How to replace return in a string while use nested:write and bean:write
automatically?
Tha
Its the same in struts as in servlets!
The execute method of Action is passes an HttpServletRequest.
Daniel.
> -Original Message-
> From: Milson Fredy Cardona Echeverri [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2004 17:26
> To: [EMAIL PROTECTED]
> Subject: session variable in struts
Craig McClanahan wrote:
Struts needs to do something useful in the *application controller*
tier ... the view has been done.
Struts is already proved most useful for coming on 5 years and will
continue to have
https://equinox.dev.java.net/framework-comparison/WebFrameworks.pdf
pg 21. )
It als
hi friends
i want to declare a session variable in an action class.
I could to solve it in a servlet class :
HttpSession session = request.getSession();
session.setAttribute("variable name","value");
but in struts ¿how do i do it?
thanks in advance
__
I'm using TortoiseSVN - which is really straight forward for any one in a
windoze environment (expecially if you've used TortoiseCVS!):
Its available here:
http://tortoisesvn.tigris.org/
Once you install it theres a pretty reasonable help file to guide your
through the basics
Niall
- Origi
First, thanks Vic for your feedback.
Second, right after I posted, I felt like I might have come across as
insulting to people on this list with my web apps/browsers remark,
especially considering that this IS a Struts list. I apologize if I
offended anyone. I don't mean to undermine people's ha
I think it is actually the source path of the *debug* configuration you are
using.
I just spent a good 20 minutes figuring this out - I've just upgraded to
1.2, but my debug source was pointing to 1.1 which caused a bit of
confusion.
Paul
> -Original Message-
> From: Adam Hardy [mailto:
Mike, there's http://wiki.apache.org/struts/StrutsMaintenanceSvn and
that also includes a link to the Subversion Red Book. If you find
other ones, could you share by either responding to this thread or
posting on the wiki? Thanks.
Hubert
On Thu, 11 Nov 2004 08:15:00 -0800, Dakota Jack <[EMAIL P
It's not entirely unusual to see posts on the dev list that belong to
the user list. This seems to be one of the few that go the other way.
Aside from posting this on the dev list, you can also post this idea
on Bugzilla as an enhancement request. (Some would say post on
bugzilla first then initi
Thanks, Craig,
This allows me to do what I needed to do without taking the day to
learn this new stuff about subversion right away.
I assume that the CVS will permanently be out of date? Why not scrap
it? I thought the blurb on this stuff gave the impression that the
CVS would be kept up to dat
I am rather confused here.
application.xml
Abc
abc
warapp
jv1
allows only one context root.
web.xml
action
org.apache.struts.action.ActionServlet
.
action
*.do
gives nothing.
I do not see how I can set multiple URLs
Erik Weber wrote:
I have invested a lot in writing custom UI classes, custom paint
methods, custom UI defaults properties, etc., to get my Swing components
looking the way I want (I'm sorry but, changing the background colors,
and other easily-scriptable stuff, doesn't cure Swing's out-of-the-bo
To me JDNC seems like a halfway house between webapps and rich client apps.
I personally like the way that webapps work (everything is written for the
server and executed on the server then merely displayed at the client), but
I hate the interface (html - and browser).
The web interface lacks con
On 11/11/2004 02:50 PM Yaroslav Novytskyy wrote:
Hi all!
Can anyone say how setup debugging in Eclipse 3.0.1 for
useing with Struts under Tomcat 5.
Thanks
Yaroslav Novytskyy
If you want to trace through the struts source code, you must link the
struts.jar to the src code directory in the project's
Never a dull moment. I am sure there must have been a reason for this.
Jack
On Thu, 11 Nov 2004 12:37:56 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> Struts has moved from CVS to subversion - the old cvs repository still
> exists, but its out of date now as its not being maintained.
>
>
Use path mapping instead of extension mapping on your controller Servlet.
Erik
Koon Yue Lam wrote:
Hi !
How can I access an action of its name instead of its "name.do" ?
eg. localhost/MyApp/login
I don't want the ".do" at all
thanks
--
Hi !
How can I access an action of its name instead of its "name.do" ?
eg. localhost/MyApp/login
I don't want the ".do" at all
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Craig McClanahan wrote:
On Thu, 11 Nov 2004 11:13:57 +, Adam Hardy
<[EMAIL PROTECTED]> wrote:
A lightweight framework must be simple to implement, for RAD or for
prototyping or for web newbies. Given a large complicated application,
should an architect choose a lightweight framework? No. She
Vic, why we would want to continue to write apps for Internet Explorer
and Netscape after discovering a technology like this is beyond me. My
chips are in with you. I have been pushing my web-app minded clients
toward Swing all along, but technologies like Java Web Start and now
JDNC are really
Craig McClanahan wrote:
Intermixed.
On Tue, 9 Nov 2004 10:47:34 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
Thanks, Joe,
Some thoughts below:
On Tue, 9 Nov 2004 12:26:22 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
Aren't Struts and JSF in the end really competitors? Seems so to me.
I
Struts 1.2.4 - running under jboss 3.2
The localization works just fine - if the user has set preferred
languages in the browser.
However - if this is not set the application will use the default
locale of the VM.
This seems to mean (under jboss where the vm is shared amongst apps
AFAIK) that a
Hi all!
Can anyone say how setup debugging in Eclipse 3.0.1 for
useing with Struts under Tomcat 5.
Thanks
Yaroslav Novytskyy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Thu, 11 Nov 2004 11:13:57 +, Adam Hardy
<[EMAIL PROTECTED]> wrote:
> A lightweight framework must be simple to implement, for RAD or for
> prototyping or for web newbies. Given a large complicated application,
> should an architect choose a lightweight framework? No. She / he must
> recognis
The framework handles it. Here's a rough sequence of events:
1) The Struts servlet receives a request for /newinsurance.do
2) The request processor consults the mapping information and sees
that there should be an InsuranceBean instance in the request
3) It checks the standard request attri
You can also get nightly snapshots of the entire Struts SVN repository from:
http://cvs.apache.org/builds/jakarta-struts/nightly/src/
Craig
On Thu, 11 Nov 2004 21:40:46 +0800, Peng Tuck <[EMAIL PROTECTED]> wrote:
> Probably because it's in svn ? Well the link from theserverside.com
> seems t
On Thu, 11 Nov 2004 08:14:12 -0500, John Vincent
<[EMAIL PROTECTED]> wrote:
> Need one Struts app, but must have multiple URLs.
>
> Thus
> http://www.jv.com/company1
> http://www.jv.com/company2
Why not just configure your servlet container to treat both context
paths as the same app? For examp
On Thu, 11 Nov 2004 10:42:27 +0100, Rosenberg, Leon
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> since we started talking about paradigms... how does JSTL and especially
> EL fit into MVC paradigm?
>
Much of JSTL is clearly about view tier stuff -- things like
conditionals and looping to dynamically inc
Adam Hardy wrote:
What I want to see in the future for big apps is a DTD or xml schema
that brings JSP code and XHTML mark-up under control. Something that is
easily editable by my editor of choice, using syntax-highlighting to
show me where my XHTML is up the swanny.
Just in case you missed m
For a page or summary tab, a tab is a label of words.
Can I change it to an image file?
If not, can I add an image file?
Moreover,
there is a purple border after clicking a tab.
Can I change the border color and even remove it?
Thanks
-
Hi Jeff!
When you say that the newinsurance.jsp "just see it" where do you store
"it"? In request.setAttribute() with some key? Session?
I'm using DynaValidatorBean but I guess that it should work in a simular
way.
Thanks in advance
Roland Carlsson
Den 04-11-11 14.14, skrev "Jeff Beal" <[EMAIL
Hi, David,
Thanks. I think I know where is the problem after
reading your last email again. I will try it later.
Tong
--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> Tong,
>
> When you say "automatic validation", do you mean
> client side or server side?
> What class does your ActionForm e
Probably because it's in svn ? Well the link from theserverside.com
seems to say so. Anyway
you can read the proposal here:
http://svn.apache.org/viewcvs.cgi/*checkout*/struts/trunk/contrib/struts-shale/README.html
Dakota Jack wrote:
I got the latest CVS using a command line for jakarta-struts but
Need one Struts app, but must have multiple URLs.
Thus
http://www.jv.com/company1
http://www.jv.com/company2
actually start the same Struts app, say
http://www.jv.com/myApp
but must "pass" something into the Struts app so that it knows who, or
rather, which URL invoked it.
Thoughts:
Wr
Every JSP page in my application is going to have two actions associated
with it. One action will always be called prior to displaying the JSP
page. The other will be called to process the user's input. In the
struts-config, both of these actions are configured with the same form
bean. Thus
I might be missunderstood your idea, but here you start navigate with JSP and then go to
the Action "/DisplayNestedPropertiesAction.do". You can set your checkbox in
two ways:
if you need to set up all checkboxes to false (or true, or fixed values) on the initialization of the ActionForm, you sho
Struts has moved from CVS to subversion - the old cvs repository still
exists, but its out of date now as its not being maintained.
http://svn.apache.org/viewcvs.cgi/struts/trunk/?root=Apache-SVN
http://www.apache.org/dev/version-control.html
Niall
- Original Message -
From: "Dakota Ja
On Wed, 10 Nov 2004 21:41:53 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> A lot of my feelings on this have been posted on another thread, so I
> just want to ask one question from Mark's message.
>
> On Wed, 10 Nov 2004 10:55:25 +0100, Mark Lowe <[EMAIL PROTECTED]> wrote:
> [snip]
> > As
I got the latest CVS using a command line for jakarta-struts but it
did not contain the folder contrib/struts-shale-mailreader which I
expected based on a recommendation by Craig. Is the CVS available
from:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-struts
not
Hi Mark!
I belive that there must be a simpler solution to this. I know that I can
creata a DynaActionForm and then pupulate that by calling the set-method. So
shouldn't it be possible to create a DynaActionForm in a "populateAction"
and then put it into a "scope" with a key and then forward to th
Hi,
I have investigated the indexed properties as follows.
structure of my jsp page:
===
">
ActionForm:
=
public class NestedPropertiesForm extends FWKActionForm{
/**
*
*/
public NestedPropertiesForm() {
super();
}
/**
* Permet
It uses forward (otherwise the errors get lost between requests!).
Do you get an error?
Daniel.
> -Original Message-
> From: Yagiz Erkan [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2004 09:34
> To: [EMAIL PROTECTED]
> Subject: Validator - Redirects or Forwards?
>
>
> When the validatio
Hi,
I have investigated the indexed properties as follows.
structure of my jsp page:
===
">
ActionForm:
=
public class NestedPropertiesForm extends FWKActionForm{
/**
*
*/
public NestedPropertiesForm() {
super();
}
/**
* Permet
Now that I've had a year or so or heavy Struts use, I've come to believe that
(IMHO) validation within Struts is a little less clear and concise than it
could otherwise be with a few small changes.
Currently, validation is defined by specifying a true/false value for the
'validate' attribute fo
Roland,
I dont know if this solution is not the approved way but I do the following.
I have a CreateForm which extends the ActionForm. It contains all the
properties that map to the database and the validation rules.
I then have an UpdateForm which extends the CreateForm and implements its
paren
A lightweight framework must be simple to implement, for RAD or for
prototyping or for web newbies. Given a large complicated application,
should an architect choose a lightweight framework? No. She / he must
recognise the limitations of the framework.
JSF seems to be lightweight. It simplifies
I found my mistake...
in the tag "html:form" I specified the wrong Form.
Sorry,
Sebastian Steinfeld
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 11. November 2004 11:51
An: 'Struts Users Mailing List'
Betreff: AW: How to iterate nesete
Hi!
I am looking for a better way to pre-populate my (html)forms when building
to allow the users to edit data from a database.
I know that I can create an populate a DynaValidatorBean but I don't know
where to put it so that I can use it from my (html)from.
Thanks in advance
Roland Carlsson
Ps
Hi Niall,
I tryed, but it doesn't working...
When I call the page, the getter of the attributes are called and the values
are shown in the input-fields. But when I am pushing the submit button there
is no setter called.
Thanks,
Sebastian Steinfeld
-Ursprüngliche Nachricht-
Von: Niall P
> -Ursprüngliche Nachricht-
> Von: Mark Lowe [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 11. November 2004 11:04
> An: Struts Users Mailing List
> Betreff: Re: talking about paradigms
>
> I don't think EL breaks the MVC pattern. Although it leaves you free
> to do so if you so wish
try...
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 11, 2004 9:57 AM
Subject: How to iterate neseted beans?
> Hi,
>
> I want to iterate through a nested bean, it is 3D.
>
> The first bean contains an ArrayList, of
I don't think EL breaks the MVC pattern. Although it leaves you free
to do so if you so wish. I don't see a world appart from using
${person.name}
More to he point the fmt tag lib put the presentation control back in
the hands of the site builder. Otherwise you end up addressing view
issues
Hi,
I want to iterate through a nested bean, it is 3D.
The first bean contains an ArrayList, of the second bean.
Each second bean contains an ArrayList of the third bean.
Each Third bean contains different attributes.
I want to print Attributes of the third bean in text-field and the user
shoul
Hi,
since we started talking about paradigms... how does JSTL and especially
EL fit into MVC paradigm?
Or, the better question, why does struts support EL nowadays, when it
breaks the paradigm?
Regards
Leon
Hi,
I call a javascript function when a option is selected in a drop down list.
onchange=showTextField(actionselected,index). and display a textfield for some
options.
I have to call same function when the page loads and display a text field for
some options which were selected earlier for t
When the validation fails, does the Validator use "redirect" or "forward"?
Because I can't see my JSP when the validation fails and I keep my JSPs under
WEB-INF. Do you have an idea what may go wrong?
Thanks,
- Yagiz -
-
To uns
Hi
I'm currently migrating a system from some homemade XML framework to Struts.
The system is an application service provider where lots of companies
have the own db driven ResourceBundle for i18n.
All the companies use the same struts-config.xml as they all share the
same Actions, Forms and jsp
79 matches
Mail list logo