so much , all to generate a stupid link.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, July 29, 2005 3:19 PM
To: user@struts.apache.org
Subject: Re: Composing a link
N G wrote:
> only allows 1 map and 1 param-value pair. However, I nee
Env
---
Mac OS X 10.4.2
JDK 1.4.2
1. Under Clubs (bottom left), when I click on an item, the select
cell (not the whole row, but the first item) becomes white on white,
not very helpful.
2. Clicking the search tab should select the search text box by default.
3. Hitting return does not cau
You can do it with JSP tags, no scriptlets required. Try something like
this (I haven't tested it, but experiment a bit if it doesn't work quite as
written here):
...
L.
N G wrote:
How do you push the 2 parameters into the Map? You mean using a
scriptlet? I want to avoid any type of st
Dave Newton wrote:
Laurie Harper wrote:
There's a couple of ways to do this better ;-) Firstly, you can
reference the URL pattern matches ({1} etc) in the 'parameter'
attribute of the action mapping, so you can pass stuff along that way.
Yeah, I didn't want to parse the parameter, plus I'm al
On 7/29/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote the following on 7/29/2005 12:43 PM:
>
> > One approach to consider is to make your listener implement
> > HttpSessionAttributeListener as well as HttpSessionListener. That
> > means you'll hear about session attributes
Craig McClanahan wrote the following on 7/29/2005 12:43 PM:
One approach to consider is to make your listener implement
HttpSessionAttributeListener as well as HttpSessionListener. That
means you'll hear about session attributes being removed -- which is
what happens as the session is being inv
Another option other the solution below, that might even be easier to
implement... When sessionCreated is called it puts a simple flag in the
ServletContext. Then in the filter that checks to see if there is a
valid session, you check to see if this flag is in the Servlet context.
If it is not
testing roomity - please ignore.
I wonder if it works on Linux.
Y use: save email from public mail lists, faster, nicer.. it's java.
.V
People are conversing... without posting their email or filling
up their mail box
BTW, I don't make assumptions on extensions only. I check their hosting
machines and modules also. In my emails, I said some sites have NO
Evidence running Java.
When I see most Microsoft sites .aspx, I am pretty sure they are .net
sites, not JSF sites.
When I see Sun's site, does .jsp means the
Tamas Szabo wrote the following on 7/28/2005 11:56 PM:
However, I would like to have a general solution for this and since we
took the time to think it over
we could have this code somewhere so it will be reusable in the future.
Well, if we want a general solution that 'should' truly work, th
John Henry Xu wrote:
However, it is rare that people wants get rid of all extensions. In fact
I only heard about this claim the second time today.
"Rare" doesn't mean that it shouldn't be done.
There are some strange-behavior-people like to use php for .net pages,
.aspx for java pages, .js
Ideally, no "? & = + -" symbols should be in URL at all. Many people
complained about these "user unfriendly" URLs.
However, it is rare that people wants get rid of all extensions. In fact
I only heard about this claim the second time today.
There are some strange-behavior-people like to use php
How do you push the 2 parameters into the Map? You mean using a
scriptlet? I want to avoid any type of straight Java code in my page.
Is there a way to push those parameters into the map using JSTL?
Thanks,
NG
On 7/29/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> N G wrote:
> > only allows 1 m
I thought I remembered that Tiles only worked when using extension
matching rather than prefix matching... but I was thinking of modules,
which does require extension matching as per the user guide. My bad,
flaky Friday memory :)
Frank
Dave Newton wrote:
Frank W. Zammetti wrote:
Jeff, are
I didn't say I was unhappy. I suppose you mean that you would be
unhappy under the circumstances I outlined. I am happy as a clam.
Doesn't it seem a bit arrogant to tell me how I could be happy? LOL
On 7/29/05, James Mitchell <[EMAIL PROTECTED]> wrote:
> I'm not speaking for the world, but I a
Of course you are. You are a committer.
On 7/29/05, James Mitchell <[EMAIL PROTECTED]> wrote:
> I'm not speaking for the world, but I am +1 to what Steve said. If
> you are truly unhappy, take the code elsewhere. That is what I am
> planning to do for a certain commons component in a few months
Frank W. Zammetti wrote:
Jeff, are you saying we shouldn't use extensions at all?
IIRC, Tiles is extension-based, so wouldn't this mean, at the least,
that we can't use Tiles?
What do you mean by 'tiles is extension-based?'
Also, we're talking about extensions on the client view of the
URL
Laurie Harper wrote:
There's a couple of ways to do this better ;-) Firstly, you can
reference the URL pattern matches ({1} etc) in the 'parameter'
attribute of the action mapping, so you can pass stuff along that way.
Yeah, I didn't want to parse the parameter, plus I'm already using it.
Pu
Jeff, are you saying we shouldn't use extensions at all?
IIRC, Tiles is extension-based, so wouldn't this mean, at the least,
that we can't use Tiles?
Frank
Jeff Beal wrote:
I think you're missing the point. There's no reason to include .php,
.asp, .jsp, .xml, or .html in *any* page. They
I think you're missing the point. There's no reason to include .php,
.asp, .jsp, .xml, or .html in *any* page. They don't mean anything.
Furthermore, any assumptions you make about the technology behind a
site based on those extensions is simply not valid. (OT: I'll never
forget the day my 7th
N G wrote:
only allows 1 map and 1 param-value pair. However, I need
to add 2 params besides the map.
Adding this param to the map is not an option, I don't think. I
generate my map inside the form bean. The data for the 2 extra params
is not available in the form and is only available on the p
Dave Newton wrote:
Tomasz Nazar wrote:
One more question: I don't see how would you pass two parameters into
the action. Can you tell?
Yeah, but you won't like it ;)
In the AdminCrud action I manually pick apart the URL and create
'table', 'command', and 'id' values that I pass to the comman
Tomasz Nazar wrote:
On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote:
Yes, you can use multiple wildcards: my "solution" has two wildcard
mappings (to the same action):
One more question: I don't see how would you pass two parameters into
the action.
John Henry Xu wrote:
Only dynamically changing pages should use .php, .asp or .jsp.
Why?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote:
> Tomasz Nazar wrote:
>
> > /context/department/*/employee/*/view
> > ->
> > /context/employee/view.do?departmentOID={1}&employeeOID={2}
> >
> >path="/department/*/employee/*"
> >???="??? {1} ??? {2}"
> >
> Yes, you can use
Nice article. that explains why google save sites the way it is.
So all pages that will not be changed should have no .php, .asp, at most
.html/.shtml. Only dynamically changing pages should use .php, .asp or
.jsp.
John H. Xu
http://www.usanalyst.com
http://www.GetusJobs.com (The largest free jo
On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote:
> Tomasz Nazar wrote:
>
> >But Laurie, do you know if it is possible to use those wildcards so they
> >can rewrite patterns to include more parameters?
> >
> > /context/department/*/employee/*/view
> > ->
> > /context/employee/view
Hello everybody,
I just tested the date validation in Struts and it seems to me that 12/31/2004
is valid but 12-31-2004 is invalid. Where should I change so that 12-31-2004,
Dec 31 2004 are valid?
Sincerely,
Thai
Tomasz Nazar wrote:
But Laurie, do you know if it is possible to use those wildcards so they
can rewrite patterns to include more parameters?
/context/department/*/employee/*/view
->
/context/employee/view.do?departmentOID={1}&employeeOID={2}
Will struts handle that properly? I doubt if that's
I have the following in an action class:
msgs.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("This is an Action-inserted error",false));
msgs.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("So is this",false));
addErro
On the next beautiful day: Thu, 28 July, 2005, Dave Newton wrote:
> Tomasz Nazar wrote:
>
> >Say: /context/emplyee/17
>
> Sorry for the ramble--I'm motivated to work on that code again now, though!
> Dave
Thanks for the extensive idea, I had something similar in mind. Though,
Yuniar pointed ou
Hi,
only allows 1 map and 1 param-value pair. However, I need
to add 2 params besides the map.
Adding this param to the map is not an option, I don't think. I
generate my map inside the form bean. The data for the 2 extra params
is not available in the form and is only available on the page.
Ho
I'm not speaking for the world, but I am +1 to what Steve said. If
you are truly unhappy, take the code elsewhere. That is what I am
planning to do for a certain commons component in a few months. I am
unhappy about how it is being maintained, and the author/committer
refuses to listen t
temp temp wrote:
I wantindex of substring from a string . I would
like to acheive this using jsp tags. I found
jakarta taglib countMatches tag which would print
no of times substring is present in the
string.Rather than printing I want to capture the
output from this jsp tag into
The below worked for me. If you are getting
output, make sure that you are including the taglib and the prefix you
are using is the same ("str" in your case, but "string" for me) E.g.,
<%@ taglib prefix="string"
uri="http://jakarta.apache.org/taglibs/string-1.0.1"; %>
Hello world
Dear Struts/IDEA community,
I'm pleased to announce the very first public version of StrutsPlugin!
Its goal is to detect errors in Struts XML configuration files as well as in
Struts specific code.
This initial alpha release contains 5 inspections (4 of them for config
files), please see Setti
Laurie Harper wrote:
Konrad Billewicz wrote:
I unfortunately don't know anything about JSTL. My project is so
urgent that currently I am not able to experience and use this
technology. But I'll look at it closely. Thank you for advice.
Invest an hour on some learning and you'll be repaid w
Konrad Billewicz wrote:
I unfortunately don't know anything about JSTL. My project is so urgent that
currently I am not able to experience and use this technology. But I'll look at
it closely. Thank you for advice.
Invest an hour on some learning and you'll be repaid within a day ;-)
--
Laurie
I wantindex of substring from a string . I would
like to acheive this using jsp tags. I found
jakarta taglib countMatches tag which would print
no of times substring is present in the
string.Rather than printing I want to capture the
output from this jsp tag into a variable .This tag
The file is actual in \java\config. I figured out
what the problem was. I changed the doctype
declaration to a file on the file system rather than
PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";
at that was wh
I had to do this to make it work.
Login Page
Login Page must be under SSL
/login.jsp
GET
POST
Committers have a way of speaking for the world. That is a wonderful
thing. I can only speak for myself. I can also only listen for
myself.
On 7/28/05, Steve Raeburn <[EMAIL PROTECTED]> wrote:
> Michael / Jack / Thingamabob,
>
> Struts is licensed in such a way that if you are unhappy with the
On 7/29/05, Joe Germuska <[EMAIL PROTECTED]> wrote:
> Struts does not provide any part of the "M" (Model).
The more colloquial way to say this is that Struts is a BYOM (Bring
Your Own Model) framework :-).
Craig
PS: ActionForm is part of the view ... the purpose is to maintain the
server side
On 7/29/05, Varley, Roger <[EMAIL PROTECTED]> wrote:
> >
> > I could be losing my mind, but, I swear that I tried this technique
> > once and by the time the sessionDestroyed() method was called, I was
> > not able to get any of the session attributes back anymore. For
> > various reasons, the weba
Chuck-
I'm thinking along the same lines Dave is, that it isn't in the
classpath where you think it is. The error is generated after the
"standard" Struts resources are loaded; it looks like Struts is
bailing out because it can't find the app resources file you
specified.
For what you included ab
In Tim Berners-Lee's defense, the URI without '.html' works. The link
from Google included the '.html', and I didn't notice it when I pasted
into the email. It's Google's fault!
http://www.w3.org/Provider/Style/URI
-- Jeff
On 7/29/05, Marsh-Bourdon, Christopher
<[EMAIL PROTECTED]> wrote:
> It
chuck harris wrote:
it is in the classpath.
Where specifically is the file?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have :
it is in the classpath.
--- Ross Gibb <[EMAIL PROTECTED]> wrote:
> Hi Chuck,
>
> Not really sure. However, in your struts-config.xml
> I assume you have
> an entry for your message resources. Something
> like:
>
>
>
parameter="com.company.resources.ApplicationResou
Hi Chuck,
Not really sure. However, in your struts-config.xml I assume you have
an entry for your message resources. Something like:
Meaning you should have a file in your source code folder called
com/company/resources/ApplicationResources.properties. This file also
needs to exist insi
Hi everibody,
it'ss the first time I'm writing to this list, I hope I'm not annoying anyone.
I'm using the ssl extension library for Struts (sslext) to switch
between encrypted and unencrypted pages in my webapp. Everything works
fine excerpt for the login page, which is handled by the servlet
aut
I am moving a struts app from development to test and
am getting an exception that I can't track down and am
stuck. What file is not found?
2005-07-29 08:42:06,925 INFO [main]
[org.apache.struts.util.PropertyMessageResources]
Initializing,
config='org.apache.struts.action.ActionResources',
ret
Pilgrim, Peter wrote:
I think the jewel in the crown with the EJB 3 specification
is actually the new persistent model sub part of it.
Following Linda De Michels and Scott Crawford presentations
at JavaONE this year, you should be able to persist POJOs
with any O/RM implementation that supplies
Stéphane Zuckerman wrote:
netsql a écrit :
So are you saying Hibreante for big complex or iBatis for big complex?
I don't know about iBatis, but Hibernate is definitely for medium to big
projects. The real "complexity" of Hibernate is in its configuration
(there is more or less one Java cl
Joe Germuska wrote:
Struts does not provide any part of the "M" (Model).
oh yeah, that's right.
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The Model is something, conceptually, outside of Struts. Struts provides
nothing for dealing with the Model.
Imagine that you write some classes that know how to talk to your
database, know how to perform your business logic. Further imagine that
these classes have a known set of methods (i.e.,
ActionForm cannot be considered as the Model except for very trivial
applications. ActionForm is also very tightly coupled to the Struts
framework. The model components are developed using EJB, Hibernate etc.
It provides the business logic and persistance for the application. So,
Struts does not pr
At 6:40 AM -0700 7/29/05, Carl Smith wrote:
Struts privide strong C (of MVC) components, tyical of which are
ActionServlet, Actions and RequestProcessors, but I am wondering
which part is the M (of MVC).
Struts does not provide any part of the "M" (Model). I think this is
what often leads n
The form"Bean". ;-)
it maps to html form.
.V
Carl Smith wrote:
Struts privide strong C (of MVC) components, tyical of which are ActionServlet,
Actions and RequestProcessors, but I am wondering which part is the M (of MVC).
Thanks.
__
Do You Y
Struts privide strong C (of MVC) components, tyical of which are ActionServlet,
Actions and RequestProcessors, but I am wondering which part is the M (of MVC).
Thanks.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection ar
Well, there we go Van :) I would not have known that... I just got lucky
in using containers that didn't follow the spec exactly :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Fri, July 29, 2005 5:29 am, Varley, Roger said:
>>
>> I co
I have always choosen an extension that was meaningful for the
application... for instance, for a system I did called Transfer Of Assets,
it was .toa... for the blog on my own page it is .blog. I never really
thought about it in terms of URLs not changing or being able to know what
technology was
On Fri, July 29, 2005 12:34 am, Tamas Szabo said:
> Did you made the modification I suggested?
> I mean not continuing the chain if a sessionCount = MAX_SESSIONS.
> Or you didn't find that a good idea?
I haven't yet, although I agree with you that it is a good idea... the
thing I'm stuggling with
Hello,
I am wondering if it is possible to adress this problem using struts:
Form must show/edit datas (this is quite simple :p)
Some datas are read-only, other are read-write. (ok, not too difficult)
The datas to show/edit are different based upon an id given to the action
(Thinking about a dy
It is vaguely amusing that the page's url dos not adhere to the page's
content!
Not sure how practical it would be to use url that do not contain an (file)
extension with Struts or most web app frameworks. Aren't they there to give
guidance to their content (Hacker subterfuge excluded)?
It sho
Imagine a company currently using PHP who decides their app has grown
past the constraints of PHP. It would be silly of them to change the
file extension on their URIs just because they're changing technology,
so they just map *.php to the Struts Servlet.
Of course, if the web developers at that
Hi Starki,
Maybe this is a bit beyond your scope, but, if you are willing to do
plain JDBC, i'd like to suggest you to give iBATIS Data Mapper a try.
It's a cleaner and simpler way of issueing SQL statements to your
database, hiding all JDBC complexity. It is rock stable and has a
great community
Hi,
i've got two nested iterators
How do I populate such a two-dimensional checkbox table?
I tried to manually produce the checkbox tag that it looks like the
following, but this did not work (BeanUtils doesn't recognize and
doesn't seem to know how to store a boolean[][])
Hitti
>
> I could be losing my mind, but, I swear that I tried this technique
> once and by the time the sessionDestroyed() method was called, I was
> not able to get any of the session attributes back anymore. For
> various reasons, the webapps I develop need to be deployable in a
> Servlet 2.3 environ
On 7/28/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > Believe me, I wouldn't have gone to all that trouble if the session
> > data was available for me to get to the user attribute in the session.
>
> Interesting... I'd bet it was a peculiarity of the container's spec
> implementation. Di
Konrad Billewicz a écrit :
do you need to put dictionaryId to querystring?
i come up with
">
as an alternative
It is a good idea. But... shouldn't I avoid using non-Struts HTML form tags in
Struts-driven applications? I am quite new in Struts and I don't want to get bad
habits. :-)
In
Laurie Harper holoweb.net> writes:
> Firstly, you can combine get with forms; if you use method="GET" the hidden
> parameter Dave suggested will show up in the URL. Either way, you wouldn't
> have to 'check the request and secondly the form' since GET and POST
> parameters are both accessed th
71 matches
Mail list logo