Hi
There is some thing called toplink in Oracle.. y dont u look thru that..
which is Object representation for table and properties.. but one thing is
that its compatible only
with Oracle databases...
and there is one more software called the castor.. where u have a
methodology for marshalling and
create one more tag in action ...
and provide this name in action class forward. this works...
abhijeet
- Original Message -
From: "Kalra, Ashwani" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2003 10:02 AM
Subject: forward problem ?
> h
hi,
I have one link http://localhost:8080/controller?id=23
when user clicks it , a page is loaded, user fills in the details in the
form, and presses one button and the same page should be loaded . The
problem is that redirecting to the same page is done using forward, which
leaves the address ba
Elliotte Rusty Harold's "Java Network Programming" section17.2.1
"tab-seperated-values content handler" shows a working example code. I
think it is rude to copy&paste the example here. It is just 20 lines of
Java.
-
To unsubs
...because my webapp only started punking out once I tried to add my first
element, I've rephrased this post (even though I'm not sure that it's
the data source where I'm going wrong).
--
- Original Message -
DATE: Mon, 10 Nov 2003 05:29:59
From: "todd thorner" <[EMAIL PROTECTE
Just a thought, another way to do it is, you can setup a odbc datasource to
the file, and using jdbc-odbc bridge to read the file like from a database.
Saul.
- Original Message -
From: "rickchev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 11, 2003 10:37 PM
Subject
bye
mastering struts . good book for basics as well as masters.
try out..
abhijeet
- Original Message -
From: "sanjay paithankar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 11, 2003 2:47 PM
Subject: new to struts
> Hello
>
> can any one point the basic docume
All,
I know this is off topic, but I'm stuck.
I'm trying to read a TSV file in java for use in a struts application but
the java buffered reader skips the first row of the data with the column
headings and the StringTokenizer skips the fields that are separated by
tabs but don't contain any dat
Good evening...
-Original Message-
From: Saravanakumar P [mailto:[EMAIL PROTECTED]
Sent: November 11, 2003 4:38 AM
To: Struts Users Mailing List
Subject: RE: new to struts
> Programming Jakarta Struts By Chuck Cavaness -O'Reilly publication
> is a good book to start.
that's the book i bo
Adam,
The struts.jar is located in the /WEB-INF/lib folder. I know the struts.jar
file is working because I can use the html tags (i.e. ,
, etc.) without error.
I just don't know what the problem could be. I am sure it is something
stupid but with such a simple application, you think it would b
Hi,
You can sendRedirect as usual and then return 'null' for the ActionForward.
Best Regards,
Dennis Lee
-Original Message-
From: Mohamed Abu Zur [mailto:[EMAIL PROTECTED]
Sent: 2003å11æ10æ äå 09:27
To: Struts Users Mailing List
Subject: sendRedirect within Action
Hi all:
How I can m
Peter - that's is how it's supposed to run. The form is available to the Action
it was submitted to, carrying with it the values typed in by the user.
--- Peter Klassen <[EMAIL PROTECTED]> wrote:
> Hi all,
> can't see my ActionForm in my Action, which triggers the Forward to the Page
> with the A
I read the section of the specification that you referring to and I
think that you have it backwards. It doesn't say in the specification
that when you do a requestDispatcher.include() that you should change
the request.getRequestURI(). What I do see in the spec is that the
request attribute of j
I'm experiencing some peculiar error in the validation framework..
I hv tested the validation for two different fields in different pages using pattern
matching maskfield in some page it does working...but other doesn't...I just
wondering what was the problem with me..?
It does working
Anyone know of any good struts message boards?
Thanks in advance,
~Robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Quoting James Norman <[EMAIL PROTECTED]>:
> I'm in the process of porting a web application from the
> Jetspeed/Turbine framework over to struts and I ran into a problem
> someone may be able to help me with.
>
> When I have a Jsp that is included by a tile, the
> httpServletRequest.getRequestURI
Hi Kris,
Your method works fine for me. Brice thank you very muchfor helping me
out. Kris's method works fine for me.
Thank you guys
--Mohan
your method works
> Why not just forget about ?
>
> charset="A-Z ! @ # \\ \- + ? & $"/>
> name="security"
>value="">
>
> BTW,
I'm in the process of porting a web application from the
Jetspeed/Turbine framework over to struts and I ran into a problem
someone may be able to help me with.
When I have a Jsp that is included by a tile, the
httpServletRequest.getRequestURI() returns the location of the Jsp that
the tiles inclu
Why not just forget about ?
">
BTW, I don't think will use it's body content as its value.
Quoting Brice Ruth <[EMAIL PROTECTED]>:
> Looking at the docs for the random tag library, you'll probably need
> something like this:
>
>
>
>
>
>
> -OR- if you're not already using the JSTL core
Hi,
I need to accept "."(dot) as part of input value. While trying to test it
does not accept "." in the input entry.
Any idea how to make it accept "." character in the validation pattern.
following is the validation pattern for that field in validation.xml
form name="AvailabilityForm
There should be documentation & tools in Sun's J2EE reference
implementation download ... check out the J2EE section at java.sun.com.
Rhet Behler wrote:
can someone tell me how to build an ear for deployment?
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
can someone tell me how to build an ear for deployment?
Looking at the docs for the random tag library, you'll probably need
something like this:
-OR- if you're not already using the JSTL core library (prefix: c), then
replace the tag with
Brice Ruth wrote:
What HTML is generated?
[EMAIL PROTECTED] wrote:
I used the second sytax as
And
What HTML is generated?
[EMAIL PROTECTED] wrote:
I used the second sytax as
And i cannot see this value in my "keycode". I do not want to store it
anywhere but the resetPasswordForm the form bean for this
jsp(resetpassword.jsp)
Use the ${...} syntax with whatever you name the var in:
In
I used the second sytax as
And i cannot see this value in my "keycode". I do not want to store it
anywhere but the resetPasswordForm the form bean for this
jsp(resetpassword.jsp)
> Use the ${...} syntax with whatever you name the var in:
>
>
>
> In this example, the variable is named "rand" -
Jyothi,
You still having problems with this?
Sorry that I haven't gotten back to you, but work's been quite busy and not
enough hours inbetween.
Just let me know.
Arron.
PS: you'll get my attention faster with this email address. :)
> Hi,
>
> I am very new to nested tags and I am trying
Use the ${...} syntax with whatever you name the var in:
In this example, the variable is named "rand" - so you'd use ${rand}.
Or, don't use that syntax at all and use the
syntax. Where you don't need to explicitly store the random string in a
separate variable.
[EMAIL PROTECTED] wrote:
H
The JSTL algorithm will only use the root resource (your
ApplicationResources.properties) as a last resort. It will walk through the set
of locales returned by ServletRequest.getLocales and try to find a match. If it
can't, JSTL implements the concept of a fallback locale that it will attempt to
ma
Hi
I meant should i say "${var}" or "${rand}".
--mohan
> within the struts tags that support EL, you need to use the ${...}
> syntax. To my knowledge, the only (standard) tags that use "$var" are
> the JSTL xml tags. Make sure that you are using the struts-html-el
> taglib.
>
> [EMAIL PROTECTED]
I am wanting to do some special logging
of MessageResource requests based on what
page the user makes the request from.
I looked at subclassing MessageResources
and MessageResourcesFactory - but it looks like
that won't work because in the MessageResources
class you don't have a way to access Page
Yup...did think of that approach but felt that any change in the alias (for some
reason DBA decides to change a stored proc ) means a change in the code...which means
compile, test, redeploy.
Using the map approach we just change the config file and we are done...
We are using the framework for
Quoting "Sumit S." <[EMAIL PROTECTED]>:
> The ResultSetDynaClass & ResultSetDynaBeans are a powerful way of
> encapsulating ResultSets in DynaClasses. However, when we need to transfer
> the data from such a DynaClass to a ValueObject (say a structs ActionForm),
> the PropertyUtils.copyProperties
within the struts tags that support EL, you need to use the ${...}
syntax. To my knowledge, the only (standard) tags that use "$var" are
the JSTL xml tags. Make sure that you are using the struts-html-el taglib.
[EMAIL PROTECTED] wrote:
Hi in this construct
in place of value should we use val
Hi All
I am using the struts random tag like this
I am trying to generate a random string and add this to the user
attributes in the database. But somehow the random String does not show
and only an empty String appears in place of the 20 character random
string.
Please help me if any one use
http://planojava.org
--Zoe
-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Dallas struts user groups?
Are there any struts groups in the area? Or at least java web development
groups that
Hi Saul,
Thanks it works.
Alvin
Saul Q Yuan <[EMAIL PROTECTED]> wrote:
I think you can configure that in the web.xml file, something like
befow:
403
/http403.jsp
you may need to check the dtd to see it's exact location in web.xml.
Saul
-Original Message-
From: alvin antony [mailto
Yeah...but look at the following scenario
1. Call Database. Get back result set.
2. Create a DynaBean array list from the result set.
3. Use PropertyUtils.copyProperties() to transfer data from the result set into a
value object.
3.1 At this stage my ValueObject property names have to be the s
Hi in this construct
in place of value should we use value="$var" or value="${rand}". Please
let me know.
I have used this but somehow a random string is not constructed but only an
empty string is seen.
Please let me know if anyone has any ideas about this. I am trying to
create a random
Are there any struts groups in the area? Or at least java web development
groups that anyone knows of, or is a part of?
Thanks,
-Sasha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
Hi all,
I just read the SecurityFilter README file and I saw something about mapping all
request to the security filter, but wait a minute, how far with mapping my request to
the struts ActionServlet?.
I will appreciate any help in clearifying the issue above.
David Liles <[EMAIL PROTEC
Hi all,
can't see my ActionForm in my Action, which triggers the Forward to the Page
with the ActionForm. I also don't see the Form in any Context on the Page. I
just get the Form on the next Action, forwarded by the form on the page.
I've played with the configuration already, but with no effort.
I think you can configure that in the web.xml file, something like
befow:
403
/http403.jsp
you may need to check the dtd to see it's exact location in web.xml.
Saul
-Original Message-
From: alvin antony [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 10:52 AM
To: Stru
Struts and JSTL seem to have different algorithms to establish the
locale to use.
I have JSPs which use for titles, labels, comments etc and
I have also just started to program a page which will include an
underlying language page to incorporate big paragraphs of localized text.
I thought I w
Hi David,
i sticked to this document
http://www.systemmobile.com/articles/strutsMessageResources.html, so i used
the struts-config.xml to create the reference to the resource file, only.
Works fine in the jsps and also in the ActionForm-class, if i only have one
single resource file.
Regards,
Dom
The NJMVCOpenSource Group meets in Morristown NJ every 4th Saturday of every
month. We are just starting to discuss JSF / Struts. Anyone that wants to
join please see:
http://groups.yahoo.com/group/njmvcopensource/
We welcome new members :)
---
Hi Alvin,
all properties-files are available under /WEB-INF/classes/resources.
The problem starts when trying to access them from the ActionForm, when i do
not specify a bundle id (as opposed to the jsp file). When i use just one
single properties-file (e.g. ApplicationResources.properties), it wo
Not sure if it matters, but is there a difference as to where the reference should be
located (ie: web.xml vs. struts-config.xml) between Struts 1.0 and 1.1?
-Original Message-
From: alvin antony [mailto:[EMAIL PROTECTED]
Sent: Tue 11/11/2003 9:42 AM
To
Hi Saul,
Thanks for your replay. I knew this is one solution. But in my case the user is
redirected to status message from Struts controller or tomcat authenticator. I would
prefer to redirect the user to a jsp page with a descriptive message.
It would be fine , if I can define some how in
Hi Dominique,
Make sure that "ApplicationResources.properties" and
"ApplicationErrors.properties" are available in a package 'resources'
under WEB-INF/classes or WEB-INF/lib/
Alvin
Dominique Kraus-Ahma <[EMAIL PROTECTED]> wrote:
Hi,
i am trying to access a message-resource, that holds my
How about this:
Call
response.sendError(HttpServletResponse.SC_FORBIDDEN, "some description
msg") in your action if the user is not in the role;
Saul
-Original Message-
From: alvin antony [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 9:49 AM
To: Struts Users Mailing List
I think the dynaFormBean is there for exactly same purpose
-Original Message-
From: Sumit S. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: ResultSetDynaClass etc...
The ResultSetDynaClass & ResultSetDynaBeans are a powerful way of e
The ResultSetDynaClass & ResultSetDynaBeans are a powerful way of encapsulating
ResultSets in DynaClasses. However, when we need to transfer the data from such a
DynaClass to a ValueObject (say a structs ActionForm), the
PropertyUtils.copyProperties looks for a property name match.
So now my Ac
Hi,
i am trying to access a message-resource, that holds my error messages.
Since i have two message resources, i need to give them an id to identify
them. This is how my struts-config.xml looks like:
Using them in the jsp-Page is no problem at all, e.g.:
You really should be populating the form from within an action before you
get to the JSP.
But if you must, custom tags aside, this might work:
<%
ActionForm form = (ActionForm)pageContext.getAttribute(formBeanName);
BeanUtils.copyProperties(databean,form);
pageContext.setAttribute(formBean
Hi there,
I have restricted the access to my actions with user Roles (in struts-config.xml and
WEB.xml) and it works fine.. Thanks to JAAS.
I couldn't't find the way to redirect user request to a status error page, in case he
is not in the Role for requesting a page. any help?
I am using...
Max,
I've looked at the link you provided and noticed there is a limitation to the 2.3
servlet container. what options are available to the platform only supports a 2.2
version?
Thanks
-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: T
We just finished a thread on this - see the thread named "Struts across
WARs" ...
http://www.mail-archive.com/[EMAIL PROTECTED]/msg86129.html
[EMAIL PROTECTED] wrote:
I am creating a STRUTS based app with .EAR as the deployable in which I
want to host 2 .WARs, one for the internal user and the
You might try looking at www.xmlsoftware.com, they have tons of XML related
utilities and tools.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 7:55 AM
To: Struts Users Mailing List
Subject: XML importing :
Sorry for a unrelated que
You can also sub class the processRole method in Request Processor and then
check whether the user logged in has a particular role . The accepted roles
are declared in the action tag , there by giving you a action level Security
.
-Original Message-
From: Steffen Gransow [mailto:[EMAIL P
Hi u all,
would like to init a ActionForm on the Top of my JSP-Page with an given
Data-Bean.
How can i retrieve the Form? pageContext? session?
thx, Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
That approach breaks the "page-level addressibility" advantage that building
web apps generally affords, however. The breakage is that the user won't be
sent back to the page they requested after they login.
Container-managed security offers robust and time-tested security for your
Actions/pages,
Sorry for a unrelated question, but is there a easy way of taking xml data
and importing it into a relational database some like
Mike
gets translated as
insert into user values ("Mike")
etc..
Mike
T
I have ActionA and FormA associated to screenA, similarly ActionB and FormB
associated to screenB. Upon click of a button on ScreenA, I need to
dispatch ScreenB with some values prefilled. I was wondering where should I
be writing the logic to populate the FormB for showing those values
prefilled
I also think you need to check that the struts.jar is in your WEB-INF
directory...
On 11/11/2003 01:27 AM Yee, Richard K,,DMDCWEST wrote:
Richard,
Try using forward slashes in your docbase instead of '\'
docBase="E:/Projects/HelloWorld" />
Java might otherwise interpret it as an escape char.
-Ri
If you're looking for a simple solution I've used the following snippet of code:
<% if(session.getAttribute("valid") == null) { %>
document.location=('/Logon.do');
<% } %>
I place it in a JSP and then use a jsp include tag in each of the jsp pages I want
secure. This prevents users from bo
I am creating a STRUTS based app with .EAR as the deployable in which I
want to host 2 .WARs, one for the internal user and the other for external
user. I want to have exactly the same code base for both WARs including any
resources and property/configuration files etc but for one Action class.
Any
Using Struts validator how can I do cross locale validations?
Meaning, I want the validation to be done on one locale, but the error
message should be from other locale.
Example, The validation should be according to de-DE locale, but the error
message should be of en-CA
Thanks in Advance,
Vara
can any one point the basic document
regarding Struts which has given small examples.
There's this amazing new search engine, called Google, which you can
access at www.google.com. If you enter the words "Struts Tutorial" and
click "Search" it will bring up a huge list of Struts related website
But that would be somewhat of an overkill, if all I need is securing
some pages/actions, wouldn't it? I now have a simple servlet filter that
redirects to login page if a simple object isn't to be found in session.
User passwords (that is, hashes) will later be retrieved from a
database. Is this ap
Programming Jakarta Struts By Chuck Cavaness -O'Reilly publication
is a good book to start.
SaravanaKumar
-Original Message-
From: Sumit S. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 3:07 PM
To: Struts Users Mailing List
Subject: RE: new to struts
http://jakarta.apache.
http://jakarta.apache.org/struts/learning.html is a good place to start.
Sumit
-Original Message-
From: sanjay paithankar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: new to struts
Hello
can any one point the basic document
reg
Hello
can any one point the basic document
regarding Struts which has given small examples.
thnx
-cs..
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
Thanks for the reply.
Todor
Max Cooper wrote:
The answer is yes, but not in the way you are thinking.
You cannot send a stream of HTML and image data together and expect the
browser to display it. You can send a stream of HTML data with references to
image data ( tags) and the browser will make
Can anyone point me to some sample code for handling an object which
consists of a couple of ArrayLists in an ActionForm?
I'm trying to do two things:
1. take a url var and select an ActionForm from a hashmap (cache) sitting in
application scope.
2. use that ActionForm in a struts form.
Regards
74 matches
Mail list logo