Hi,
Further information as requested:
The formbean is as below:
package com.rbsg.application.serviceuserweb.forms;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import
Hi,
Try this .
logic:iterate id=listvo name=userList type=com.user.UserModel
Here name attribute should be what you have set the key in request and
specify the location of your class in type w.r.t web application.
Rest is fine.
It should work.
-Original Message-
From: santas
HI
i tried what u said but stil the same error is shown to me
i have set the list with key users
then i first check
logic:present name=users
table
tr
th/th
th/th
/tr
logic:iterate id=listvo name=users type=com.user.uservo
tr
td
bean:write name=listvo property=firstname/
/td
Hi!!
Iam losing error message when iam setting redirect=true in action
mapping, iam doing this to avoid resubmit of data on page refresh ie if
user press F5 function key.
Any help would be highly appreciated.
Thanks and Regards,
Balwinder Kumar
try to use the scope attribute of the iterator tag and see,
eg:
logic:iterate id=listvo name=users type=com.user.uservo
scope=request
logic:iterate id=listvo name=users type=com.user.uservo
scope=session
Thanks,
Nuwan.
- Original Message -
From: santas [EMAIL PROTECTED]
To:
Im not very sure, but i think that when you use redirect= true a new request
is built(when the redirect is made) and there you loose all your data that
is in the request.
To avoid the resubmit there is others solutions.
Regards,
Juan
-Mensaje original-
De: Balwinder
Hi,
You mustn´t add an ArrayList in request scope, you have to add a Collection
of objects of the class uservo .
Regards,
--
Eider
On 11/13/06, santas [EMAIL PROTECTED] wrote:
HI
i tried what u said but stil the same error is shown to me
i have set the list with key users
then i first
Would the svaeToken(), isTokenValid() helps you..?
-Original Message-
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
Sent: Monday, November 13, 2006 6:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost Error Message!!
Im not very sure, but i think that when you use redirect= true a
Debug your code.
Make sure that your listvo should exist.
Use scriplet and use println to verify the object status using in logic
iterate.
The problem lies with code written in action class.
-Original Message-
From: santas [mailto:[EMAIL PROTECTED]
Sent: Monday, November 13, 2006 5:33 PM
On 11/13/06, Eider Iturbe [EMAIL PROTECTED] wrote:
Hi,
You mustn´t add an ArrayList in request scope, you have to add a
Collection
of objects of the class uservo .
Dont really know what you are trying to say. An arraylist would be a
collection of uservo.
ArrayList uservoList = new
Hi again,
Instead of using
ArrayList uservoList = new ArrayList();
request.setAttribute(listvo,uservoList);
you have to use this:
*java.util.Collection* uservoList = new ArrayList();
request.setAttribute(listvo,uservoList);
Regards,
--
Eider
On 11/13/06, Puneet Lakhina [EMAIL PROTECTED]
Nitin M. Mandolkar wrote:
This solution is also good. If later on you find the filter code block
is taking more time and creating some performance issues in that case
you can easily remove it. By making few changes in web.xml.
Even the URL pattern can help you more to apply it for specific
Anil Kumar T wrote:
Would the svaeToken(), isTokenValid() helps you..?
-Original Message-
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
Sent: Monday, November 13, 2006 6:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost Error Message!!
Im not very sure, but i think that when
It's up now.
We're just trying to run too many example applications through this
hosted account.
-Ted.
On 11/12/06, wolverine my [EMAIL PROTECTED] wrote:
Hi Wendy
I did not deploy the application locally, it is on the Struts 2's
Tutorial at http://struts.apache.org/WW/tutorials.html
Under
Hi Sandip,
the flow should be like.
1. from action class call you call method which in turn fetch the data from DB.
2. in that method, populate the data and the whole row should be added into
object. something like
while(rs.next())
{
Sunita-
please display bean code for com.user.uservo
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you
are hereby notified that you have received
i added one following code to my jsp
%
ArrayList list= (ArrayList)request.getAttribute(users);
System.out.println(the size of the arraylist is:--+list.size());
Iterator it= list.iterator();
while(it.hasNext())
{
uservo vo=
Thank You All
for your great support,help and valueable time
finally it is working now, today i learned a lot from you all about
logic:iterate tag
Thank You once again
Puneet Lakhina wrote:
On 11/13/06, Eider Iturbe [EMAIL PROTECTED] wrote:
Hi,
You mustn´t add an ArrayList in request
The error message is not related to the logic:messagesPresent tag.
This error is caused by having an html:xxx form field tag (checkbox,
file, text, textarea, password, etc.) that is not inside an
html:form/html:form tag. Look at the erroring jsp's to see where
this is the case.
Often exception
You should do validation manually in your action. Set
validation='false' in your struts-config.xml and call form.validate
in the action methods that need to be validated on. For example, do
something like this in a method:
ActionMessages errors = form.validate(mapping,request);
if ( errors !=
Dear developers,
I need help to the following problem. Scenario:
User edits the Field comment on the HTML page (.e.g. hello). This
field corresponds with ActionForm property comment. I set the the
ActionForm.comment null in the Action class(the HTTPServletRequest
Parameter comment remains hello
IMHO, yahoo UI is the most Robust Library out there... at least one that I
could find (and yes I don't work for Yahoo :)) ..., the biggest problem
with Dojo that I have seen is in its performance,(goggling gives a quite
good view of it as well) and there has been instances that it had
On 11/10/06 6:46 PM, Don Brown [EMAIL PROTECTED] wrote:
I believe that any unknown result parameters are automatically used as
request parameters for the redirect. Then, use an ognl expression for
your param value and provide a getter on your action for the value.
Hi Don,
Do you have an
I reset my checkboxes and a multibox in a form reset method but then
when I come back to the page the values arn't checked.
If I don't reset them then it won't register them as not checked anymore.
How do I fix this?
Shawn
-
A couple of things to check
1. Is your get action using the same form as your post action?
2. Do the names of the checkboxes in the html match your form?
3. Where are you resetting the checkboxes? I'm hoping you're doing it by
overriding ActionForm.reset().
-Original Message-
From:
I did some testing and came to the conclusions below. I might be wrong,
but I think these are correct:
- Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x.
Chances are that it is also incompatible with Struts 2.0.x.
- Struts 1.3.x has changed how TLD tags are placed on the
Hi All
I have multiple submit buttons on my jsp page. I would like to use
EventDispatchAction to do that.
The issue is I have been working with struts1.1 and I can't upgrade to
struts1.2.9.
Is is possible for me to add EventDispatchAction to struts1.1 version. If
yes, please let me how can I
On struts wiki it says to remove local or old external references of TLDs
with new external URLs :
http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 topic 5.4 TLD URLs,
myeclpse which I think is based on eclipse WTP, works fine with struts
1.3.x using external TLD references.
Levan
I hope you meant Eclipse *Web Tools* and that your project is a Web
Application. If not, then Eclipse (as Robin hints at below) has no
concept of the web root or what jars belong where and why. That's
the purpose of having a project type that understands Web Applications.
If using Maven,
1. Yes
2. Yes
3 In ActionForm.reset
If I comment out my reset method then it populates the checkboxes
based on the form values like I want however I then loose the ability
to only get the checked value put into my action form after the page
is submitted.
Yes, I am using the WTP plug-in and the project is a Web Application. I
am not using maven to build Eclipse... I am using the canned Eclipse
3.2.1 from eclipse.org and all the latest plug-ins downloaded from
inside Eclipse.
I also found a note at the bottom of section 2 of
On 11/13/06, Bruno Melloni [EMAIL PROTECTED] wrote:
(An alternative is specified in 5.4 as suggested by Levan, but it makes
the app - which could be an intranet app - dependent on a connection to
the internet, not good for mission-critical apps)
No, it doesn't. Those are URIs not URLs. (Try
I'm not too worried about this because it seems to be working, but
here goes.
I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has
the following section in it.
ul
logic:iterate name=accountInformationForm property=accounts
id=accountSummaryView
li
Hi!
In http://cwiki.apache.org/WW/freemarker.html, it explained that
Struts 2 looks for FreeMarker template in Web application followed by
the Class path.
However, when I placed my FreeMarker template in
webapps/dummy/WEB-INF/classes/com/dummy/test.ftl
it caused the following exception:
Using struts. Have a JSP cust.jsp
In it half of it is very specific to that page only. other half is shown in
this cust.jsp and another report.jsp too.
want to implement this so that code can be re-used in the other one too.
The way I have designed is for a jsp have a prepare action and
Remember the thing that is on the classpath is WEB-INF\classes, not it's
subclasses. I don't use FreeMarker, but I'd suggest puting that file in
WEB-INF\classes and giving it a try.
(*Chris*)
On 11/13/06, wolverine my [EMAIL PROTECTED] wrote:
Hi!
In
you can use %@ include file=... % to include the common JSP.
On 11/14/06, fea jabi [EMAIL PROTECTED] wrote:
Using struts. Have a JSP cust.jsp
In it half of it is very specific to that page only. other half is shown
in
this cust.jsp and another report.jsp too.
want to implement this so that
I'd look at either JSP Include or Tiles.
(*Chris*)
On 11/13/06, fea jabi [EMAIL PROTECTED] wrote:
Using struts. Have a JSP cust.jsp
In it half of it is very specific to that page only. other half is shown
in
this cust.jsp and another report.jsp too.
want to implement this so that code can
Hi Chris
Yes, it works when I put the file in WEB-INF/classes
On 11/14/06, Chris Pratt [EMAIL PROTECTED] wrote:
Remember the thing that is on the classpath is WEB-INF\classes, not it's
subclasses. I don't use FreeMarker, but I'd suggest puting that file in
WEB-INF\classes and giving it a try.
Hi Brad,
Double check your Struts-config whether u have set the scope=session
for this action. And also try using simple Bean writes before using
html:link For link creations...
Regards,
Mano
-Original Message-
From: Bradley Wagner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November
Hi Brad,
Double check your Struts-config whether u have set the
scope=session
for this action. And also try using simple Bean writes before using
html:link For link creations...
Regards,
Mano
The struts config file uses scope=request for this action. I tried
adding a bean:write before
Do you think this something to do with the session using
scope=request?
Blah, I can't talk. Do you think this has anything to do with the
action mapping using a scope=request?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
The value of lang attribute which html:html tag generates is
not escaped. I think it could cause XSS problem If Accept-Language
HTTP header's value is replaced with script tag.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
I think u have to set the scope to session ...just try it... and let us
know..
Regards,
Mano
-Original Message-
From: Bradley Wagner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 14, 2006 10:11 AM
To: Struts Users Mailing List
Subject: Re: Console error message for a working
Hi,
U can enclose logic:present /logic:present tag before coming into
iterate tag and test it..
Regards,
Mano
-Original Message-
From: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 14, 2006 11:55 AM
To: 'Struts Users Mailing List'
Subject: RE: Console
Hi,
I want to call
mapping .setInput() method inside my validate method
of a form bean.
But it throws an Exception.
java.lang.IllegalStateException: Configuration is
frozen at
org.apache.struts.config.ActionConfig.setInput(ActionC
Can u Pls mention ur struts version ?
Regards,
Mano
-Original Message-
From: chamal desilva [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 14, 2006 1:08 PM
To: user@struts.apache.org
Subject: setInput method of ActionMapping
Hi,
I want to call
mapping .setInput() method inside my
47 matches
Mail list logo