Hi,
I have a layout contentFrameLayout.jsp:
In my tiles-def.xml, I assign values to these attributes:
In struts-config, my action forwards to the definition "content.default" on success.
I am trying to use the attribute screenName i
defined in tiles definitions are available only in the "tiles" scope.
> Therefore, you must redefine the attribute into the request scope if you
> want it available to your sub tiles.
>
> So, in contentFrameLayout.jsp you add the line:
>
>
> And it should work for you.
&
Hi,
What is the best way of setting a Java Collection which holds Java
Objects
as a property of the form, and retrieving the Object and it's properties
on a JSP?
I've tried it as such but have not been successful:
In my action, I have created a list called "myList" which holds objects
of type "
rwarding.
> If you redirect (which I suspect your are doing) and the form is
> in the request scope, then you will lose all data set in the form.
>
> robert
>
> > -Original Message-
> > From: Sonam Belbase [mailto:[EMAIL PROTECTED]
> > Sent: Monday, Octob
ward, it shouldn't. But if you redirect anywhere
> in the chain, then that data is gone.
>
> Double check your attribute name spelling in your code and config file.
> That's tripped me up before.
>
> robert
>
> > -Original Message-
> > From: Sonam
Hi,
I have an actionA whose success should display jspA using properties from
formA. These
properties were set in actionA.
Once the user is done with jspA, they click on a submit button and it should
go
to actionB, which has it's own form bean formB and display jspB on success.
jspA looks like:
How would you do this using Struts?
User goes to a page where they can add profiles to a repository. There are
two
types of profiles a user can add. But the user can add as many profiles
of each type as they want on that page.
Profile type A requires input from 3 text boxes, and profile type B ne
Hi,
Is it possible to have multiple instances of the same form on one JSP?
If yes,
how can you make sure that only one form gets submitted at a time?
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use is prohibited.
Hi,
If I've got
<% String choice = "hello"; %>
Click here
why does
request_.getAttribute("choice");
in my action retrieve null? Is this the right way to retrieve values
of params you pass with html:link to an action?
Thanks,
SB
--
NOTICE: If received in error, please destroy and no
Michael,
Not sure if this works, but I thought I might suggest this:
in your layout.
Then in your definition or your jsp you can
assign the path of the jsp with
Hope it works..
SB
Frers Michael wrote:
> Hello
>
> did anyone ever tried to combine Frames and Tiles?
>
> i want to build a pag
Thanks, that worked!
SB
"Ghanakota, Vishu" wrote:
> Try request.getParameter()
>
> -Original Message-
> From: Sonam Belbase [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 11:43 AM
> To: Struts Users Mailing List
> Subject: quick html:link q
Hi Ted,
Has the you mention below been implemented already
or is it in the works at all?
Thanks,
SB
Ted Husted wrote:
> Shishir K. Singh wrote:
> > Is there a way that I can create a form dynamically based on some XML
> > configurable file. The configurable file will say what kind of input
I'm trying to understand ActionForms a bit better and here is my
question:
If the servlet controller automatically invokes the reset() method
before passing the ActionForm bean to the Action implementation class
instance, how can you use the form's properties' values in your action?
Is this why i
OK thanks Brice and Manish,
I was not able to retrieve the values of my form properties in my action and
according to your explanations, I can rule out reset() as the source of the
problem.
Thanks.
SB
Manish Singla wrote:
> Please see below ..
> Sonam Belbase wrote:
> > I
Given the following code in my jsp:
User Name:
Password:
element has the value "LoginForm_1" in the first iteratation,
"LoginForm_2" in the second iteration, and so on.
In struts-config:
LoginForm extends ActionForm.
I understand that the attributes "name" and "type" ha
the same name for all of them (well not html:form name in Struts
> 1.1+ but rather use name in action definition).
> Or If you explain your requirements a bit more we could come up with a
> better solution/explanation.
> -Tim
>
> -Original Message-
> From: Sonam Belbase [
Hi,
I am looking to use Wildcard matching support for my action mappings.
I am currently using Struts 1.1 .
This feature does not seem to be supported in the build I have .
If any one has used the WildCardMatching support in struts ,I would like
to know the release build to use to pick up these
ulated ie. don't put n in end (duh) :)
>
>
>value="${loopCnt}"/>
>
>
>
>
>
>
> Now your action is pretty simple.
> Based on the formIteration value you know which of th
s at the action associated with the
submitted form, sees that it is loginActionA, looks for the
associated form (which from the action-mapping is "LoginFormTypeA")
and since it cannot find one, creates one. Thus form.get("userName")
returns null.
Hope this is not too confus
Does have to be within a section?
Thanks,
SB
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use is prohibited.
-
To unsubscribe, e-mail: [EMAIL PRO
Hi,
Inside a section I have some java code:
<%
String theTab = "";
%>
how do I get theTab to have the value of a property on the form such as:
Thanks,
SB
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use is pr
Hi,
If I have
<%
List myList = (List) someList;
%>
where someList is a list of objects whose name property I want to
display in a dropdown,
why doesn't the following work?
Thanks,
Sonam
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confiden
Thanks, Nick. That solved it.
-SB
Nick Heudecker wrote:
> It doesn't work because you must put the variable into the page scope:
>
> <%
> List myList = (List) someList;
> pageContext.setAttribute("myList", myList);
> %>
>
> > If I have
> >
> > <%
> > List myList = (List) someList;
> > %>
I'm trying to get the image be a link and not be underlined, but the
following still
renders an image with with a border.
If anyone can tell me how I can get the link image to display just on
it's own,
I'd appreciate it.
Thanks,
SB
--
NOTICE: If received in error, please destroy and not
Hi,
I've noticed that since validation is defined in the action mapping, it
will apply to all methods of
a dispatch action. But what if only one method in the dispatch action
requires field X to
be populated/selected and another method doesn't care. Is there a way to
apply struts
validation to onl
the action mappings look like?
Thanks,
SB
Joe Germuska wrote:
> At 4:56 PM -0500 12/15/03, Sonam Belbase wrote:
> >Hi,
> >
> >I've noticed that since validation is defined in the action mapping, it
> >will apply to all methods of
> >a dispatch action. Bu
26 matches
Mail list logo