Map the action class in the struts config and have the link point to the
action
i.e. - Original Message -
From: "Anand Vijay" <[EMAIL PROTECTED]>
To: "Nitesh" <[EMAIL PROTECTED]>
Sent: Thursday, June 16, 2005 10:34 AM
Subject: Re: another newbie
Hi
Thanks for the help ...
How to inv
I tried with all the suggestions but it doesn't work:
Does anybody know the problem?
My code is:
I try to pass idProveedor and strRazonSocial to a javascript function...
But it doesn't work. I tried with lista.idProveedor but nothing...
Do u know the correct declaration???
Thanks
--
Ra
Richard,
JavaScript validations are majorly done on client side and so it would be
possible to do a actual validation of the email addresses. The JavaScript
email validations mostly will check
whether the email is in a valid format. (i.e. even [EMAIL PROTECTED] would pass a
validation)
If yo
Unfortunately guys all will be done on javascript. Any suggestion on
proven downloadble javascript components would be very much
appreciated. I might just code for the domain name validations.
Can I get the valid list from whois.org?
Thanks All
Richard
On 6/15/05, Martin Gainty <[EMAIL PROTECTED
If there is a problem, e.g. an action/page can not be
found, the ugly "Http 404 page not found" page will be
display. Is there a way to handle such event as Struts
Exception handling?
Thanks,
__
Discover Yahoo!
Find restaurants, movies, trav
You could populate the combo independently using a logic:iterate tag in the
JSP
Use a bean/helper to get the values as a collection and pass the same to the
iterator.
alternate method is to have an action class before the control comes to the
JSP where in you could get the collection. (Here also
On 6/15/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> David G. Friedman wrote:
>
> >See the HttpServletRequest API for these methods:
> >
> >boolean isRequestedSessionIdFromUrl() (pre 2.1)
> >boolean isRequestedSessionIdFromURL() (2.1 or later)
> >boolean isRequestedSessionIdFromCookie()
> >
> >
>
D'oh! Thanks, David!
On 6/15/05, David G. Friedman <[EMAIL PROTECTED]> wrote:
> See the HttpServletRequest API for these methods:
>
> boolean isRequestedSessionIdFromUrl() (pre 2.1)
> boolean isRequestedSessionIdFromURL() (2.1 or later)
> boolean isRequestedSessionIdFromCookie()
>
> Regards,
> D
I am writing a web app that gets information from a user (first and last
names, and their address (street, city, state, zip) ) and the user has
the option to sort the data. Based on direction(ascending or
descending) and what to sort by. Either first or last name.
Now here is my question, I
Hi All
I have a link in my application for user registration form . Form has
combo box that needs to be populated from database. How to achieve this?
Where do we write our bean to fetch the data?
Thanks in advance
Regards
Vijay
---
Thank you delbd, that indeed could produce an error.
I 've found that the error occured when fields in form didn't have unique
"name" attributes and I tried to perform forward to the same form.
href="/NILTemp/showAttachment.do?attid=name="att"property="id"/>">[View]
I use SimpleDispatch
I am working on a website which has mainly been a
total web application through its lifecycle. It uses
Struts and composes the interface using Tiles,
sometimes nested Tiles. I have setup my structure as
such:
WEB-INF
|-- jsp
||-- tiles
|||-- dir1
|||-- dir2
So I have creat
Hi,
I want to retrieve a translation given the messaeKey for the current user in the servlet
(not from within the JSP). How to do that. I found TagUtils.message(..) but it takes a
pageContext as parameter, which I don't know where to get. Is that the right method? Any
easier method to get a tr
Van wrote:
> Okay. So maybe this isn't the only wildcard mapping you will have.
Still, you could have one SectionAction class for this particular
wildcard mapping. That would be a vast improvement over status quo.
How many different wildcard mappings do you have in this application?
Almost eve
David G. Friedman wrote:
See the HttpServletRequest API for these methods:
boolean isRequestedSessionIdFromUrl() (pre 2.1)
boolean isRequestedSessionIdFromURL() (2.1 or later)
boolean isRequestedSessionIdFromCookie()
This answer is better than mine :)
Must... keep... reading... JavaDocs..
See the HttpServletRequest API for these methods:
boolean isRequestedSessionIdFromUrl() (pre 2.1)
boolean isRequestedSessionIdFromURL() (2.1 or later)
boolean isRequestedSessionIdFromCookie()
Regards,
David
-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Wedne
Michael Jouravlev wrote:
On 6/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
I didn't get any response to this last time so I'm asking again... :-)
I'd like to replace URLs like this:
/Sections/Subsections/?section=Section1&subsection=SubSection1
with URLs like this:
/Sections/Section1
Michael Jouravlev wrote:
Does anyone know, how to find out that URL contains session ID in it?
Session ID is separated with semicolon, and is not treated as query
parameter, so I cannot read as parameter.
Check for "sessionId" in getQueryString?
Dave
Does anyone know, how to find out that URL contains session ID in it?
Usually this happens only once in the beginning of a session, if
browser supports cookies. I even don't need the value itself, I just
want to know that fact, that session ID is appended to URL, not sent
as cookie.
Session ID is
Finally I could call a method from an Action which extends
LookupDispatchAction
/BAction.do?method=myvaluekey
where in my resources.properties file:
key=myvaluekey
Thanks to everybody for ur help =)
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no
Thanks Michael for ur reply.
I found this information I tried to follow:
http://struts.apache.org/faqs/newbie.html#chaining
But what about if BAction extends LookupDispatchAction
I tried to use: /BAction .do?method=mymethod in the forward path but there
is an error:
javax.servlet.ServletE
From: "Ovidiu EFTIMIE" <[EMAIL PROTECTED]>
> The project architecture is made in such way that ActionForms are an
> almost 1-1 mirror with the the Hibernate mapped entities.
> For example : if I have an entity A that contains an entity B and a
> list of entities C, in the corresponding forms I'll h
I wouldn't even say that Struts and EJBs are on the opposite end of a
scale. They can't be compared because they aren't the same thing
(apples and oranges comes to mind).
Struts is a Java implementation of the MVC (Model 2) pattern. It
gives you a nice framework with a controller and a bunch or
Franz-
courtesy
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL5.html
could you try
states the request parameter org.apache.struts.action.ERROR is NOT empty
Viel Gluck,
Martin-
- Original Message -
From: "Franz-Josef Herpers" <[EMAIL PROTECTED]>
To: "Struts Users Mailing Lis
Hi
I am using struts-1.2.4 and latest commons-validator to make use of the
feature of multiple valiadtions files support
Here I am getting the error like below.Can some one plEase help me solve
this
[ERROR] ValidatorForm - -No such validation method: null
org.apache.commons.validator.Va
Hi John,
> I think you should be able to use:
${!empty requestScope['org.apache.struts.action.ERROR']}
as your test, since requestScope is a Map object.
Thank you. That's what I forgot: The escaping because of the periods in
the request attribute name.
Regards
Franz
--
First off, there is no clear definition of what chaining is. Some say,
that chaining is the process of transferring control strictly on the
server (forwarding from action to action), thus linking action via
redirect does not count as chaining :) Also there is an opinion that
two actions do not make
Jan-
Can we see how the bean argument is constructed
Can we see how the map argument is constructed
You may want to take a look at the javadoc located at
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/BeanUtils.html#populate(java.lang.Object,%20java.util.Map)
If you a
Well, normally for a request attribute I'd just use
${requestScope.attributeName}, but you can't do this here since there
are periods in the attribute name. I think you should be able to use:
${!empty requestScope['org.apache.struts.action.ERROR']}
as your test, since requestScope is a Map obje
Hi folks. Do u know any information about action chaining?
I mean, I have a method in Action1 and it calls another method in Action2.
I know Actions return ActionForward and Actions too.
Do u know any site where I can find information about it???
Thanks in advance
--
Rafael Taboada
Softwa
> Here's something I'm using to accomplish this:
> http://www.systemmobile.com/wp/?p=114
> It's pretty simple, but can be refit to be fairly complex.
>
I've done something similar too, just another approach using other extension
points in Struts.
I extend the ActionForward adding some propert
In fact, this thread was really about Struts and how it integrates with
various J2EE technologies and containers, not "about Hibernate/EJBs"...
Anyway: I don't think that anyone says that Hibernate is better than EJB
period; but maybe easier and more flexible to use than Entity EJBs CMP,
which
Hi,
I'm using the the tag to print out validation error
messages. Now I want to replace the Struts logic tags with JSTL tags.
Hence I wrote:
But error messages are not shown even if there is definitely an request
attribute with the name o
Turn "debug" on for BeanUtils, your log file will show exactly the
property that was trying to be converted when it failed and you can
update it accordingly.
Regards...djsuarez
-Original Message-
From: Jan Ziniewicz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 15, 2005 8:07 AM
To: use
"I can give you more detailed information but i guess that it is quite
typical error." ... that could probably be resolved by downloading the
source for beanutils, firing up a debugger, and stepping through
PropertyUtils.setSimpleProperty(Object bean, String name, Object value).
-Dennis
"Ja
Spring takes care of all this (http://springframework.org) without the overhead
of an ejb container.
Acegi is one aspect closely tied to spring that takes care of security
declaratively.
Regards,
Abdullah
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Wednesday
Richard-
Can you run basic DNS nslookup utilities and or have access to
BIND a.root-servers.net - m.root-servers.net?
-OR-
You may want to use a combination of parsing the URL such as
http://java.sun.com/docs/books/tutorial/networking/urls/urlInfo.html
import java.net.*;
import java.io.*;
publi
Hello,
This is too little info :-)
Apparently, you are trying to copy two properties which have same name
but
Different type...
Regards
marco
-Original Message-
From: Jan Ziniewicz [mailto:[EMAIL PROTECTED]
Sent: 15 June 2005 14:07
To: user@struts.apache.org
Subject: Bea
You most probably have the wrong setter parameters for one or several of your
from's properties.
like have you have a setDate(Date date) instead of setDate(String date)
The only allowed signatures, if am not wrong are setXXX(String) and
setXXX(FormFile)
Le Mercredi 15 Juin 2005 15:07, Jan Ziniew
Has anyone had any experiences with the Multi-Channels construct within
Tiles?
Any resources, experiences good or bad would be appreciated.
Regards
Marty
I get this error when I click on a buttons in my forms. Some buttons work,
some don't and I don't know where is the error. Any suggestions?
I can give you more detailed information but i guess that it is quite
typical error.
javax.servlet.ServletException: BeanUtils.populate
org.ap
Hello all,
Sorry to get into this thread so late...
Since I have same view as Daniel about Hibernate/EJBs, I wanted to ask
one additional
question, since right now I am using EJBs..
Now, EJBs have some features that let the coder concentrate only
On the business logic instead of dealing, f
On 15/06/05 11:02 Richard Reyes wrote:
I plan to validate email addresses and Domain names entered by users
via those downloadable
javascripts. Any suggestions?
Also if I am to validate these fields do I need to know the valid .com
or .net domains?
The Validator plug-in is good for this. I use
Hi
I'm new to struts and I have some problem with struts.
I have tiles.jsp:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
In top1.jsp there's just this table of links
All cards
Evid.card
Store card
When I first call tiles.jsp, then I
Hi Guys,
I plan to validate email addresses and Domain names entered by users
via those downloadable
javascripts. Any suggestions?
Also if I am to validate these fields do I need to know the valid .com
or .net domains?
Please advise
TIA!
Richard
Hi
I have a link in my application for user registration form .
It has combo box in the form that need to be populated from database.
Say : Form action path is register.do and form name is register_form
What should be the link and how we have to do mapping in struts-config.xml
Regards
Vijay
I took one look at ejbs and ran a mile.
Struts and EJBs seem to be at the opposite end of a scale.
Struts is sensible, nice to work with, efficient, and generally everything
that EJBs arnt!
I personally use it with OJB (made that decision 1.5 yrs ago). Hibernate
seems to be more popular, and if
Good morning/day/evening, All!
I use Struts 1.2.6 and Tomcat 4.1.29
I have a working email validator for my form:
I want to use validwhen validator, so I changed the validation to:
test
CONDITION HERE
48 matches
Mail list logo