You don;t use the name quoted you place the Object in the session and then
retrieve it by name.
session.setAttribute(yourbean,"the name you give it");
Object mybean = session.getAtribute("the name you give it");
I think you have to cast myObject cos it is untyped.
Chris
On Sun, 15 Feb 2004, Gre
Hi,
I am facing problem in java script, using spilt() methos.
Here i want to split the strings using '\' this separator. Here it is
separating the strings. Bu it is displayed in the zeroth index array. But i
want to display in each index.
But not Working. Any body having idea please maile me.
I am continuing work on an extremely simple (2 web pages) Struts
application. In the first page (entryPage.jsp), you enter data into a form
and click the submit button. This takes you to the second page
(displayPage.jsp), which displays the data from the form; and clicking the
submit button on
Any one has any idea why this exception happens?
I am using 1.2 nightly build currently.
My jsp is simply using the following:
java.lang.ClassCastException
at
org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:215)
at
org.apache.jsp.action_feedback_jsp._jspx_met
Hi All,
i have this form to upload a document to a folder on the server. i have a
field where you browse
the files on your computer to upload to the server. once that field is
chosen i would like another field to be populated automatically with only
the document's name, without the path extension
Main problem with CMA is that its configuration is container dependent. If
your writing an app that needs to be deployed straight to many different
containers CMA can be troublesome.
btw: if you are doing your own session based security - dont - put check
tags in the JSP. Follow Niall's suggestion
My recommendation is to *always* use request scope form beans if you can.
Yes. Having done it both ways and experiencing the various tortures that
session scoping inflicts apon us I would definately agree that if one can
use the request scope (and with a little thought this should be possible in
I'm not an expert on security but as I understand you have two choices. You
can either implement "container managed security" - where the servlet
container controls logging on and ensures that only authenticated users can
have access to the resources you specify OR you can control it yourself
withi
Thanks Adam - that's good to know.
-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED]
Sent: Monday, 16 February 2004 2:10 PM
To: Struts Users Mailing List
Subject: Re: html:link passing multiple parameters
There's also the use of c:url. The catch there is that if you incude the
r
I use hibernate so, yes, I think it is a
good alternative. :)
Regards,
David
-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 8:56 PM
To: Struts Users Mailing List
Subject: Re: persistent data storage - the right way
is Hibernate another good
There's also the use of c:url. The catch there is that if you incude the
resulting url in a html:link, it will be double contexted, which means you
should use a standard href tag and use a c:out to spit out the final url.
- Original Message -
From: "Nick Faiz" <[EMAIL PROTECTED]>
To: "'S
Hi,
I am sorry if this question have been asked before.
How can i check session validation? to check whether if the user is
authenticated on each page.
I read somewhere about Filters
but i still do not know how to implement it.
Currently I use a LoginAction to check the user details against the d
this sounds like a Velocity-like feature.
dun if Struts supports this with Tiles
--- Dominik Stöttner <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to write a webapp with struts and tiles
> that is similar to the portlet-technology. The
> tiles-documentation example provided with struts is
> v
is Hibernate another good alternative ?
--- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
> you can use iBatis [http://www.ibatis.com/] and
> take a look at this example/tutorial:
> http://www.reumann.net/do/struts/ibatisLesson1
> (using: Struts - DAO - iBatis )
>
>
> I think this is what
Yes, that was the confusing bit - on the server side it defaults to the date
short form if you don't specify a pattern. It would be better if either the
javascript defaulted in the same way or "blow up" on the server side if the
patterns missing - easier to spot it then.
Niall
- Original Messa
Niall,
You're absolutely right! Adding the elements you show below did the
trick. It never occurred to me to revisit my validation.xml file since
server-side validation was working fine.
Thanks very, very much!
jim
On Feb 15, 2004, at 1:33 PM, Niall Pemberton wrote:
Actually,
I just tried i
You [Mark Lowe] said:
Having additional fields that may not related to the given form I'd say at
least would confuse a site builder who comes along and has to work out
what's going on. For example a bunch of user details in a credit card form
would (IMO) cause a whole bunch of problems in deter
I did something along those lines using Struts-EL.
>>
Why bother with bean:write when you can use c:set ?
Nick Faiz
-Original Message-
From: phortonpeg [mailto:[EMAIL PROTECTED]
Sent: Monday, 16 February 2004 9:34 AM
To: [EMAIL PROTECTED]
Subject: html:link
Hi,
I have a situation where I need to pass several parameters in an
html:link tag. From what I've read, I know that I must use a HashMap
to send as a param which would contain the values I want to send to
the URL. I first display the values in a table using logic:iterate
and an arrayList ont
Actually,
I just tried it out and it has to be the datePatternStrict version for
Struts 1.1
datePatternStrict
dd/MM/
The javascript functions have moved to commons and appear to now cater for
the datePattern variable - so probably
Forgive the way off topic query
where is the commons/lib folder for Sun One AppServer.
ie. where do you keep tools.jar??
Thanks,
-Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
On 15 Feb 2004, at 14:02, Michael McGrady wrote:
At 04:20 AM 2/15/2004, you wrote:
You Said:
During a payment process one may want to collect various details
about a user, likewise in other parts of a system you perhaps want to
do the same albeit in a different order. Hiding form values from a
hi,
i am trying the nexted MOnkey example, everything
works fine except that the image is not shown. In my
TreeNode.jsp:
The only difference is that TreeNode is a Tile now.
I am using IE 6.0, Win XP, Struts 1.1
thanks in advance,
li xin
__
Do you Yahoo!?
Yahoo!
At 04:20 AM 2/15/2004, you wrote:
You Said:
During a payment process one may want to collect various details about a
user, likewise in other parts of a system you perhaps want to do the same
albeit in a different order. Hiding form values from a previous view would
lock you into always needing t
Hi,
you can use iBatis [http://www.ibatis.com/] and
take a look at this example/tutorial:
http://www.reumann.net/do/struts/ibatisLesson1
(using: Struts - DAO - iBatis )
I think this is what your looking for.
Oliver
> hello,
>
> i have been looking (in vain) for a description how to impleme
I allready got it working! But anyway thanks for your replay.
The only thing that does not for for me are the export types
- I can (automatically) create the links (XML Excel CVS)
But i always get a linke to a *.jsp instead of e.g. an *.xls file.
Have you/someone also experience something like th
hello,
i have been looking (in vain) for a description how to implement database
access in struts correctly. i would like to use the DAO (data access object)
pattern in combination with datasources for connection pooling. however, i
am having a hard way figuring out how to implement the whole and
On 14 Feb 2004, at 20:12, Craig R. McClanahan wrote:
Quoting Michael McGrady <[EMAIL PROTECTED]>:
Now let us assume that the ActionForm for the record editing form
needs to
go in session scope (nb: in request scope there is not a problem so
if the
design can be done practically with request sc
Write it using DHTML.
I have written a few things that sound similar to what you are trying to achieve all
using DHTML.
Populate your divs using jstl and style them nicely using css.
Write a few simple reusable javascript functions to show/hide the divs and you are
away.
If you need any more h
James,
In your validation configuration file you have not set the date pattern
variable - there are two forms of it - datePattern and datePatternStrict.
datePattern
dd/MM/
30 matches
Mail list logo