Zoran Avtarovski ha scritto:
We are developing an application which has a requirement to present
information to users using different skins depending on certain parameters
(information is the same, just the base template file changes). What we'd
like, is to set a flag which is then used to
Christopher Prince ha scritto:
using tiles standalone (latest from the sandbox)
the insert tag looks like
tiles:insert definition=default-layout flush=true
tiles:put name=title value=sign-up for a new account/
tiles:put name=content value=/signupContent.jsp/
/tiles:insert
Problem is
Hi all,
I am trying to generate a MS Word document through WordML. The report contains
some special (accentuated) French characters (e.g. é).
In my java code, I am using XMLOutputter to generate the document.
In the action class, I set the response.setContentType(application/msword;
Hello,
I usually have set and get methods for all properties in my Model class.
After submitting a form, I pull out all the property values (form fields) in
the Action class from the ActionForm object, set the values of all
properties in the model from the action class and then call a particular
With my rudimentary knowledge,I dont think its advisable for your Action
classes to talk directly to your business layer/model classes, Why don't you
have a business delegate/session facade or Service Locator sitting between
your Action Classes and the model classes, this insulates your action
I am not using EJB. The model is made using simple JDBC that gets the
database connection from a helper class which uses JNDI to get the JDBC data
source.
How can I apply Session Facade here. Is there any text or code examples
which I can read that talks the same with relation to struts.
where error is my code?
On 2/28/06, Laurie Harper [EMAIL PROTECTED] wrote:
First things first: did you go through all the migration steps listed on
the wiki for 1.0 - 1.2, 1.1 - 1.2.4, 1.2.4 - 1.2.7 and 1.2.7 - 1.2.8?
L.
red phoenix wrote:
I have a simple Struts program,it can run well
I do something like:
public class ProductAction extends Action
{
execute()
{
String name = (String)PropertyUtils.getSimpleProperty(form,
name);
String age = (String)PropertyUtils.getSimpleProperty(form,
age);
ProductModel model =
If you not using EJB,then i'll find out how u can use Session Facade without
EJBs,i only know how to use Session Facade with EJBs.
tnx
On 2/28/06, R.Vijayaraghavan [EMAIL PROTECTED] wrote:
I am not using EJB. The model is made using simple JDBC that gets the
database connection from a helper
On 2/28/06, R.Vijayaraghavan [EMAIL PROTECTED] wrote:
I am not using EJB. The model is made using simple JDBC that gets the
database connection from a helper class which uses JNDI to get the JDBC data
source.
How can I apply Session Facade here. Is there any text or code examples
which I can
Hi,
Anyone has an answer to my problem ??
I want to use both Tiles and Validator in my application.
Any tips why it is not working for me??
Regards,
Shiby
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On 2/28/06, R.Vijayaraghavan [EMAIL PROTECTED] wrote:
I do something like:
public class ProductAction extends Action
{
execute()
{
String name = (String)PropertyUtils.getSimpleProperty(form,
name);
String age =
R.Vijayaraghavan ha scritto:
Hello,
I usually have set and get methods for all properties in my Model class.
After submitting a form, I pull out all the property values (form fields) in
the Action class from the ActionForm object, set the values of all
properties in the model from the action
Hi,
I am using tabs in my JSP. Now when I display tabs I have to check for
some conditions. But the tabs will not allow me to use Scriptlets % %
inside the tabs. so is there is any struts tag library tags for
shortcircuit logical operators. I mean for and || . If anyone has any
idea please
If you want to submit all the values to database, you can pass form ref.
but in case of submitting one or two values to database, what is the need of
sending form ref, we can pass those values itself.
Hello,
I usually have set and get methods for all properties in my Model class.
After
sending form reference to the model is not the correct way as it will make
model dependent on the view.
do not send the formbean object till the model.
-Original Message-
From: vasumathi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 28, 2006 5:19 PM
To: Struts Users Mailing List
Hi,
Seding formbean to model is not a good idea. why cant you use
Beanutils.copyproperties method to copy values from your form to model.
sony
vasumathi wrote:
If you want to submit all the values to database, you can pass form ref.
but in case of submitting one or two values to database,
Hi,
I tried it with the idName property as described by Gary but it doesn't
work. I get this Error
No getter method available for property formID for bean under name
org.apache.struts.taglib.html.BEAN
It exists a Formbean for this action with the property formID and there are
getter and setter.
How do you implement fine-grained access control?
For a project I need to implement a fine-grained access control. My idea
is to let a JDBC-Realm handle the login and to implement the
fine-grained access-control where the role may vary for the specific
users and the pages they look at.
This I
red phoenix wrote:
where error is my code?
On 2/28/06, Laurie Harper [EMAIL PROTECTED] wrote:
First things first: did you go through all the migration steps listed on
the wiki for 1.0 - 1.2, 1.1 - 1.2.4, 1.2.4 - 1.2.7 and 1.2.7 - 1.2.8?
No, seriously; did you look at the Wiki for
Shiby Maria John wrote:
Anyone has an answer to my problem ??
I want to use both Tiles and Validator in my application.
Any tips why it is not working for me??
I use Tiles and the validation framework all the time with no problems.
Dave
Morten Andersen wrote:
This I would implement in RequestProcessor.processActionPerform(...)
where I check the users role for the specific page and based on that get
the respons taylored for that role and check whether they may do what
they intend.
RequestProcessor.processRoles?
Example:
Dave Newton skrev:
Morten Andersen wrote:
This I would implement in RequestProcessor.processActionPerform(...)
where I check the users role for the specific page and based on that get
the respons taylored for that role and check whether they may do what
they intend.
Dave Newton wrote:
If you want _fine_-grained access control drop Spring on top of Struts
and use Acegi.
For us not wanting to put yet another framework into the table, any
advice and pointers from more experienced people out there?
My usual requirement is operation rights for roles in
I received your blank message.
Peter
-Original Message-
From: Rostislav Palivoda [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 28, 2006 11:39 AM
To: user@struts.apache.org
Subject: test
-
To unsubscribe,
Hi,
How do I access the resource bundle (that is configured in
message-resources.. in struts-config.xml) in the controller code?
I see the following code examples in the web.
MessageResources message = servlet.getResources(); // PROBLEM here
String message = message.getMessage(
But the
On 2/28/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
R.Vijayaraghavan ha scritto:
Hello,
I usually have set and get methods for all properties in my Model class.
After submitting a form, I pull out all the property values (form fields) in
the Action class from the ActionForm object,
On 2/28/06, Babu Subburathinam [EMAIL PROTECTED] wrote:
How do I access the resource bundle (that is configured in
message-resources.. in struts-config.xml) in the controller code?
On 2/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I have a table of data on my JSP and the User may choose one row.
I want to do this with a Radiobutton and need the value of the choose
radiobutton on my forwarded page.
logic:iterate name=chooseFormIDForm id=id property=forms
Hi thomas,
which component do you use for generate your tabs?
Do you use specific taglib, like struts-layout tabs or ditchnet tabs, or do
you develop
your own taglib ? Perhaps, your tabs can support EL tags. If so you could do
c:if test=${myCondition} /
myTab:tab .
/c:if
For information, I'm
On 2/28/06, Emmanouil Batsis [EMAIL PROTECTED] wrote:
Dave Newton wrote:
If you want _fine_-grained access control drop Spring on top of Struts
and use Acegi.
For us not wanting to put yet another framework into the table, any
advice and pointers from more experienced people out there?
Hi everybody.
In 2003 I wrote an article about a possibility to go struts conform back
(http://www.manfred-wolff.de/struts/articles-old/HowTo-Back.html).
Struts conform means, the request must pass the request-processor. I got
so many feedback, that I refactored the solution. It is now
On 2/28/06, Manfred Wolff [EMAIL PROTECTED] wrote:
- You want to go back and forward in a use case like an installation
wizzard.
http://www.superinterface.com/wizard/signupWizard.do
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fine, but where is the source code? I didn't found it!
-Manfred
Michael Jouravlev schrieb:
On 2/28/06, Manfred Wolff [EMAIL PROTECTED] wrote:
- You want to go back and forward in a use case like an installation
wizzard.
http://www.superinterface.com/wizard/signupWizard.do
Manfred Wolff wrote:
Fine, but where is the source code? I didn't found it!
http://www.superinterface.com/easywizard.htm
Sometimes it pays to just look at the home page for a demo and see
what's there.
Dave
-
To
I've searched high and low, and I figure someone might be able to help
me configure these to play together. I've gotten Clay to work with the
standard RI components, but even after adding the following
tomahawk-view-config.xml snippet:
component jsfid=3Dt:inputFileUpload
On 2/28/06, Dave Newton [EMAIL PROTECTED] wrote:
Manfred Wolff wrote:
Fine, but where is the source code? I didn't found it!
http://www.superinterface.com/easywizard.htm
Sometimes it pays to just look at the home page for a demo and see
what's there.
Thanks, Dave!
Manfred, I am about to
Perhaps I'm a little bit blind. Thanks a lot. Yes, I'm really interested
'cause I have to solve those and other problems with struts every day.
Some people say: Struts is dead, look forward to JSF or to spring MVC.
But there are so many projects, which started now (here in germany)
using the good
I've searched high and low, and I figure someone might be able to help
me configure these to play together. I've gotten Clay to work with the
standard RI components, but even after adding the following
tomahawk-view-config.xml snippet:
(Taken from Ryan Wynn's example) to my project, I still am
Mark Lowe skrev:
On 2/28/06, Emmanouil Batsis [EMAIL PROTECTED] wrote:
Dave Newton wrote:
If you want _fine_-grained access control drop Spring on top of Struts
and use Acegi.
For us not wanting to put yet another framework into the table, any
advice and pointers from more
Morten Andersen wrote:
Now if I can determine whether the user has logged in. How can I use
the request parameters to determine the users role on specific pages?
I know that I can invent my own control, it just seems like something
many others would need. Any tools available?
I still don't
Actually, I think they do. My problem (stupid me) was that I had
mistakeningly put t:fileUpload instead of t:inputFileUpload like how the
tomahawak-view-config has it. So... now my component looks as such
component jsfid=fileUpload extends=t:inputFileUpload
id=fileUpload
/component
Damn, I
On 2/28/06, Dave Newton [EMAIL PROTECTED] wrote:
Morten Andersen wrote:
Now if I can determine whether the user has logged in. How can I use
the request parameters to determine the users role on specific pages?
I know that I can invent my own control, it just seems like something
many
Thanks Antonio,
I'll have a look at dimensions. My needs are simple, which is why I'm
surprised that functionality doesn't exist.
I'd like to use a filter to the determine the request domain and set a
variable {domain} that tiles can use for the base template file.
For example it would be great
Greetings:
I've been debugging now for a while, and don't know where to continue
looking.
I'm doing multiple submit buttons on my struts/jsp 1.1 page. My
debugger takes me to the correct action, but the action has no form data
in it. On the jsp side, I am entering data, etc.
Do I have to
On 2/26/06, Zoran Avtarovski [EMAIL PROTECTED] wrote:
We are developing an application which has a requirement to present
information to users using different skins depending on certain parameters
(information is the same, just the base template file changes). What we'd
like, is to set a flag
On 2/28/06, SIRAGHER, JOEL [EMAIL PROTECTED] wrote:
I'm doing multiple submit buttons on my struts/jsp 1.1 page. My
debugger takes me to the correct action, but the action has no form data
in it.
...
RetrieveFormBean dataForm = (RetrieveFormBean) form;
// form data comes back null.
On 2/28/06, SIRAGHER, JOEL [EMAIL PROTECTED] wrote:
skipped/
By the way, LookupDispatchAction is not the best choice to dispatch
events. I suggest you to use this one:
http://issues.apache.org/bugzilla/attachment.cgi?id=17724 You will
also need ActionDispatcher class from Struts 1.2.7+ distro.
Your HTTP response is a binary Word file, right? If so, it doesn't seem
like you should specify that the HTTP response has a charset (since it
is binary).
Can you create a Word doc with the char you want (by typing in Word)?
Maybe you can compare the binary content of your hand-edited Word doc
Maybe take the generated one and just fix the bad chars, then compare
the binaries to see what changed. (Word might change all kinds of stuff
when you save it that isn't related to your edit, though.)
-Max
On Tue, 2006-02-28 at 17:51 -0800, Max Cooper wrote:
Your HTTP response is a binary Word
Hi
can a model interact with another model i.e can an object of one layer use
an object of same layer. Eg: UserModel can it create DepartmentModel object
and access the functionality in it.
Thanks and Regards
Shasi
-
To
I am attaching my files here. I am using Tomcat 5.5.12.
my layout page - siteLayout.jsp
%@ taglib uri=/Web-inf/tlds/struts-bean.tld prefix=bean%
%@ taglib uri=/Web-inf/tlds/struts-html.tld prefix=html%
%@ taglib uri=/Web-inf/tlds/struts-logic.tld prefix=logic%
%@ taglib
Hi All
I am running Tomcat 4.x and have tried to set global error handling
using the following entry in the web.xml file. But there is no
redirection and I always end up with 404 page not found error in the
browser. I am using struts 1.2 as the MVC framework for the application.
One more
Dave Newton skrev:
Morten Andersen wrote:
Now if I can determine whether the user has logged in. How can I use
the request parameters to determine the users role on specific pages?
I know that I can invent my own control, it just seems like something
many others would need. Any tools
55 matches
Mail list logo