Hello everyone,
I was wondering whether it's possible to start a Struts application from a
Client Progam made with Visual Basic , with a Link and
how you could pass parameters via this link that are availible in the
web-applikation.
Has anybody done this before, can you give me some advice on
Did you set the page directive in you JSP files like this?
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
Pham Anh Tuan wrote:
> Sorry all you,
>
> I don't intend to flood the mailling list, but yesterday, after I had
> sent this email, mail server feedback to me that my ema
Hello:
I'll like to use struts 1.2.x. I have struts 1.1. I replace the jars
and
the tld. In the struts-config I write:
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
before I have:
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
In the web.xml I have:
If you give validate=true then you need to give input parameter in the
struts-config as well. One more thing - in your JSP try using the following
code:
If you have HTML tags as part of the messages in
ApplicationResources.properties then you will have to add - "filter = false"
to
Yes, i have validate="true" set in my struts-config.xml. Here's my code.
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
if (getUsername() == null || getUsername().length() < 1) {
errors
Can you post a code snipper for your ActionForm? Do you invoked the form's
validate() method directly in your Action or do you have the mapping set
with validate="true" ?
Regards,
David
-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 1
Hi,
Am not using validator.xml for validation. But just the Actionform validate
method to validate the username and password submitted without values. I tried
to use even ActionMessage in place of ActionError, but, my jsp is not showing
the error message.
Please Help.
Thank an
Thank you. I resolved it.
Ed Griebel <[EMAIL PROTECTED]> wrote: This exception is caused by outputting a
message without specifying a
message resource in your struts-config.xml file.
You can learn some more about Struts starting at these links:
http://struts.apache.org/struts-action/index.html
I've read many different techniques to stopping double submits, but one
technique unfamiliar to me was described inside the Spring Framework.
http://www.springframework.org/docs/api/org/springframework/web/util/HttpSessionMutexListener.html
It did not occur to me to lock the session to make sure
This exception is caused by outputting a message without specifying a
message resource in your struts-config.xml file.
You can learn some more about Struts starting at these links:
http://struts.apache.org/struts-action/index.html
http://struts.apache.org/struts-action/userGuide/index.html
-ed
Sorry all you,
I don't intend to flood the mailling list, but yesterday, after I had sent
this email, mail server feedback to me that my email couldn't send :( ...
So, that the reason why I sent this email so many times, sorry all :(
about my situation, I can only save unicode characters into
Hi all,
I use Struts framework + Velocity, and I have a form with a text field,
something like below:
in velocity.properties file, I set:
input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't save
Hi all,
I use Struts framework + Velocity, and I have a form with a text field,
something like below:
in velocity.properties file, I set:
input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't
Hi,
I do have a SelectFooAction (actually it's called ChooseFooAction
:)). There is another problem though:
This action is used in more than one places so I have to add a
parameter called action in it's url (action=display for a simple user,
action=edit for the admin etc). Since I have a lot of
The only thing that I
can think of is to redirect the user to a different (perhaps error)
exactly, send them back to wherever they go to select the foo they want to
look at. Do you have a SelectFooAction?
On 6/20/06, Antonis Lebesis <[EMAIL PROTECTED]> wrote:
Thank you Don.
I have done that
Thank you Gary,
I was using the last version 1.1.3 ...
- Original Message -
From: "Gary VanMatre" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, June 20, 2006 11:55 PM
Subject: Re: clay template, duplicate components
>From: drh <[EMAIL PROTECTED]>
Hi all,
i'm
Thank you Don.
I have done that and the session expiry problem is solved. The
bookmark problem still exists though...
There is a way to overcome this as well:
ActionForward forward = new ActionForward();
forward.setPath(mapping.findForward("reload").getPath() + "&id=23");
which redirects
>From: drh <[EMAIL PROTECTED]>
>
> Hi all,
> i'm using the clay tag to import a template inside a typical login form:
>
> -
> | login: [__] |
> | pass: [__] |
> | submit |
> -
>
> The template contains the login, password and
Hi all,
i'm using the clay tag to import a template inside a typical login form:
-
| login: [__] |
| pass: [__] |
| submit |
-
The template contains the login, password and submit button, and have the
"r
hej allihopa, (<-- sweden is currenty playing)
i have a problem with message resource format keys. i don't really know
if it's a struts issue or a general java issue:
"currencyFormat=EUR 0,00" renders e.g.
- "EUR 4,00" on my "german" ie.
- "EUR 0,04" on my "english" firefox (which is the corre
Thanks Richard
It works with action=userlogin_display.
--- Richard Yee <[EMAIL PROTECTED]> wrote:
> According to the documentation if you use href, the value passed will
> be
> unchanged. It looks like you should use action=userlogin_display
> and the property and name attributes to set the
I do this very thing for required field messages and have no problem with
it. Are you passing the value to the ActionError constructor?
'{0}' is a required field
On 6/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
Hi All,
I am using struts 1.2.8 , In my MessageResources.propert
Yeah, I have used DispatchAction in the past but found it a bit klugey.
Rather than adding the querystring parameters in the Struts config for
dispatch, I overrode the processActionPerform method in RequestDispatcher.
I forget the specifics of the way DispatchActions are handled but at the
time it
Hello,
I have a tiles-defs.xml similar to the following (layout page with
banner on top, content on bottom):
So let's say my layout.jsp looks something like this:
It's not quite enough to do what I want to do. I have a
Hi Tuan,
Did you set the page encoding to UTF-8? And one more thing, set the
characterEncoding of your request to UTF-8 before it hit your action
(ie, in a filter or something like that).
PS: I've found a bug in Tomcat with when encoding data to UTF-8 with the
GET method (the POST method is OK)
Vidya Mahavadi wrote:
Hi guys,
I have a jsp where I have a table with few records and for each record I
have a Remove button, which actually should delete the record from
database. How do I pass the record id to the action.. Any ideas?
Regards,
Vidya
This message and any attachments are
Use ActionMessages in place of ActionErrors.
See:
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
regards,
Pankaj
[EMAIL PROTECTED] wrote:
Hi,
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
Act
request.setAttribute("websiteModel", new
DomainAdminAction.DomainAdminEditPageModel(
"domainWebsiteAdminEdit.title", request, response,
mapping, dd));
if (request.getAttribute("websiteModel") == null) {
request.setAttribute("websiteModel", actionForm);
Hello all! This is an important question and I think this is a feature
which isn't supported in Struts.
I have to actionform classes with two pagemodels inner classes. Lets say
We have action class X and actionclass Y with the pagemodel X:A and Y:B
To go from X to Y actionclass is no problem,
Hi All,
I am using struts 1.2.8 , In my MessageResources.properties file i am
using message key Found {0} records for NewYear's eve (just an example),
this throwing wrong format string exception, when i removed single quote
it's working fine and if there are no argument {0} then also its
Hi,
I think shale has an incompability with JSF 1.2. The following code
piece works fine without the shale-core.jar
When I include shale-core.jar I get
javax.servlet.jsp.JspTagException: Don't know how to iterate over
supplied "items" in
T
The class that's trying to do the cast is
org.apache.shale.component.SubView
I'll keep my beans in the Request scope. Newbie alert... ;-)
Craig McClanahan wrote:
On 6/19/06, Marty Phee <[EMAIL PROTECTED]> wrote:
Ok, I've got most everything working. Combination of things mostly me
not kno
Hi,
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
ActionErrors errors = new ActionErrors();
if ((username == null) || (username.length() == 0)) {
errors.add("username", ne
Leverage your hard-earned Struts experience in this five-day hands-on
course. Learn how to intergrate existing Struts applications with the
Next Big Thing: Struts Action Framework 2. The course covers migrating
existing applications to Struts Action 2, with a focus on upgrading
the most important
HI,
Can anyone please explain me how to validate a login page using validate
method of actionform. Am not able to display the errors in my jsp page though
i wrote in my jsp. Please give any example of using
ActionErrors.
Thanks and Regards,
MSV Lakshmi.
No it is in the request.
Cory Wiles
Internet Designer / Developer
Internet Development Department
St. Jude Children's Research Hospital
www.stjude.org
[EMAIL PROTECTED]
Office:(901) 495-2982
Fax:(901) 495-3103
---
Thanks Antonio!
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday 20 June 2006 11:11
To: Struts Users Mailing List
Subject: Re: set request parameter
Vidya Mahavadi ha scritto:
> Hi guys,
>
>
>
> I have a jsp where I have a table with few records and for
First of all, do you think that posting your thread FOUR TIMES it will
be read better than only one? It is a rude behaviour and you are
discouraged to do so. Anyway, because I am not evil I will try to help you.
Pham Anh Tuan ha scritto:
Hi all,
I use Struts framework + Velocity, and I have a
Hi all,
I use Struts framework + Velocity, and I have a form with a text field,
something like below:
in velocity.properties file, I set:
input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't save
Hi all,
I use Struts framework + Velocity, and I have a form with a text field,
something like below:
in velocity.properties file, I set:
input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't
Hi all,
I use Struts framework + Velocity, and I have a form with a text field,
something like below:
in velocity.properties file, I set:
input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't
Hi all,
I use Struts framework + Velocity, and I have a form with a text field,
something like below:
in velocity.properties file, I set:
input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't
Vidya Mahavadi ha scritto:
Hi guys,
I have a jsp where I have a table with few records and for each record I
have a Remove button, which actually should delete the record from
database. How do I pass the record id to the action.. Any ideas?
Write an HTML form for each record. In this fo
Hi guys,
I have a jsp where I have a table with few records and for each record I
have a Remove button, which actually should delete the record from
database. How do I pass the record id to the action.. Any ideas?
Regards,
Vidya
This message and any attachments are confidential and intend
Is your form in the session scope in the struts-config.xml?
-Original Message-
From: Wiles, Cory [mailto:[EMAIL PROTECTED]
Sent: 20 June 2006 03:54
To: user@struts.apache.org
Subject: Bean Information not Displaying on Failed Validation
I have a form that a user fills out, selects from a
Thanks Paz,
My problem seems to be resolved :)
Mukta.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 11:41 AM
To: Struts Users Mailing List
Cc: Mukta
Subject: Re: Image Caching in Tomcat
Hello Mukta,
I would nto advice to disable the
Thanks Lintang for replying.
but jstl.jar is already in the class path.
Any other suggestion?
regards
priyadarsh
Lintang JP <[EMAIL PROTECTED]> wrote: maybe you need to include jstl.jar to
your classpath ?
On 6/20/06, priyadarsh kankipati wrote:
>
> Hi,
> I was facing problem while precompili
Dear all,
I am using validator framework in my application for client side
validation. I have done all prerequisite . mapped my formbean in
validator.xml file .add coding in jsp page.
But while running that page it prints all the script code n the page
itself like given below.
Plz tell me the s
Bharat,
If you are just distributing your application's war file to be deployed at
your customer's server, you need not give the whole code base to him.
As the properties files are required for i18n features in the project, your
client may need to change the messages and labels etc. as per his
49 matches
Mail list logo