we have developed a framework on our project which dynamically writes out
correct tags on the page, including value data and properties. For example:
xx:cmp name=person property=name could either write out an anchor tag
or just the value of the person's name property - depending on permissions
It doesn't really sound like a framework issue to me. I'd start by
thinking about how you would do this with any servlet, JSP, or CGI
application, and proceed from there.
You probably want to write a dynamic page, based on a configuration
record that has been stored someplace. If you have a
I've a classic from where users can insert name, last name etc.. and a photo,
everything
is ok but:
1 - the file is uploaded before the form is validated, so may happen one should wait a
couple of minutes before knowing the data inserted is not valid (okok I know that's
not a
struts issue ;)
Hello All
I'm using Contrib/Tiles (Last version) with Struts Nightly build and trying
using tutorials: Definitions as forward.
It seems that ActionComponentServlet is not compatible with struts nightly
build (1.1 dev) as the following occurs:
Can someone help me with this?
1. In an Action, I populate the value of a Bean.
2. Then, in the Action, I put the Bean in the session like this:
session.setAttribute(theUserList,userList);
3. On a JSP page, when I use tags to try to get at the Bean, however, I
think
I am only
Yes, for the time being, the Nightly Build cannot be used with Tiles.
While this is being resolved, you can use recent Struts 1.1 JAR here:
http://husted.com/struts/resources/struts_1_1a.zip
Hertzel Karbasi - OPTinity eBusiness Solutions wrote:
Hello All
I'm using Contrib/Tiles (Last
You might find the Struts bean tags easier to use that the standard JSP
actions, since there is not as much red tape involved.
For example, to simply write your test string
bean:write name=theUserList property=testString/
is all that is needed. The tag will figure out the rest =:o)
You are putting the bean in the session context (session.setAttribute...)
and looking for it in the request context (jsp:bean...scope=request...).
Be consistent.
bob
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 10,
Thanks, Ted! You are the almighty Struts super-hero. But, one more
question...
To use bean:write
Do I need to still declare the bean first with jsp:bean
- Cody
Ted Husted [EMAIL PROTECTED] on 02/10/2002 09:18:18 AM
Please respond to Struts Users Mailing List
No. That's what I meant by red tape :)
[EMAIL PROTECTED] wrote:
Thanks, Ted! You are the almighty Struts super-hero. But, one more
question...
To use bean:write
Do I need to still declare the bean first with jsp:bean
- Cody
Ted Husted [EMAIL PROTECTED] on
hi all.
I'm using a nightly build with the nested extension tags.
I expose to the View (jsp) a Component bean (GoF Composite pattern) and
I need to have a 4 level iteration over the Component's children. These
can be Composite (and thus _have_ children) or Leaf (and thus have no
I have an action that creates a form and forwards that to a display-only
page. After struggling many hours trying NOT to use an html:form, I
gave up. Issues:
1. nested:root needs more than just name. It should include full
scope/property semantics.
2. nested:define, nested:iterate et.al.
Hi,
Is there a way to config Struts to forward a different
jsp based on the User Agent of the HTTP Request? I
would like to use the User Agent to identify the
client type (e.g. where desktop or a mobile phone) and
send out either HTML content or WML content.
I come up this idea, I am wondering
Robert, All:
We have added SecureFormTag as an extension to FormTag for our implementation
of HTTPS/HTTP web application switching. SecureFormTag will determine if the
action specified as the action attribute value should be called using SSL or
not. The HTML form element it creates will then
Hi,
Iam a novice .
I dont understand as to how to harness the power of TagExtraInfo .
Basically ,I dont understand what exactly it is for .
Can anybody help me or point me to a useful resource on the net ??
Thanks
Regards,
Syed Niaz
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
I need to map all my JSP's to - *.something - not just the actions
JSP's.
How should I do this?
Should I write some base action and use it as some handler or there is an
other way?
(Ted)
Well, the main features I'm after is the MVC model: i.e. the Controller with
it's action mappings, the Actions and the Form handling. I really like how
the ActionForms create a nice request handling and user entry model. The
validate() method, the custom tags that populate with data if
Hi Folks:
I very versed with Java Swing ui programming as well as server side
programming via servlets and jsp.
I also understand the MVC architecture having done MFC and then JFC so I
understand about models and views and components.
Being new to struts, I am familiarizing myself with the
Here's the url to the JSP1.2 Spec
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/. It may shed
some light on the topic.
I don't use them much. As I understand it, they are used to expose variables
associated with a customer tag(in a specified scope) to the JSP page so that
you don't
The original message was received at Sun, 10 Feb 2002 16:00:11 0500
- The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
- Transcript of session follows -
... while talking to mail.s1.com:
RCPT To:[EMAIL PROTECTED]
550 [EMAIL PROTECTED]... User
Hi Folks:
I'm doing the tiles tutorial at:
http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html
It says:
Copy directory tutorial/images from the distribution tutorial directory to
your examples root directory
I believe the USR AGENT is passed in the request header. You should,
therefor be able to easily get a handle on it using your Action object.
To enumerate through all header names available:
java.util.Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()) {
String name =
You can map JSPs without having to pass through Action objects by simply
defining the JSPs as Global Forwards in your struts-config file:
global-forwards
forward name=addUser path=/admin/admin_userForm.jsp/
/global-forwards
So, in the above example, calling addUser.do will just get me
If you have mapping turned on (*.do) for your Struts servlet, only those
url's that end in '.do' will go through the servlet. Or put another way,
any url that does not end with '.do' will be processed as is by the servlet
engine.
bob
- Original Message -
From: [EMAIL PROTECTED]
To:
Nop,
Unfortunatly PropertyFile works only at file level.
Regards
Tomy
-Ursprüngliche Nachricht-
Von: Jeff [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 29. Januar 2002 16:36
An: [EMAIL PROTECTED]
Betreff: Ant PropertyFile question - Ant newbie
Thomas,
I have been tasked
The typical approach is to populate existing beans from the ActionForms
(in the Action), since most beans are really not suited for data entry
in a hostile, String-centric HTTP environment.
For output, the existing beans would actually be preferred, since the
ActionForm beans are really tuned
Alberto,
I've found that the viewable performance is also in the time it takes
for the browser to render the Html.
NS6 IE6 it usually isn't that bad, but use NS4 and you'll see it. I
ran the Monkey example in NS4 and it almost killed it. :)
It did render, but it took a while.
But, I then
I didn't realise that this was posted on the user list as well. For the
benefit of any readers...
nested:root requires only the name of a bean which is in scope. For
example I use...
jsp:useBean id=myBean scope=page
class=com.km.struts.test.TesterBean/
nested:root name=myBean
...
The following error is being generated while using a String[] for
html:select.Looking forward to your help.
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at
1.4.4 Struts CMV, Table 1.5 - Struts view helpers
This part has me confused. I have been using a STRUTS-FORM libary tag that
you do not mention here. Either the tag has been somehow wrapped into one
of the other tags and I do not know it yet, or maybe you have forgotten it.
I am guessing that
Hi Guys,
I'm a newbee to struts so I'm filled with
questions (some of them are outrightly stupid at times
:) ... herez one of the problems that I'm facing. The
struts User Guide suggests that a form that spans
across multiple pages should use form bean. This will
lead to a situation where
Hi,
First lemme thank all of you guyz for the quick
responses that I've got for most of my problems.
Few of your suggestions have really helped me. But my
problem with relative URL still remains. Maybe I
didn't explain the problem in the right manner. Lemme
tell you what the exact scenario
Hi,
I recently asked the PoolMan's author whether he will continue the
development of PoolMan. Below is its answer.
Adriano Labate
-Original Message-
From: Sean Neville [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 10:47 PM
To: 'Adriano Labate'
Subject: RE: About
33 matches
Mail list logo