Re: [OT] JSF-Shale-Facelets orthogonality

2006-01-12 Thread Craig McClanahan
On 1/12/06, David G. Friedman <[EMAIL PROTECTED]> wrote:
>
> Since no one else has answered, I'll give this a try:
>
> JSF is the base for everything you asked about.  Only AFTER you are
> comfortable with JSF implementation (the Sun JSF RI
> or the MyFaces runtime) would I recommend you try Facelets, Shale or both.
>
> Facelets and Shale bring extra functionality on top of a JSF
> implementation that each project's authors felt were
> missing from JSF v1.1.  Facelets brings a view definition tool, templating
> and tile-like functionality to JSF.  Shale
> brings many pieces to JSF such as Dialogs/Workflows, Tokens, Variable
> resolvers, extra functions to the view controller
> a test framework, etc.  One optional component of Shale is called Clay
> which is functionally very similar to Facelets.
> However, I have heard of people using Shale with Facelets instead of Clay
> and who have almost everything working
> normally.
>
> For more information, check out:
>
> Sun JSF RI: http://java.sun.com/j2ee/javaserverfaces/
> MyFaces JSF RI: http://myfaces.apache.org
> Shale: http://struts.apache.org/shale
> Facelets: https://facelets.dev.java.net/
>
> *** Tutorials and other learning resources:
> http://www.jsftutorials.net/
> http://www.jsfcentral.com/
>
> Regards,
> David


"What David said" -- he's got it right.

Craig McClanahan


Re: Opening a new window

2006-01-12 Thread Aldo Vadillo Batista
I think you can use javascript for accessing to struts html:hidden variables.

12 Jan 2006 14:59:49 -, rahul  kshirsagar <[EMAIL PROTECTED]>:
> Hi,
>
> I am using struts in my application.I have one parent jsp from which i am 
> opening a new window.Now i want to pass some value from this child window and 
> close the same.
> How to pass this value from child to parent jsp and also retain values in 
> parent jsp?
> Which is the efficient way to implement the same?
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help about data repeater in JSF

2006-01-12 Thread Werner Punz
JEEVANATHAM P. /BPCRP/INFOTECH/VASHI schrieb:
> Hi all,
> 
>  
> 
> In my screen I used data repeater tag from jsf. It's working fine me. Now I
> need to call a popup called as LOV from that textbox. When we click an image
> it will open a popup window. From that popup we need to set values to the
> main window. 
> 
> Here is my problem for setting values I need that name of the text field
> .how can we get that name?
> 
> if we get the row number, we can set values.
> 
>  
The question is not quite clear to me /besides that this is probably the
 wrong mailinglist ;-)

you have a data table and you have a link there which should pass the
contents of a textbox in the form?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



need help in tomhawk calendar

2006-01-12 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all,

 

For the popup datepicker I am trying to use the t:inputCalendar tag. In the
examples it is working fine.

When I try to implement in to my application it gives java script error.

Please help me.

Thanks in advance,

 

jeeva

-- 
Greetings!

 


ICICI Infotech is now 3i Infotech.


The e-mail addresses of the company's employees have been changed to @3i-infotech.com. You are requested to take note of this new e-mail ID and 
make use of the same in future

 
"This e-mail message may contain confidential, proprietary or legally 
privileged information. It should not be used by anyone who is not the original 
intended recipient. If you have erroneously received this message, please 
delete it immediately and notify the sender. The recipient acknowledges that 3i 
Infotech or its subsidiaries and associated companies, (collectively "3i 
Infotech"), are unable to exercise control or ensure or guarantee the integrity 
of/over the contents of the information contained in e-mail transmissions and 
further acknowledges that any views expressed in this message are those of the 
individual sender and no binding nature of the message shall be implied or 
assumed unless the sender does so expressly with due authority of 3i Infotech. 
Before opening any attachments please check them for viruses and defects."



Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-12 Thread Craig McClanahan
On 1/12/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> On 1/12/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > Alexandre Poitras wrote:
> > > I agree with you Michael since our designer is a big fan of Zen Garden
> > > and I must say I don't miss working with tables :) I would like a
> > > strict XHTML rendererkit but I must say that at least the JSF standard
> > > components don't produce garbage . What I am doing right now is
> > > developping new renderers for the components I need, it doesn't take a
> > > big effort anyway. Maybe I can regroup those renderer in a rendererkit
> > > once I have several renderers done. But it's the main weakness of a
> > Hint, you could donate it to myfaces ;-)
>
> Of course,  when I have a couple of them done. But someone is probably
> going to beat me to the line. Apache development is so fast, probably
> because it regroups so many smart people.


The "smart people" are also genuinely appreciative of contributions, no
matter when they happen.  Who knows, you might actually be able to beat them
... after all, they/we all have day jobs too :-).

Seriously, you wouldn't need to have them all done to propose a
contribution.  After all, if others buy into your basic approach, maybe
you'll get other folks involved in helping finish that task.  *That* is
actually one of the key reasons open source projects can respond quickly --
unfinished code sitting in a directory on your computer is limited by your
own time availability; unfinished code in an open source sandbox could serve
as the inspiration for other folks to help with the work.

Craig


Re: [shale] starting server errors

2006-01-12 Thread Craig McClanahan
On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
>
> Googled and couldn't find anything and not sure what to try and still have
> this error:
>
> 01/12 16:16:18 error Error loading class for Filter shale: Filter is
> disabled.
> java.lang.IllegalStateException: No Factories configured for this
> Application - typically this is because a context listener is not setup in
> your web.xml.
> A typical config looks like this;
> 
>
> org.apache.myfaces.webapp.StartupServletContextListener
>  tener-class>
> 
>
> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
>
> Any help?


Sounds like JRun is not obeying the spec requirements about recognizing a
 element inside a TLD that is inside a JAR file.  Both the JSF RI
and MyFaces implementations rely on this to implicitly register their
servlet context listener implementations that do the configuration step.

Temporary workaround is to declare the appropriate listener class in your
web.xml.

Permanent solution is to bug the JRun guys to obey the specs.

Craig


RE: [OT] JSF-Shale-Facelets orthogonality

2006-01-12 Thread David G. Friedman
Since no one else has answered, I'll give this a try:

JSF is the base for everything you asked about.  Only AFTER you are comfortable 
with JSF implementation (the Sun JSF RI
or the MyFaces runtime) would I recommend you try Facelets, Shale or both.

Facelets and Shale bring extra functionality on top of a JSF implementation 
that each project's authors felt were
missing from JSF v1.1.  Facelets brings a view definition tool, templating and 
tile-like functionality to JSF.  Shale
brings many pieces to JSF such as Dialogs/Workflows, Tokens, Variable 
resolvers, extra functions to the view controller
a test framework, etc.  One optional component of Shale is called Clay which is 
functionally very similar to Facelets.
However, I have heard of people using Shale with Facelets instead of Clay and 
who have almost everything working
normally.

For more information, check out:

Sun JSF RI: http://java.sun.com/j2ee/javaserverfaces/
MyFaces JSF RI: http://myfaces.apache.org
Shale: http://struts.apache.org/shale
Facelets: https://facelets.dev.java.net/

*** Tutorials and other learning resources:
http://www.jsftutorials.net/
http://www.jsfcentral.com/

Regards,
David

-Original Message-
From: xzuma [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 7:00 PM
To: Struts Users Mailing List
Subject: [OT] JSF-Shale-Facelets orthogonality


Hello,

I am reading discussions about the above three frameworks with one goal in
mind, to find out whether JSF, Shale and Facelets are trully orthogonal.
That is, if I go along any path, will be able to add any other framework
lateron? How hard it is? What features of the frameworks are interlapping?

Thanks.

Z


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wildcards in actionmapping and dodgey URLs

2006-01-12 Thread Josh McDonald
So the answer would be a 404 then? :) It's what I assumed would happen,
just wasn't sure.
 
Thanks for the response,
-Josh
 
 
-- 
 
"His comrades fought beside him, Van Owen and the rest...
   But of all the thompson gunners- Roland was the best."
 
Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460
Email: [EMAIL PROTECTED]


>>> [EMAIL PROTECTED] 13/01/2006 3:10:58 pm >>>

You handle it just as you would if you didn't use wildcards and the
user
typed a non-existent URL.  The typical way to handle this would be to
define
an action mapping and set unknown="true" to tell Struts to call it if
it
cannot find the requested action.

Don

On 1/12/06, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
> Quick question: When you've a wildcard in an actionmapping path,
what
> will you get when the user makes something up that has no
corresponding
> class? Will it give a 404, or an ugly stuts error? If it's an ugly
> error, how do you catch it? Somehow with the  in
> struts-config.xml?
>
> --
>
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
>
>
>
>
>
>
***
> Messages included in this e-mail and any of its attachments are
those
> of the author unless specifically stated to represent WorkCover
> Queensland. The contents of this message are to be used for the
intended
> purpose only and are to be kept confidential at all times.
> This message may contain privileged information directed only to the
> intended addressee/s. Accidental receipt of this information should
be
> deleted promptly and the sender notified.
> This e-mail has been scanned by Sophos for known viruses.
> However, no warranty nor liability is implied in this respect.
>
>

>
>
>







***
Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The 
contents of this message are to be used for the intended purpose only and are 
to be kept confidential at all times.
This message may contain privileged information directed only to the intended 
addressee/s. Accidental receipt of this information should be deleted promptly 
and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.




Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
can u send ur struts_config.xml file with validator plugin and mentioning 
message_resource class in that file.
also pls send ur jsp in which u want to print error messages.
regards
vasu



Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:

> Thanks for the replies.
> 
> Here is more info on the problem that I am having. 
> 
> I used the DynaValidatorForm in the form beans in
> order not to explicitly code the form beans. Also, I
> tried to do both client-side(javascript) and
> server-side validations. The client side validation
> worked. The javascript catches if I try to submit an
> empty form. However, if I remove the client side
> validation and have only the server-side validation,
> the validation does'nt seem to occur . It is not
> throwing the error back to the input page. Instead, it
> starts performing the action as if the form is valid
> eventhough it is empty.
> 
> Any help to solve this is highly appreciated.
> 
> Thanks
> 
> 
> Maha
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wildcards in actionmapping and dodgey URLs

2006-01-12 Thread Don Brown
You handle it just as you would if you didn't use wildcards and the user
typed a non-existent URL.  The typical way to handle this would be to define
an action mapping and set unknown="true" to tell Struts to call it if it
cannot find the requested action.

Don

On 1/12/06, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
> Quick question: When you've a wildcard in an actionmapping path, what
> will you get when the user makes something up that has no corresponding
> class? Will it give a 404, or an ugly stuts error? If it's an ugly
> error, how do you catch it? Somehow with the  in
> struts-config.xml?
>
> --
>
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
>
>
>
>
>
> ***
> Messages included in this e-mail and any of its attachments are those
> of the author unless specifically stated to represent WorkCover
> Queensland. The contents of this message are to be used for the intended
> purpose only and are to be kept confidential at all times.
> This message may contain privileged information directed only to the
> intended addressee/s. Accidental receipt of this information should be
> deleted promptly and the sender notified.
> This e-mail has been scanned by Sophos for known viruses.
> However, no warranty nor liability is implied in this respect.
>
> 
>
>
>


Re: Wildcards in actionmapping and dodgey URLs

2006-01-12 Thread Rick R

Josh McDonald wrote:

Quick question: When you've a wildcard in an actionmapping path, what
will you get when the user makes something up that has no corresponding
class? Will it give a 404, or an ugly stuts error? If it's an ugly
error, how do you catch it? Somehow with the  in
struts-config.xml?


I usually use the web.xml:


404
/pagenotfound.jsp





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wildcards in actionmapping and dodgey URLs

2006-01-12 Thread Josh McDonald
Quick question: When you've a wildcard in an actionmapping path, what
will you get when the user makes something up that has no corresponding
class? Will it give a 404, or an ugly stuts error? If it's an ugly
error, how do you catch it? Somehow with the  in
struts-config.xml?
 
-- 
 
"His comrades fought beside him, Van Owen and the rest...
   But of all the thompson gunners- Roland was the best."
 
Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460
Email: [EMAIL PROTECTED]




***
Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The 
contents of this message are to be used for the intended purpose only and are 
to be kept confidential at all times.
This message may contain privileged information directed only to the intended 
addressee/s. Accidental receipt of this information should be deleted promptly 
and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.




Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Nevermind. I see that your last reply Karan somehow got knocked out of 
this thread. (Possibly you started a new message and just pasted in the 
subject? since it ended up with a different MessageID in the header 
which is what my Thunderbird client uses for threading).


Rick R wrote:

Gupta, Karan wrote:


/ CLASS IDefForm ***/



public class IDefForm extends ActionForm
{
 private IDef iDef;


Did you try renaming the property like Hubert suggested? If not, that 
iDef will DEFINITELY cause the problem that you mention. Change private 
IDef iDef; to something like IDef invDef with appropriate getters and 
setters.


Also, you don't really need to use the nested tag for that shallow of 
nesting (one deep) since using invDef.partNumber etc should work just 
fine. (I do have a short demo app on using the nested tag if you want to 
go that route though http://www.learntechnology.net/struts-nested.do ).





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R

Gupta, Karan wrote:


/ CLASS IDefForm ***/



public class IDefForm extends ActionForm
{
	 
	private IDef iDef;


Did you try renaming the property like Hubert suggested? If not, that 
iDef will DEFINITELY cause the problem that you mention. Change private 
IDef iDef; to something like IDef invDef with appropriate getters and 
setters.


Also, you don't really need to use the nested tag for that shallow of 
nesting (one deep) since using invDef.partNumber etc should work just 
fine. (I do have a short demo app on using the nested tag if you want to 
go that route though http://www.learntechnology.net/struts-nested.do ).


--
Rick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling links according to user's authorization

2006-01-12 Thread Brian Trzupek

Rivka,

I have been asked this question many times, so I decided to just add the answer 
to my blog. It is there for your enjoyment! Let me know if you need more help.

http://therustednail.blogspot.com/2006/01/role-based-user-authentication-in.html

Thanks,
Brian Trzupek
Blog: http://therustednail.blogspot.com


Rivka Shisman wrote:


Hi Brian,

Thanks for the info.
Please send me the code of the User class, base action class, and an
example action that uses that code.

Thanks a lot
Rivka


-Original Message-
From: Brian Trzupek [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 6:01 PM

To: Struts Users Mailing List
Cc: Rivka Shisman
Subject: Re: Enabling links according to user's authorization

Rivka,

Great question. What I have done in the past (and maybe there are better
ways) is to:
1) When the user logs into the application, I cache off the users role
as well as other attributes (usually in a small User object in session).
thes attributes are the result of loading the User and attrs from the
Database.

2) I have a Base Action that all the actions in the project extend. In
this base action I have a method to 'set the access level(s) for calling
that action'. The second method is an implementation of the perform
method that first checks the 'access' for the calling user (based on the
subclass's set access level). If that access is denied, then the
appropriate forward is used to indicate a credential error. If it is ok,
then I call an abstract perform2 method that the subclass can implement
(same signature as perfrom/execute). When that method returns then I
manage any errors (back in the base method) and return the forward from
the subclass.

In this way I have a very simple way to subclass and identify for each
Action an access level(s). I also use a CredentialManagement Class that
just does some bitwise operations so a user can have multiple roles for
access. (That may be overkill for you).

I hope this helps, and if you need further info or code snippets, let me
know!

Cheers,
Brian Trzupek



shyam kishore alapati wrote:

 


While login itself you can have the permissions in the session and
   


based on the permissions you can hide the links. Just for one variable i
think there is no need to call the database.use can use 
or  for this.
 


-Original message-
From: "Rivka Shisman" [EMAIL PROTECTED]
Date: Wed, 11 Jan 2006 04:18:23 -0800
To: "Struts Users Mailing List" user@struts.apache.org
Subject: Enabling links according to user's authorization



   


Hi everyone,

We have a web application running on Websphere Application Server V6.
Say I have a JSP page that enables working on Student details.
This JSP page enables users to view, insert, update or delete student
records.
Now, some users can only use the 'View' link, others can also use
'Insert' link, and some other users can only update.

 


From what i know, i can hold a DB table that indicates for each user
   


and
 


table - which operations are allowed.
But, my question is - what is the right way to do that on the JSP
 


page?
 


Do i call this security table on each page load and hide the
unauthorized links? Or, do always show all the links and just let the
database throw an exception and give a message to the user, when
 


he/she
 


presses an unauthorized link? Or is there a third and better way?

Thanks
Rivka

  

 



 





[OT] JSF-Shale-Facelets orthogonality

2006-01-12 Thread xzuma
Hello,

I am reading discussions about the above three frameworks with one goal in
mind, to find out whether JSF, Shale and Facelets are trully orthogonal.
That is, if I go along any path, will be able to add any other framework
lateron? How hard it is? What features of the frameworks are interlapping?

Thanks.

Z


RE: [shale] starting server errors

2006-01-12 Thread Garner, Shawn
Googled and couldn't find anything and not sure what to try and still have
this error:

01/12 16:16:18 error Error loading class for Filter shale: Filter is
disabled.
java.lang.IllegalStateException: No Factories configured for this
Application - typically this is because a context listener is not setup in
your web.xml.
A typical config looks like this;

 
org.apache.myfaces.webapp.StartupServletContextListener


at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)

Any help?

-Original Message-
From: Garner, Shawn 
Sent: Thursday, January 12, 2006 4:18 PM
To: 'Struts Users Mailing List'
Subject: RE: [shale] starting server errors

Alright I fixed the dtd problem.  Stupid Jrun had a bad one in their online
examples.

This is my only error left:

01/12 16:16:18 error Error loading class for Filter shale: Filter is
disabled.
java.lang.IllegalStateException: No Factories configured for this
Application - typically this is because a context listener is not setup in
your web.xml.
A typical config looks like this;

 
org.apache.myfaces.webapp.StartupServletContextListener


at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)

Shawn

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 4:07 PM
To: Struts Users Mailing List
Subject: Re: [shale] starting server errors

On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:

> I'm not getting the el error anymore but still getting the following:

I'm afraid I'm out of ideas.  At this point I'd want Craig to confirm
that it _is_ still possible to use Shale in a Servlet 2.3 environment.
 (The website says that it's not a committed feature...)

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
Hi Hubert,

I tried your method, by changing the jsp to use IDef.partNumber.
It works perfectly.
Thanks.



-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 3:24 PM
To: Struts Users Mailing List
Subject: Re: How to use a POJO inside Struts FormBean?


You'll need to rename your "iDef" property if that is what you're
calling it, via getIDef/setIDef.  That pair will result in a property
name of "IDef".  If you'd rather not change your accessor methods,
then use "IDef.partNumber" instead of "iDef.partNumber".  [Wendy can
quote the JavaBean spec related to this :)]

Also, if you still get some error when the form is submitted, that may
mean you're putting the bean in request scope and the IDef property is
null and is not available during form bean population.  Make sure
getIDef() always returns a non-null result.

Hubert

On 1/12/06, Gupta, Karan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use a POJO inside a Struts (1.2.7) FormBean,
> but I am unable to access the fields inside the POJO.
>
> package com.fmm.web.inventory.forms;
> public class IDefForm extends ActionForm
> {
> private IDef iDef;
> private List inventoryDefinitions;
>
> ...getters ..and...setters..
> }
>
> package com.fmm.web.inventory.beans;
> public class IDef
> {
> private long iDefID;
> private String partNumber;
> private String description;
> private int equipType;
>
> .getters ...and...setters...
> }
>
> inventoryDefinitions is a simple ArrayList() which I populate in the Action 
> class and can easily be
> used to display several objects using the logic:iterate tag.
> To add an object to the underlying DB, I want to use the iDef object bean in 
> my form, instead of
> creating copies of all the individual fields in the form bean.
>
> This is what I want the form to look like:
> 
> 
> Part Number:
>  maxlength="50"/>
> Description:
>  rows="4" cols="40"/>
>
>  ..and so on...
>
> 
>
> I get this exception:
> javax.servlet.ServletException: No getter method for property iDef.partNumber 
> of bean org.apache.struts.taglib.html.BEAN
>
> So what is the way to achieve what I am trying to do?
> What am I doing wrong?
>
> Thanks,
> Karan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-12 Thread Alexandre Poitras
On 1/12/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> Alexandre Poitras wrote:
> > I agree with you Michael since our designer is a big fan of Zen Garden
> > and I must say I don't miss working with tables :) I would like a
> > strict XHTML rendererkit but I must say that at least the JSF standard
> > components don't produce garbage . What I am doing right now is
> > developping new renderers for the components I need, it doesn't take a
> > big effort anyway. Maybe I can regroup those renderer in a rendererkit
> > once I have several renderers done. But it's the main weakness of a
> Hint, you could donate it to myfaces ;-)

Of course,  when I have a couple of them done. But someone is probably
going to beat me to the line. Apache development is so fast, probably
because it regroups so many smart people.

> > component approach, having to deal with the generation of markup that
> > maybe you don't like. But at least in JSF the renderer is separated
> > from the UI component.
> >
> yes one big plus of myfaces is this separation, it is one of the points
> which makes the component programming really awkward at the first sight
> (the other one being the taglib docking code), but it is not like
> you develop components every day, due to the fact there already are so
> many of them.
> This separation in the first place between taglib code, view logic and
> controller logic on component level with xml as binding in between is
> awkward, but if you need special cases then it is rather "easy" to
> adjust those to your needs without breaking existing code.
>
> The component api definitely at first sight is hell to program for in
> JSF, but for easy on program componentization there already are easier
> solutions like shale clay, facelets, aliasbeans etc...
> but in the end it pays off if you need special cases like this one.
>
> (Hint the component api itself is one of the major gripes I still have
> with JSF, it only can become better)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Webapp help framework?

2006-01-12 Thread Wiebe de Jong
I need to read these messages more fully before I respond. ;-(

Wiebe

-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 3:14 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Webapp help framework?

Actually, when I put 'java help' into Google I came up with the JavaHelp
System at http://java.sun.com/products/javahelp/ 

Wiebe

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 7:03 AM
To: Struts Users Mailing List
Subject: [OT] Webapp help framework?

A coworker is looking for a framework like "JavaHelp" for use with a
Struts 1.2 webapp.  (Apparently JavaHelp has a webapp component, but
it can't be accessed with an https:// URL, which is required.)

Putting 'java help' into Google isn't very useful, so I thought I'd
call on the collective wisdom of the list for suggestions. :)

Thanks!
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
Thanks for your reply. 
Here's the rest of the code:

/*** CLASS IDef ***/
package com.fmm.web.inventory.beans;
public class IDef
{
private long iDefID;
private String partNumber;
private String description;
private int equipType;
private String partType;
private int minStockLevel;
private int staffID;

public IDef()
{
iDefID = 0;
partNumber = "";
description = "";
equipType = 0;
partType = "";
minStockLevel = 0;
staffID = 0;
}

public String getDescription()
{ return description; }

public void setDescription(String description)
{ this.description = description; }

public int getEquipType()
{ return equipType; }

public void setEquipType(int equipType)
{ this.equipType = equipType; }

public int getMinStockLevel()
{ return minStockLevel; }

public void setMinStockLevel(int minStockLevel)
{ this.minStockLevel = minStockLevel; }

public long getIDefID()
{ return iDefID; }

public void setIDefID(long iDefID)
{ this.iDefID = iDefID; }

public String getPartNumber()
{ return partNumber; }

public void setPartNumber(String partNumber)
{ this.partNumber = partNumber; }

public String getPartType()
{ return partType; }

public void setPartType(String partType)
{ this.partType = partType; }

public int getStaffID()
{ return staffID; }

public void setStaffID(int staffID)
{ this.staffID = staffID; }
}

/ CLASS IDefForm ***/
package com.fmm.web.inventory.forms;

import java.util.ArrayList;
import java.util.List;
import org.apache.struts.action.ActionForm;
import com.fmm.web.inventory.beans.IDef;

public class IDefForm extends ActionForm
{
private String action;
private IDef iDef;
private List inventoryDefinitions;

public IDefForm()
{
action = "";
iDef = new IDef();
inventoryDefinitions = new ArrayList();
}

public String getAction()
{ return action; }

public void setAction(String action)
{ this.action = action; }

public IDef getIDef()
{ return iDef; }

public void setIDef(IDef iDef)
{ this.iDef = iDef; }

public List getInventoryDefinitions()
{ return inventoryDefinitions; }

public void setInventoryDefinitions(List inventoryDefinitions)
{ this.inventoryDefinitions = inventoryDefinitions; }
}

I have not looked at nested tags -- but I'll check that out.

Thanks again,
Karan

-Original Message-
From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 3:18 PM
To: Struts Users Mailing List
Subject: Re: How to use a POJO inside Struts FormBean?


On Thu, 2006-01-12 at 15:15 -0800, Gupta, Karan wrote:
> 
> I get this exception:
> javax.servlet.ServletException: No getter method for property
> iDef.partNumber of bean org.apache.struts.taglib.html.BEAN
> 
> So what is the way to achieve what I am trying to do?
> What am I doing wrong? 

Probably the bean property naming along with the setters and getters, we
need to see them all to see what's wrong. 

And your nested bean should be serializable. Did you look into using
nested tags?

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Hubert Rabago
You'll need to rename your "iDef" property if that is what you're
calling it, via getIDef/setIDef.  That pair will result in a property
name of "IDef".  If you'd rather not change your accessor methods,
then use "IDef.partNumber" instead of "iDef.partNumber".  [Wendy can
quote the JavaBean spec related to this :)]

Also, if you still get some error when the form is submitted, that may
mean you're putting the bean in request scope and the IDef property is
null and is not available during form bean population.  Make sure
getIDef() always returns a non-null result.

Hubert

On 1/12/06, Gupta, Karan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use a POJO inside a Struts (1.2.7) FormBean,
> but I am unable to access the fields inside the POJO.
>
> package com.fmm.web.inventory.forms;
> public class IDefForm extends ActionForm
> {
> private IDef iDef;
> private List inventoryDefinitions;
>
> ...getters ..and...setters..
> }
>
> package com.fmm.web.inventory.beans;
> public class IDef
> {
> private long iDefID;
> private String partNumber;
> private String description;
> private int equipType;
>
> .getters ...and...setters...
> }
>
> inventoryDefinitions is a simple ArrayList() which I populate in the Action 
> class and can easily be
> used to display several objects using the logic:iterate tag.
> To add an object to the underlying DB, I want to use the iDef object bean in 
> my form, instead of
> creating copies of all the individual fields in the form bean.
>
> This is what I want the form to look like:
> 
> 
> Part Number:
>  maxlength="50"/>
> Description:
>  rows="4" cols="40"/>
>
>  ..and so on...
>
> 
>
> I get this exception:
> javax.servlet.ServletException: No getter method for property iDef.partNumber 
> of bean org.apache.struts.taglib.html.BEAN
>
> So what is the way to achieve what I am trying to do?
> What am I doing wrong?
>
> Thanks,
> Karan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 15:15 -0800, Gupta, Karan wrote:
> 
> I get this exception:
> javax.servlet.ServletException: No getter method for property
> iDef.partNumber of bean org.apache.struts.taglib.html.BEAN
> 
> So what is the way to achieve what I am trying to do?
> What am I doing wrong? 

Probably the bean property naming along with the setters and getters, we
need to see them all to see what's wrong. 

And your nested bean should be serializable. Did you look into using
nested tags?

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Webapp help framework?

2006-01-12 Thread Wiebe de Jong
Actually, when I put 'java help' into Google I came up with the JavaHelp
System at http://java.sun.com/products/javahelp/ 

Wiebe

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 10, 2006 7:03 AM
To: Struts Users Mailing List
Subject: [OT] Webapp help framework?

A coworker is looking for a framework like "JavaHelp" for use with a
Struts 1.2 webapp.  (Apparently JavaHelp has a webapp component, but
it can't be accessed with an https:// URL, which is required.)

Putting 'java help' into Google isn't very useful, so I thought I'd
call on the collective wisdom of the list for suggestions. :)

Thanks!
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
Hi,

I am trying to use a POJO inside a Struts (1.2.7) FormBean, 
but I am unable to access the fields inside the POJO.

package com.fmm.web.inventory.forms;
public class IDefForm extends ActionForm
{
private IDef iDef;
private List inventoryDefinitions;
 
...getters ..and...setters..
}

package com.fmm.web.inventory.beans;
public class IDef
{
private long iDefID;
private String partNumber;
private String description;
private int equipType;

.getters ...and...setters...
}

inventoryDefinitions is a simple ArrayList() which I populate in the Action 
class and can easily be 
used to display several objects using the logic:iterate tag.
To add an object to the underlying DB, I want to use the iDef object bean in my 
form, instead of
creating copies of all the individual fields in the form bean.

This is what I want the form to look like:


Part Number:

Description:


 ..and so on...



I get this exception:
javax.servlet.ServletException: No getter method for property iDef.partNumber 
of bean org.apache.struts.taglib.html.BEAN

So what is the way to achieve what I am trying to do?
What am I doing wrong?

Thanks,
Karan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-12 Thread Werner Punz

Alexandre Poitras wrote:

I agree with you Michael since our designer is a big fan of Zen Garden
and I must say I don't miss working with tables :) I would like a
strict XHTML rendererkit but I must say that at least the JSF standard
components don't produce garbage . What I am doing right now is
developping new renderers for the components I need, it doesn't take a
big effort anyway. Maybe I can regroup those renderer in a rendererkit
once I have several renderers done. But it's the main weakness of a

Hint, you could donate it to myfaces ;-)


component approach, having to deal with the generation of markup that
maybe you don't like. But at least in JSF the renderer is separated
from the UI component.


yes one big plus of myfaces is this separation, it is one of the points
which makes the component programming really awkward at the first sight 
(the other one being the taglib docking code), but it is not like
you develop components every day, due to the fact there already are so 
many of them.
This separation in the first place between taglib code, view logic and 
controller logic on component level with xml as binding in between is 
awkward, but if you need special cases then it is rather "easy" to 
adjust those to your needs without breaking existing code.


The component api definitely at first sight is hell to program for in 
JSF, but for easy on program componentization there already are easier 
solutions like shale clay, facelets, aliasbeans etc...

but in the end it pays off if you need special cases like this one.

(Hint the component api itself is one of the major gripes I still have
with JSF, it only can become better)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



quartz plugin issue

2006-01-12 Thread lio struts
Hello world,

I'm trying to use http://demo.jgsullivan.com/struts/ quartz plugin for
struts.
I use JBoss3.2.2/Tomcat-4.1and quartz 1.4.5

In my struts-config i've addded :









In my WEB-INF, the file quartz-config.xml :










































And in WEB-INF/classes, the file quartz.properties :

org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool

org.quartz.threadPool.threadCount = 5

org.quartz.threadPool.threadPriority = 4

org.quartz.jobStore.misfireThreshold = 5000

org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore



Even if by now these values are a bit meaningless, but my issue doe not come
from that (i guess)

if have a look on error on startup :



17:13:15,235 INFO [PlugInSupport] Initializing QuartzPlugIn

17:13:15,548 INFO [RAMJobStore] RAMJobStore initialized.

17:13:15,548 INFO [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler'
initialized from default resource file in Quartz package: 'quartz.properties
'

17:13:15,563 INFO [StdSchedulerFactory] Quartz scheduler version: 1.4.5

17:13:15,704 ERROR [STDERR] *java.lang.NullPointerException

*

17:13:15,719 ERROR [STDERR] at
com.jgsullivan.quartz.SchedulerBuilder.setTriggerDefaults(*
SchedulerBuilder.java:250*)

17:13:15,719 ERROR [STDERR] at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(*SchedulerBuilder.java
:214*)

17:13:15,719 ERROR [STDERR] at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(*SchedulerBuilder.java
:178*)

17:13:15,719 ERROR [STDERR] at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(*QuartzPlugIn.java:97*)

17:13:15,719 ERROR [STDERR] at
com.jgsullivan.struts.plugins.PlugInSupport.init(*PlugInSupport.java:276*)

17:13:15,719 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.initModulePlugIns(*ActionServlet.java
:839*)

17:13:15,719 ERROR [STDERR] at org.apache.struts.action.ActionServlet.init(*
ActionServlet.java:332*)

17:13:15,719 ERROR [STDERR] at javax.servlet.GenericServlet.init(*
GenericServlet.java:256*)

17:13:15,719 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapper.loadServlet(*StandardWrapper.java
:935*)

17:13:15,719 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load
(*StandardWrapper.java:823*)

17:13:15,719 ERROR [STDERR] at
org.apache.catalina.core.StandardContext.loadOnStartup(*StandardContext.java
:3421*)

17:13:15,719 ERROR [STDERR] at
org.apache.catalina.core.StandardContext.start(*StandardContext.java:3609*)

17:13:15,719 ERROR [STDERR] at
org.apache.catalina.core.ContainerBase.addChildInternal(*ContainerBase.java
:821*)

17:13:15,719 ERROR [STDERR] at
org.apache.catalina.core.ContainerBase.addChild(*ContainerBase.java:807*)

17:13:15,719 ERROR [STDERR] at
org.apache.catalina.core.StandardHost.addChild(*StandardHost.java:579*)

17:13:15,719 ERROR [STDERR] at
org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(*
EmbeddedTomcatService.java:530*)

17:13:15,735 ERROR [STDERR] at
org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(*
EmbeddedTomcatService.java:309*)

17:13:15,735 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(*
AbstractWebContainer.java:428*)

17:13:15,735 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(*
MainDeployer.java:832*)

17:13:15,735 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(*
MainDeployer.java:642*)

17:13:15,735 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(*
MainDeployer.java:605*)

17:13:15,735 ERROR [STDERR] at
sun.reflect.GeneratedMethodAccessor22.invoke(Unknown
Source)

17:13:15,735 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(*
DelegatingMethodAccessorImpl.java:25*)

17:13:15,735 ERROR [STDERR] at java.lang.reflect.Method.invoke(*Method.java
:324*)

17:13:15,735 ERROR [STDERR] at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(*
ReflectedMBeanDispatcher.java:284*)

17:13:15,735 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(*
MBeanServerImpl.java:546*)

17:13:15,735 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(*
MBeanProxyExt.java:177*)

17:13:15,735 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)

17:13:15,735 ERROR [STDERR] at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(*
URLDeploymentScanner.java:302*)

17:13:15,735 ERROR [STDERR] at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(*
URLDeploymentScanner.java:476*)

17:13:15,735 ERROR [STDERR] at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
*AbstractDeploymentScanner.java:201*)

17:13:15,735 ERROR [STDERR] at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(*
AbstractDeploymentScanner.java:274*)

17:13:15,735 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.start(*
ServiceMBeanSupport.java:192*)

17:13:15,735 ERROR [STDERR] at
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)

17:13:15,735 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(*
DelegatingMethodAccessorImpl.java:25*)

17:13:15,735 ERROR [STDERR] a

What to do...what to do...

2006-01-12 Thread Murray Collingwood
 Hi folks

I have a problem with one of my new sites not connecting to the MySQL
database.  I believe the problem is  definitely in the context.xml, however
different things happen when I move the app between two servers.  You can
see the site at http://www.pancakemanor.com.au and although it looks like
there is data coming up I can assure this is the hardcoded sample text I
display if there are no records from the database.




When running on my ISP hosts machine the app fails to connect to the
database.  Not sure of the message, my ISP wouldn't send them.  If I run the
app locally on my Tomcat server and connect to my database at the ISP it
works fine.

What makes it worse is the email I received today.  They're pulling support
for Tomcat and leaving me in the lurch.  Check out the email below.  Does
anybody have any ideas what I should try and do?

Kind regards
Murray


Hi Murray,
We have closely examined the server configuration and operation, we have
experimented with modifing various parts of the configuration.

We can see the logs on the database server, and we know that the website
is not even attempting to make a connection when the website is browsed.
We can see regular entries for the other sites in the database logs, and
can safely assume that the associated websites are functioning correctly.
e.g. *http://www.backpackers-express.com/* and
*http://www.focus-computing.com.au/*
**
**The most we will do is deploy the war file as supplied, if it doesn't
work, we can not assume responsibility.

As Bill is no longer with Actrix, Actrix is no longer able to support JSP
in the form provided by Bill as he had a unique skill set around this
product.

Management has made the decision to halt further development on JSP
under Windows. We are hoping to offer the service again in 3-6 months on
a unix platform where we can support it with our current skill set.
---
Regards,
Mark Munro.
<[EMAIL PROTECTED]>


RE: [shale] starting server errors

2006-01-12 Thread Garner, Shawn
Alright I fixed the dtd problem.  Stupid Jrun had a bad one in their online
examples.

This is my only error left:

01/12 16:16:18 error Error loading class for Filter shale: Filter is
disabled.
java.lang.IllegalStateException: No Factories configured for this
Application - typically this is because a context listener is not setup in
your web.xml.
A typical config looks like this;

 
org.apache.myfaces.webapp.StartupServletContextListener


at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)

Shawn

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 4:07 PM
To: Struts Users Mailing List
Subject: Re: [shale] starting server errors

On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:

> I'm not getting the el error anymore but still getting the following:

I'm afraid I'm out of ideas.  At this point I'd want Craig to confirm
that it _is_ still possible to use Shale in a Servlet 2.3 environment.
 (The website says that it's not a committed feature...)

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] starting server errors

2006-01-12 Thread Wendy Smoak
On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:

> I'm not getting the el error anymore but still getting the following:

I'm afraid I'm out of ideas.  At this point I'd want Craig to confirm
that it _is_ still possible to use Shale in a Servlet 2.3 environment.
 (The website says that it's not a committed feature...)

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:

2006-01-12 Thread Josh McDonald
>styleId, reference the taglib docs: 
>http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#form

Ah thanks I didn't see that.

>>Or to generate a name="" that's not based on the name of the form
>bean?
>>  
>>
>I'm not sure why you'd want to that.

So I can have two forms that use the same form, mainly. Otherwise I
need multiple entries in the "class->bean name" mapping section of the
config file, which just seems unecessary to me.

Just trying to clean up this application, it's got more duplicated code
than anything I've seen in a long time.
 
-Josh
 
-- 
 
"His comrades fought beside him, Van Owen and the rest...
   But of all the thompson gunners- Roland was the best."
 
Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460
Email: [EMAIL PROTECTED]




***
Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The 
contents of this message are to be used for the intended purpose only and are 
to be kept confidential at all times.
This message may contain privileged information directed only to the intended 
addressee/s. Accidental receipt of this information should be deleted promptly 
and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.




RE: [shale] starting server errors

2006-01-12 Thread Garner, Shawn
I'm not getting the el error anymore but still getting the following:

01/12 15:44:23 error Error loading class for Filter shale: Filter is
disabled.
java.lang.IllegalStateException: No Factories configured for this
Application - typically this is because a context listener is not setup in
your web.xml.
A typical config looks like this;

 
org.apache.myfaces.webapp.StartupServletContextListener


at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
at
org.apache.shale.faces.ShaleApplicationFilter.getLifecycle(ShaleApplicationF
ilter.java:404)





and


01/12 15:44:23 info [axis] Initializing Shale Application Filter
javax.faces.FacesException: java.io.FileNotFoundException:
http://java.sun.com/j2ee/dtds/web-app_2.3.dtd
at
org.apache.myfaces.webapp.webxml.WebXmlParser.parse(WebXmlParser.java:105)
at org.apache.myfaces.webapp.webxml.WebXml.init(WebXml.java:135)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 3:40 PM
To: Struts Users Mailing List
Subject: Re: [shale] starting server errors

On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:

> It says:
>
> If you are using a JSP 1.2 container like Tomcat 4 you must also copy the
> file jsp-2.0.jar to your WEB-INF/lib dir
>
> I'm not using Tomcat 4 but am using a 1.2 container.
> Where do I get the jsp-2.0.jar file?

I assume it means the jsp-api jar (but I haven't tried what you're
attempting.)

Try here:
   http://www.ibiblio.org/maven2/javax/servlet/jsp-api/2.0/

Where did you see that message, in case it needs to be corrected?

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT JSF/Shale]

2006-01-12 Thread Laurie Harper

Garner, Shawn wrote:

I want to use a link in one view page to go to another view without going
through a bean action.

Something like this?  I thought maybe I could just use the jsp:forward tag
and put the name of the jsp page.

view1.jsp





  





or I would like to hard code the result of this view and maybe use this in
the configuration file

something like then do a from-outcome="success_submit" to
view-id="/view2.jsp"
 






  






So what's the problem you're seeing? Are these approaches not working 
for you?


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] clay renderId

2006-01-12 Thread Gary VanMatre
>From: Ryan Wynn <[EMAIL PROTECTED]> 
>
> Can the renderId of a component be less than 1? I have built parent 
> components that reference child components. These parent components 
> are meant to be extended to add more child components. What I would 
> like is to have the base parent components reference their child as 
> say renderId=-1 and renderId=0, so that when extended renderId will 
> always start at 1. Currently, extending my parents requires the 
> extender to start at say renderId=2 because parent already references 
> some children. 
> 
> For example (may already be supported) 
> 
>
>  
>  
>
>
>
>  
>
>
> 
> resulting a child component with children ordered a, b, c. 
> 
> The reason for this is usability and not having to document where to 
> begin renderId for each descendant.

Gosh, I've never thought to try it but it should work.  The renderId is handled 
by the standard digester rule.  
If it doesn't, we can make a custom digester rule.

I like you idea of creating these meta component definitions that can be 
extended on.  I was thinking that we 
might be able to include some of these in the Clay baseline but they would have 
to use the vanilla JSF 
component offering.  I was thinking of the standard two select list boxs where 
you move from one to the other.

Besides defining these in XML, you can do this sort of thing mixing in HTML 
templating.

Common XML Config:

  
 
   
 
 
 
  
 
  
 
 
 
 
 
 
  
 
  
 
 

HTML template "/widgets.html":

   Mock Label:
   
   Mock Message


Outer HTML template include:


   
  This example show how a pattern of components, label, input 
  text and message can be abstracted into a common template.  
  





 



Gary






 

Re: [shale] starting server errors

2006-01-12 Thread Wendy Smoak
On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:

> It says:
>
> If you are using a JSP 1.2 container like Tomcat 4 you must also copy the
> file jsp-2.0.jar to your WEB-INF/lib dir
>
> I'm not using Tomcat 4 but am using a 1.2 container.
> Where do I get the jsp-2.0.jar file?

I assume it means the jsp-api jar (but I haven't tried what you're attempting.)

Try here:
   http://www.ibiblio.org/maven2/javax/servlet/jsp-api/2.0/

Where did you see that message, in case it needs to be corrected?

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [shale] starting server errors

2006-01-12 Thread Garner, Shawn
It says:

If you are using a JSP 1.2 container like Tomcat 4 you must also copy the
file jsp-2.0.jar to your WEB-INF/lib dir

I'm not using Tomcat 4 but am using a 1.2 container.
Where do I get the jsp-2.0.jar file?

Shawn

-Original Message-
From: Garner, Shawn 
Sent: Thursday, January 12, 2006 3:18 PM
To: 'Struts Users Mailing List'
Subject: RE: [shale] starting server errors

I think I might be missing some myfaces dependency jars.

-Original Message-
From: Garner, Shawn 
Sent: Thursday, January 12, 2006 3:03 PM
To: 'Struts Users Mailing List'
Subject: RE: [shale] starting server errors

Yes, I did.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 2:55 PM
To: Struts Users Mailing List
Subject: Re: [shale] starting server errors

On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I found one reason it wasn't working.
> I had to go back to this version of web-app.
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.3.dtd";>
>
> After that though I'm getting some errors upon startup:
> Also getting this:
> 01/12 14:29:29 error Deployer Service failed to deploy
> file:/D:/dev/totw07shale/changeform/
>   * javax/servlet/jsp/el/ELException
>   * null
> [1]java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

When you dropped back to Servlet 2.3, did you also switch to JSTL 1.0?

There is some information on running Shale on a Servlet 2.3 platform here:
   http://struts.apache.org/struts-shale/index.html#Foundations

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Session Attribute strange behaviour

2006-01-12 Thread Marcelo Morales

Hello again

On Jan 12, 2006, at 4:19 AM, Gaet wrote:


Thanks all for your reply!

Michael : What are "navigation buttons"? an applet, a dhtml  
framework? Have you a link? thanks


He is questioning your requirement. It does not seem reasonable to  
put a link to the last page visited when the browser has a built-in  
"go back" button. I do press the back button ... a lot.




Shawn : Sorry but I always get "backUrl is NULL" and not "backUrl  
is NOT NULL"...so as I think like you on the process, I wonder why  
I get "backUrl is NULL"...Thanks


Sorry, haven't look closely at his answer



Marcelo : the refere header will give me back the last visited page  
i think or I want to retrieve the struts action that redirect to  
this page...


I used this long long time ago and... frankly ... I don't remember.  
Just try it and put your findings here or in the wiki. Also, if you  
use the referer remember it is browser-generated and, as a principle,  
you can't trust user input...




If you can help again...it would be great

Thanks,

Gaet'



Regards

Marcelo Morales

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maintaining session state in remote servlet form post

2006-01-12 Thread Laurie Harper

Christopher Becker wrote:

We have a struts app (v1.2.7) that uses Tiles for UI presentation,
running in WebLogic 8.1.  We are trying to implement a form whose action
is to a remote servlet. The remote site actually generated the form
details for us, and one of the fields provided is a hidden field
entitled returnURL, which allows me to provide a URL to a page within my
web app. 


That sounds eerily familiar ;-)


When the form is submitted, the remote servlet  returns to the URL
specified in the returnURL parameter, but the user session is lost and
the relative links for images in the tiles layout disappear.


What do you mean, 'the remote server returns to' the URL? Does it send 
the browser a redirect, or load the URL and proxy the result back to the 
browser?


I can't think why relative URLs in your tiles would break unless the URL 
you're passing to the remote servlet is incorrect, or your URLs are 
built using session data that's missing due to the session tracking 
problems you're seeing.



We have tried appending the session id to the URL sent in the hidden
returnURL of the form, but this did not work. We then changed from URL
rewriting to cookies for handling session state, but this also did not
work.
 
Does anyone have any ideas on how to maintain session state when

posting to a remote servlet?


The key is retaining session state when you come *back* from the remote 
servlet. And that depends on how the return is handled. Assuming the 
remote servlet sends a browser redirect -- so that the browser is making 
a fresh request to your application -- either URL rewriting or cookies 
should work fine.


You might want to try using a packet sniffer to monitor exactly what 
HTTP requests are being sent between the browser, your app and the 
remote app. That might give a clue as to where in the chain things are 
getting out of sync.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jsp , struts page forward problem?

2006-01-12 Thread Laurie Harper

Melih U. Unsal wrote:
I am developing a web application with jsp and struts. (i am developing 
with websphere studio application developer).


My question is about forwarding between pages. I have 2 jsp pages. First 
one is "user.jsp" and the other one is "useraddress.jsp"


My first page (user.jsp) will show a user (only one user) in my database 
when loaded. I don't have problem with that, i can show the user on my 
user.jsp page.


At this page i can edit the user's "name" and "surname" values if i want 
to update these information. But If i want to edit "address" information 
of user, i have to that in another jsp page
and for that i want to use "useraddress.jsp" page. I want that when i 
click a button on my "user.jsp" ,"useraddress.jsp" page will be loaded 
and show the address information of user and provide me to update the 
address information. Then turn back to "user.jsp". How can i do that?


How can i show the "useraddress.jsp" page when i clicked a button on my 
"user.jsp". Which button must i use? (submit or another).
What can i do to not to lose information of user when i turned back to 
"user.jsp" from "useraddress.jsp"?


You might want to read through the Struts User's Guide to familiarize 
yourself with the basics. This is all pretty straight forward. The only 
bit you might find difficult if you're new to this is preserving the 
data from one form while displaying the other one, but you should be 
able to see a few ways to approach that once you've read through the 
documentation a bit.


L.

[1] http://struts.apache.org//struts-doc-1.2.8/userGuide/index.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Struts in Tomcat

2006-01-12 Thread Laurie Harper

Neil Meyer wrote:

Good day,

I know this is probably not the right user group for this question but I
really need some advice I run 'n struts application in Tomcat. It is tomcat
5.5.9 and JDK: j2sdk-1_11_2_09.

The problem is that this Tomcat get sometimes so slow and it is not stable it
will sometimes just hang.

At this moment I have a problem that one of the pages only renders half way.

I think it might be some where in the server.xml that I need to optimize some
of the setting but I have tried few combinations and it doesn't seem to help.

I cater for a about a 2000 unique users a day, they use this system to pull
information from thus the data that is streamed is a lot and everything is
database driven.

If there is anybody out there running high volume servers with tomcat
prepared to provide me with there server.xml file so that I can compare it
with mine it will be appreciated, or any ideas will also help?


Performance tuning for maximum throughput is a rather large topic to be 
addressed on an unrelated list... You need to tune your JVM, OS/Kernel, 
Tomcat installation... There's lots you can fiddle with.


I suggest you google for Java performance tuning and/or ask for pointers 
on the Tomcat user's list. There's a *lot* more to it than just copying 
someone else's server.xml.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [shale] starting server errors

2006-01-12 Thread Garner, Shawn
I think I might be missing some myfaces dependency jars.

-Original Message-
From: Garner, Shawn 
Sent: Thursday, January 12, 2006 3:03 PM
To: 'Struts Users Mailing List'
Subject: RE: [shale] starting server errors

Yes, I did.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 2:55 PM
To: Struts Users Mailing List
Subject: Re: [shale] starting server errors

On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I found one reason it wasn't working.
> I had to go back to this version of web-app.
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.3.dtd";>
>
> After that though I'm getting some errors upon startup:
> Also getting this:
> 01/12 14:29:29 error Deployer Service failed to deploy
> file:/D:/dev/totw07shale/changeform/
>   * javax/servlet/jsp/el/ELException
>   * null
> [1]java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

When you dropped back to Servlet 2.3, did you also switch to JSTL 1.0?

There is some information on running Shale on a Servlet 2.3 platform here:
   http://struts.apache.org/struts-shale/index.html#Foundations

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [shale] starting server errors

2006-01-12 Thread Garner, Shawn
Yes, I did.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 2:55 PM
To: Struts Users Mailing List
Subject: Re: [shale] starting server errors

On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I found one reason it wasn't working.
> I had to go back to this version of web-app.
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.3.dtd";>
>
> After that though I'm getting some errors upon startup:
> Also getting this:
> 01/12 14:29:29 error Deployer Service failed to deploy
> file:/D:/dev/totw07shale/changeform/
>   * javax/servlet/jsp/el/ELException
>   * null
> [1]java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

When you dropped back to Servlet 2.3, did you also switch to JSTL 1.0?

There is some information on running Shale on a Servlet 2.3 platform here:
   http://struts.apache.org/struts-shale/index.html#Foundations

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] starting server errors

2006-01-12 Thread Wendy Smoak
On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I found one reason it wasn't working.
> I had to go back to this version of web-app.
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.3.dtd";>
>
> After that though I'm getting some errors upon startup:
> Also getting this:
> 01/12 14:29:29 error Deployer Service failed to deploy
> file:/D:/dev/totw07shale/changeform/
>   * javax/servlet/jsp/el/ELException
>   * null
> [1]java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

When you dropped back to Servlet 2.3, did you also switch to JSTL 1.0?

There is some information on running Shale on a Servlet 2.3 platform here:
   http://struts.apache.org/struts-shale/index.html#Foundations

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts

2006-01-12 Thread Michael Jouravlev
The download page: https://sourceforge.net/project/showfiles.php?group_id=154342
The project homepage: http://jspcontrols.sourceforge.net/

Michael.

On 1/12/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
>
> Hi
> Where can i download it and test it, also the URL for
> short desciption does not work
> --- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> > Will something like this work:
> >
> http://www.superinterface.com/jspcontrols/tabcontrol/
> > Here is a short description how to customize it:
> > http://www.jroller.com/page/javadujour/20060110
> >
> > Works in both Ajax and non-Ajax mode.
> >
> > Michael.
> >
> > On 1/12/06, Ashish Kulkarni
> > <[EMAIL PROTECTED]> wrote:
> > > Hi
> > > Is there a any facility to create tabs in struts?
> > > I want to create a jsp page where user can click
> > on
> > > link in one tab and the selected link will open
> > more
> > > details in other tab, that way i dont have to
> > reload
> > > all the page each time user click on link,
> > > i am planning to use AJAX to update other tab
> > >
> > >
> > > Ashish

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[shale] starting server errors

2006-01-12 Thread Garner, Shawn
I found one reason it wasn't working.

I had to go back to this version of web-app.

http://java.sun.com/j2ee/dtds/web-app_2.3.dtd";>

 

After that though I'm getting some errors upon startup:

 

01/12 14:29:28 error Error loading class for Filter shale: Filter is
disabled.

java.lang.IllegalStateException: No Factories configured for this
Application - typically this is because a context listener is not setup in
your web.xml.

A typical config looks like this;



 
org.apache.myfaces.webapp.StartupServletContextListener



 

I put this in my web.xml and am still getting the error though

Also getting this:

 

01/12 14:29:29 error Deployer Service failed to deploy
file:/D:/dev/totw07shale/changeform/

  * javax/servlet/jsp/el/ELException

  * null

[1]java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException

  at
org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigur
ator.java:138)

 

Shawn

 


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



[shale] clay renderId

2006-01-12 Thread Ryan Wynn
Can the renderId of a component be less than 1?  I have built parent
components that reference child components.  These parent components
are meant to be extended to add more child components.  What I would
like is to have the base parent components reference their child as
say renderId=-1 and renderId=0, so that when extended renderId will
always start at 1.  Currently, extending my parents requires the
extender to start at say renderId=2 because parent already references
some children.

For example (may already be supported)


  
  



  


resulting a child component with children ordered a, b, c.

The reason for this is usability and not having to document where to
begin renderId for each descendant.


Re: [JSF/SHALE] 403 error

2006-01-12 Thread Craig McClanahan
On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
>
> http://localhost:8101/totwcf/totwcf07/
> 
>
>
>
> I have a faces-totwcf.xml file that is bound in jrun to totwcf context.
>
>
> When I visit  
> http://localhost:8101/totwcf/totwcf07/ I get a 403 error (You are not
> authorized to view this page)
>
>
> I'm expecting it to take me to the summary page because I have this
> defined:
>
>
>
> 
>
> *
>
> 
>
>   home
>
>   /summary.jsp
>
> 
>
>   


HTTP status codes other than 200 will always trump navigation rules :-).
One way to approach this would be to define an error page for the 403 error
that does the right thing.

Craig


Re: Create tabs using struts

2006-01-12 Thread Ashish Kulkarni

Hi
Where can i download it and test it, also the URL for
short desciption does not work
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> Will something like this work:
>
http://www.superinterface.com/jspcontrols/tabcontrol/
> Here is a short description how to customize it:
> http://www.jroller.com/page/javadujour/20060110
> 
> Works in both Ajax and non-Ajax mode.
> 
> Michael.
> 
> On 1/12/06, Ashish Kulkarni
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > Is there a any facility to create tabs in struts?
> > I want to create a jsp page where user can click
> on
> > link in one tab and the selected link will open
> more
> > details in other tab, that way i dont have to
> reload
> > all the page each time user click on link,
> > i am planning to use AJAX to update other tab
> >
> >
> > Ashish
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: And Tags

2006-01-12 Thread Wendy Smoak
On 1/12/06, Asad Habib <[EMAIL PROTECTED]> wrote:

> Hello. I am using the select and options tags in one of my JSP pages. My
> first option has the value attribute set to an empty string (i.e.
> value='') and the second option has the value attribute equal to 0 (i.e.
> value="0"). For some reason, when the page is accessed the first time by a
> user, the default selected value is the second option instead of the first
> option. Does anyone why this is the case? Thanks.

The framework will pre-select the option that matches the value of the
associated form property.  Make sure that the form property is set to
"" if you want that one to be selected.

If you need more help, post the  tag and the relevant
parts of the form and action classes.

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[JSF/SHALE] 403 error

2006-01-12 Thread Garner, Shawn
http://localhost:8101/totwcf/totwcf07/
 

 

I have a faces-totwcf.xml file that is bound in jrun to totwcf context.


When I visit  
http://localhost:8101/totwcf/totwcf07/ I get a 403 error (You are not
authorized to view this page)


I'm expecting it to take me to the summary page because I have this defined:

 



*



  home

  /summary.jsp



  

 

Shouldn't this go to this page?

 

 

 

Shawn


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



And Tags

2006-01-12 Thread Asad Habib
Hello. I am using the select and options tags in one of my JSP pages. My 
first option has the value attribute set to an empty string (i.e. 
value='') and the second option has the value attribute equal to 0 (i.e. 
value="0"). For some reason, when the page is accessed the first time by a 
user, the default selected value is the second option instead of the first 
option. Does anyone why this is the case? Thanks.


- Asad

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts- URL does not work

2006-01-12 Thread Michael Jouravlev
On 1/12/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> hi there
> the short description URL
> http://www.jroller.com/page/javadujour/20060110
> does not work, give 403 error

This is weird. Works for me. Would you try once again? Just in case, I
attached the content of that page with this email.

> Just one more question, i can i programmatically
> decide which tab is to be displayed, for example, user
> clicks a button on tab1 , can i open tab 2 and load
> information and show it to user

Of course. The tab component works like any other component created
with the library. It has two phases: input (accept) and output
(render). On render phase you can check whatever conditions/objects
you need, and activate this or that tab. On input phase you handle an
event that comes from the tab and you can decide how to update your
domain model. If interested, please download the sample war file and
see the page source code:
https://sourceforge.net/project/showfiles.php?group_id=154342

Michael.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT JSF/Shale]

2006-01-12 Thread Craig McClanahan
On 1/12/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
>
> I want to use a link in one view page to go to another view without going
> through a bean action.


That's actually pretty easy ... the thing you enter for the "action"
attribute can be either a method binding to a bean action, or a literal
outcome string that is fed directly to the navigation system:



or



In the latter case, JSF acts exactly like you had called a no-op action that
returned "foo" as the outcome.  This gets fed into the navigation rules in
the usual way.

Craig

PS:  This trick is also quite useful as you are originally constructing your
application ... you can create the page with literal actions for hard coded
navigation until you get around to actually writing the bean actions, at
which point you would change to using the appropriate binding expression.


Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Mahadevan Venkataraman


Here is the stack trace that I got from the
catalina.log

Maha



Jan 11, 2006 3:05:52 PM
org.apache.struts.validator.DynaValidatorForm validate
SEVERE:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest)
at
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
at
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
at
org.apache.commons.validator.Field.validateForRule(Field.java:827)
at
org.apache.commons.validator.Field.validate(Field.java:906)
at
org.apache.commons.validator.Form.validate(Form.java:174)
at
org.apache.commons.validator.Validator.validate(Validator.java:367)
at
org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:110)
at
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:928)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:204)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Maha

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts- URL does not work

2006-01-12 Thread Ashish Kulkarni
hi there
the short description URL
http://www.jroller.com/page/javadujour/20060110
does not work, give 403 error
Just one more question, i can i programmatically
decide which tab is to be displayed, for example, user
clicks a button on tab1 , can i open tab 2 and load
information and show it to user
Ashish

--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> On 1/12/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > On 1/12/06, Michael Jouravlev <[EMAIL PROTECTED]>
> wrote:
> >
> > > Oops, bad URL for live demo. Here is the proper
> one:
> > >
>
http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp
> >
> > Nice. :)  How would you you conditionally display
> each tab based on
> > user role(s)?
> 
> Right now there is no security-specific tag or
> attribute. What you can
> do now is either:
> 
> * surround each tab with Struts/JSTL conditional
> tags, or
> * create a tag/servlet that spits out only the tags
> that are
> appropriate for current component state (this would
> have to be my job,
> actually).
> 
> For example, this is how the Tigris-style tabs can
> be defined
> (copy/paste style):
> 
> === cut here ===
>cellpadding="0">
> 
> 
>   <%-- First tab is active --%>
>   
>  cellspacing="0">
>   
>  value="Tab1" />
>  value="Tab2" />
>   
> 
>   
> 
>   <%-- Second tab is active --%>
>   
>  cellspacing="0">
>   
>  event="tab1event">Tab1
>  event="tab2event">Tab2
>   
> 
>   
> 
>   
> === cut here ===
> 
> You can put whatever you want into JSTL condition.
> The tab component
> that I have now is more of a template that you can
> adjust for your
> content and design, than a parameterizable tag. If
> you interested, see
> this short intro:
> http://www.jroller.com/page/javadujour/20060110
> 
> But nothing prevents me from putting this markup
> inside a Tab tag. I
> think I will do that, and I will add "role"
> attribute as well, just
> like you have in Struts Menu. Or do you want to have
> it in a different
> way? I am all ears :-)
> 
> I am doing my releases step by step, hopefully it
> won't take long for
> 1.0 version ;-) Thanks for heads up!
> 
> Michael.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get Struts Internal Logs From Tomcat

2006-01-12 Thread Laurie Harper
Hmm, if you have the JAR file deployed correctly and the log4j.poperties 
in the right place then, with that configuration, I would expect you to 
get flooded with debug logging :-) The only thing I can think of is to 
add an explicit category, such as


log4j.logger.org.apache.struts=DEBUG

though that shouldn't be necessary...

L.

Jim Reynolds wrote:

Yes, it is there.



On 1/11/06, Laurie Harper <[EMAIL PROTECTED]> wrote:

Did you put a copy of log4j.jar in WEB-INF/lib?

L.

Jim Reynolds wrote:

Hello,
I am creating a Struts webapp, and I would like to get some of the
internal messages that struts throws out ... eg. Bean Creation, scope,
etc.

I created a log4j.properties and laid it into my /WEB-INF/classes directory ...
log4j.rootCategory=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:/logs/cpe1.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/cpe]=DEBUG,
R


then I have this in my web.xml file:
 
  action
  org.apache.struts.action.ActionServlet
  
config
/WEB-INF/struts-config.xml
  
  
config/cpe
/WEB-INF/classes/zzt/struts-config-cpe.xml
  

  
debug
1
  
  
  detail
2
  
  
application
zzt_general
  
  2



Bottom line is, I do not get the Struts internal messages, nor
actually any messages?

Thanks,


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts

2006-01-12 Thread Wendy Smoak
On 1/12/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> But nothing prevents me from putting this markup inside a Tab tag. I
> think I will do that, and I will add "role" attribute as well, just
> like you have in Struts Menu. Or do you want to have it in a different
> way? I am all ears :-)

A 'roles' (plural) attribute that consults request.isUserInRole(...)
would be good.  (That's what Struts Menu has.)

Thanks,
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts

2006-01-12 Thread Michael Jouravlev
On 1/12/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 1/12/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> > Oops, bad URL for live demo. Here is the proper one:
> > http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp
>
> Nice. :)  How would you you conditionally display each tab based on
> user role(s)?

Right now there is no security-specific tag or attribute. What you can
do now is either:

* surround each tab with Struts/JSTL conditional tags, or
* create a tag/servlet that spits out only the tags that are
appropriate for current component state (this would have to be my job,
actually).

For example, this is how the Tigris-style tabs can be defined
(copy/paste style):

=== cut here ===
  


  <%-- First tab is active --%>
  

  


  

  

  <%-- Second tab is active --%>
  

  
Tab1
Tab2
  

  

  
=== cut here ===

You can put whatever you want into JSTL condition. The tab component
that I have now is more of a template that you can adjust for your
content and design, than a parameterizable tag. If you interested, see
this short intro: http://www.jroller.com/page/javadujour/20060110

But nothing prevents me from putting this markup inside a Tab tag. I
think I will do that, and I will add "role" attribute as well, just
like you have in Struts Menu. Or do you want to have it in a different
way? I am all ears :-)

I am doing my releases step by step, hopefully it won't take long for
1.0 version ;-) Thanks for heads up!

Michael.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: quartz plugin issue

2006-01-12 Thread lio struts
I did excactly the same with quartz-1.5.1 (it seems to include jboss special
features)and i have no problem on startup.
I have to go further to say it works...


2006/1/12, lio struts <[EMAIL PROTECTED]>:
>
> Hello world,
>
> I'm trying to use http://demo.jgsullivan.com/struts/ quartz plugin for
> struts.
> I use JBoss3.2.2/Tomcat-4.1and quartz 1.4.5
>
> In my struts-config i've addded :
>
>
> 
>
> 
>
> 
>
>  In my WEB-INF, the file quartz-config.xml :
>
>
>  xml version= "1.0" encoding="ISO-8859-1" ?>
>
> <
> quartz-config>
>
> 
>
> 
> className="org.quartz.SimpleTrigger "
>
> description="A Trigger to treat mass action : save and change" >
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
> description="A job to treat mass action : save and change"
>
> className="com.equant.refce.module.ScheduleMassTreatmentModule "
>
> durability="true" volatility ="true" />
>
> 
>
>
>
> 
>
> 
> trigger="scheduleMassTreatmentTrigger" />
>
> 
> triggerGroup="refCeTriggerGroup" job="scheduleMassTreatmentJob"
>
> trigger="scheduleMassTreatmentTrigger" />
>
>
>
>  quartz-config>
>
> And in WEB-INF/classes, the file quartz.properties :
>
> org.quartz.threadPool.class =
> org.quartz.simpl.SimpleThreadPool
>
> org.quartz.threadPool.threadCount =
> 5
>
> org.quartz.threadPool.threadPriority =
> 4
>
> org.quartz.jobStore.misfireThreshold =
> 5000
>
> org.quartz.jobStore.class =
> org.quartz.simpl.RAMJobStore
>
>
>
> Even if by now these values are a bit meaningless, but my issue doe not
> come from that (i guess)
>
> if have a look on error on startup :
>
>
>
> 17:13:15,235 INFO [PlugInSupport] Initializing QuartzPlugIn
>
> 17:13:15,548 INFO [RAMJobStore] RAMJobStore initialized.
>
> 17:13:15,548 INFO [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler'
> initialized from default resource file in Quartz package: '
> quartz.properties'
>
> 17:13:15,563 INFO [StdSchedulerFactory] Quartz scheduler version: 1.4.5
>
> 17:13:15,704 ERROR [STDERR]
> *java.lang.NullPointerException
>
> *
>
> 17:13:15,719 ERROR [STDERR] at
> com.jgsullivan.quartz.SchedulerBuilder.setTriggerDefaults(
> *SchedulerBuilder.java:250*)
>
> 17:13:15,719 ERROR [STDERR] at
> com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(
> *SchedulerBuilder.java:214*)
>
> 17:13:15,719 ERROR [STDERR] at
> com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(
> *SchedulerBuilder.java:178*)
>
> 17:13:15,719 ERROR [STDERR] at
> com.jgsullivan.struts.plugins.QuartzPlugIn.init(
> *QuartzPlugIn.java:97*)
>
> 17:13:15,719 ERROR [STDERR] at
> com.jgsullivan.struts.plugins.PlugInSupport.init(
> *PlugInSupport.java:276*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.struts.action.ActionServlet.initModulePlugIns(
> *ActionServlet.java:839*)
>
> 17:13:15,719 ERROR [STDERR] at org.apache.struts.action.ActionServlet.init
> (
> *ActionServlet.java:332*)
>
> 17:13:15,719 ERROR [STDERR] at javax.servlet.GenericServlet.init(
> *GenericServlet.java:256*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.StandardWrapper.loadServlet(
> *StandardWrapper.java:935*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.StandardWrapper.load(
> *StandardWrapper.java:823*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> *StandardContext.java:3421*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.StandardContext.start(
> *StandardContext.java:3609*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.ContainerBase.addChildInternal(
> *ContainerBase.java:821*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.ContainerBase.addChild(
> *ContainerBase.java:807*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.apache.catalina.core.StandardHost.addChild(
> *StandardHost.java:579*)
>
> 17:13:15,719 ERROR [STDERR] at
> org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(
> *EmbeddedTomcatService.java:530*)
>
> 17:13:15,735 ERROR [STDERR] at
> org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(
> *EmbeddedTomcatService.java:309*)
>
> 17:13:15,735 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(
> *AbstractWebContainer.java:428*)
>
> 17:13:15,735 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(
> *MainDeployer.java:832*)
>
> 17:13:15,735 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(
> *MainDeployer.java:642*)
>
> 17:13:15,735 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(
> *MainDeployer.java:605*)
>
> 17:13:15,735 ERROR [STDERR] at
> sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
>
> 17:13:15,735 ERROR [STDERR] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> *DelegatingMethodAccessorImpl.java:25*)
>
> 17:13:15,735 ERROR [STDERR] at java.lang.reflect.Method.invoke(
> *Method.java:324*)
>
> 17:13:15,735 ERROR [STDERR] at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(
> *ReflectedMBeanDispatcher.java:284*)
>
> 17:13:15,735 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(
> *MBeanServerImpl.java:546*)

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-12 Thread Craig McClanahan
On 1/12/06, Werner Punz <[EMAIL PROTECTED]> wrote:
>
> Rick Reumann schrieb:
>
> > Please don't get me wrong, I'm not anti-JSF - I really like a LOT of it.
> > I just wish there was some kind of effort to bring a lot of this
> > together into one 'framework' - I know this goes against a lot of the
> > open source thinking, but if Shale is that useful, which I believe it
> > is, I'd like to see maybe absorbed into something like MyFaces.. is that
> > a possibility? It's just confusing about what you truly need to get to
> > be productive.
> >
> >
> Just another sidenote before I have to leave, as it looks now, MyFaces
> sort of slowly is becoming that framework.
>
> Dont get me wrong, what you want is close to impossible, because JSF
> basically is a spec upon which frameworks can build upon.


Exactly.  That is what both Shale and MyFaces's components are about
(although these two frameworks focus on different pieces of the problem --
Shale is about the back end architecture, while MyFaces is focusing on
components).  The good news is that they work together.

But given the current state of myfaces, although it is only JSF 1.1 for
> now, it slowly is becoming a semi defacto framework of choice for many,
> due to the fact, that the Tomahawk components are already very
> extensive, Orcale currently is moving some of the ADF the codebase
> towards apache (and it is very likely that it will end up in MyFaces)
> and the Tobago components soon also will be in there, to my knowledge.
>
> So recommending MyFaces as a framework starting point definitely is a
> wise decision.


Interestingly, this is where the value of having a standard comes in.  It's
the fact that there *is* a common API that different frameworks can program
to, and then have some confidence that they can interoperate, that creates a
lot of the value JSF brings to the table, above and beyond it's intrinsic
technical capabilities.

Compare that to the "interesting" issues you sometimes get trying to
intermix JSP tag libraries together, and make them interoperate.

Craig


Re: Enabling links according to user's authorization

2006-01-12 Thread Dave Newton
Rivka Shisman wrote:
> Can you please send an example code of overloading the processRoles
> method? And also the relevant part in struts config file?
>   
Too busy right now, but
http://www.onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html might
give you enough info to start on your own.

As a rough guide, what I've done in the past is set the 'roles'
attribute to a comma-separated list of rules (as opposed to supplying a
single role for JAAS). Each user will have a collection of roles
associated with them stored in a session user object. In my custom
processRoles code I'll compare user roles vs. action roles and see if
there's a match.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts

2006-01-12 Thread Wendy Smoak
On 1/12/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> Oops, bad URL for live demo. Here is the proper one:
> http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp

Nice. :)  How would you you conditionally display each tab based on
user role(s)?

Thanks,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: Create tabs using struts

2006-01-12 Thread Michael Jouravlev
Oops, bad URL for live demo. Here is the proper one:
http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp

A short description how to customize it:
http://www.jroller.com/page/javadujour/20060110

Works in both Ajax and non-Ajax mode.

Michael.

On 1/12/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi
> Is there a any facility to create tabs in struts?
> I want to create a jsp page where user can click on
> link in one tab and the selected link will open more
> details in other tab, that way i dont have to reload
> all the page each time user click on link,
> i am planning to use AJAX to update other tab
>
>
> Ashish

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts

2006-01-12 Thread Michael Jouravlev
Will something like this work:
http://www.superinterface.com/jspcontrols/tabcontrol/
Here is a short description how to customize it:
http://www.jroller.com/page/javadujour/20060110

Works in both Ajax and non-Ajax mode.

Michael.

On 1/12/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi
> Is there a any facility to create tabs in struts?
> I want to create a jsp page where user can click on
> link in one tab and the selected link will open more
> details in other tab, that way i dont have to reload
> all the page each time user click on link,
> i am planning to use AJAX to update other tab
>
>
> Ashish

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT JSF/Shale]

2006-01-12 Thread Garner, Shawn
I want to use a link in one view page to go to another view without going
through a bean action.

Something like this?  I thought maybe I could just use the jsp:forward tag
and put the name of the jsp page.

view1.jsp





  





 

 

or I would like to hard code the result of this view and maybe use this in
the configuration file

something like then do a from-outcome="success_submit" to
view-id="/view2.jsp"

 





  





 

 

Shawn

 


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



convert html or jsp tags to struts tags

2006-01-12 Thread Ashish Kulkarni
Hi
Is there a open source or free utility to convert html
tags and jsp tags to equivalant struts tags?
I have some HTML pages and plain  jsp pages which i
would like to convert to struts tags


Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Mahadevan Venkataraman
Thanks for the replies.

Here is more info on the problem that I am having. 

I used the DynaValidatorForm in the form beans in
order not to explicitly code the form beans. Also, I
tried to do both client-side(javascript) and
server-side validations. The client side validation
worked. The javascript catches if I try to submit an
empty form. However, if I remove the client side
validation and have only the server-side validation,
the validation does'nt seem to occur . It is not
throwing the error back to the input page. Instead, it
starts performing the action as if the form is valid
eventhough it is empty.

Any help to solve this is highly appreciated.

Thanks


Maha

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create tabs using struts

2006-01-12 Thread Sony Thomas


Hi Ashish,

If you get any way around in this problem please let me know. I am also 
facing the same problem


sony




Ashish Kulkarni wrote:



Hi
Is there a any facility to create tabs in struts?
I want to create a jsp page where user can click on
link in one tab and the selected link will open more
details in other tab, that way i dont have to reload
all the page each time user click on link, 
i am planning to use AJAX to update other tab



Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need Calendar in JSF

2006-01-12 Thread Werner Punz
Here is the demo:

http://www.irian.at/myfaces/home.jsf



Alexandre Poitras schrieb:
> http://myfaces.apache.org/tomahawk/calendar.html
> 
> On 1/12/06, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
> <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>>
>>
>> Is there any component in JSF for date picker?
>>
>>
>>
>> Please let me know.
>>
>>
>>
>> Thanks n advance
>>
>>
>>
>> jeeva
>>
>> --
>> Greetings!
>>
>>
>>
>>
>> ICICI Infotech is now 3i Infotech.
>>
>>
>> The e-mail addresses of the company's employees have been changed to 
>> @3i-infotech.com. You are requested to take note of this new 
>> e-mail ID and make use of the same in future
>>
>>
>> "This e-mail message may contain confidential, proprietary or legally 
>> privileged information. It should not be used by anyone who is not the 
>> original intended recipient. If you have erroneously received this message, 
>> please delete it immediately and notify the sender. The recipient 
>> acknowledges that 3i Infotech or its subsidiaries and associated companies, 
>> (collectively "3i Infotech"), are unable to exercise control or ensure or 
>> guarantee the integrity of/over the contents of the information contained in 
>> e-mail transmissions and further acknowledges that any views expressed in 
>> this message are those of the individual sender and no binding nature of the 
>> message shall be implied or assumed unless the sender does so expressly with 
>> due authority of 3i Infotech. Before opening any attachments please check 
>> them for viruses and defects."
>>
>>
>>
> 
> 
> --
> Alexandre Poitras
> Québec, Canada


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat issues

2006-01-12 Thread David G. Friedman
Bogdan,

There is an ant task you can add to your build.xml file which will restart your 
Tomcat webapp for you as it builds and
copies everything over.  Or you could ook into setting autoreload on your 
webapp's context.

Regards,
David

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 8:06 AM
To: user@struts.apache.org
Subject: RE: Tomcat issues


Hi

Look in the Tomcat logs directory. In the ocalhost_logtxt file you will 
probably find your answer.

Hermod

-Original Message-
From: Bogdan Paduraru [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 1:22 PM
To: Struts Users Mailing List
Subject: RE: Tomcat issues


I used Tomcat Manager for deploy and it works.
I wonder why it didn't work when I just copied the file myself ...

Thanx,
Bogdan

-Original Message-
From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 1:57 PM
To: Struts Users Mailing List
Subject: Re: Tomcat issues

Bogdan Paduraru wrote:
> I'm trying to run a Struts application built with Ant. Ant makes me
the
> war file, I copy it under application directory in webapps of Tomcat
> server. When I try to run something from my browser it tells me the
> resource I call is unavailable. When I deploy the application unpacked
> from the war file , it runs nicely, no problems. Can you tell me what
> should I do on Tomcat configuration to run war correctly?

You should enable Tomcat Manager application. When you do that,
you can see all the applications on the server, so you can check
if the application is deployed or not.

Did you try to restart server after deployment of WAR file?

Regards,
Ognjen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling links according to user's authorization

2006-01-12 Thread Dave Newton
Brian Trzupek wrote:
> Great question. What I have done in the past (and maybe there are
> better ways) is to:
> 1) When the user logs into the application, I cache off the users role
> as well as other attributes (usually in a small User object in
> session). thes attributes are the result of loading the User and attrs
> from the Database.
>
> 2) I have a Base Action that all the actions in the project extend. In
> this base action I have a method to 'set the access level(s) for
> calling that action'. The second method is an implementation of the
> perform method that first checks the 'access' for the calling user
> (based on the subclass's set access level). If that access is denied,
> then the appropriate forward is used to indicate a credential error.
> If it is ok, then I call an abstract perform2 method that the subclass
> can implement (same signature as perfrom/execute). When that method
> returns then I manage any errors (back in the base method) and return
> the forward from the subclass.
Another way to do this with a higher level of abstraction is to use a
custom request processor and overload the processRoles method. This way
you can set access levels in your struts config file and keep all the
role handling code out of the mainline, which is always a Good Thing.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maintaining session state in remote servlet form post

2006-01-12 Thread Christopher Becker
We have a struts app (v1.2.7) that uses Tiles for UI presentation,
running in WebLogic 8.1.  We are trying to implement a form whose action
is to a remote servlet. The remote site actually generated the form
details for us, and one of the fields provided is a hidden field
entitled returnURL, which allows me to provide a URL to a page within my
web app. 
 
When the form is submitted, the remote servlet  returns to the URL
specified in the returnURL parameter, but the user session is lost and
the relative links for images in the tiles layout disappear.
 
We have tried appending the session id to the URL sent in the hidden
returnURL of the form, but this did not work. We then changed from URL
rewriting to cookies for handling session state, but this also did not
work.
 
Does anyone have any ideas on how to maintain session state when
posting to a remote servlet?
 
Regards,
 
--Chris
 


Re: [OT] Getting started is confusing [was] Re: Need advice

2006-01-12 Thread Werner Punz
[EMAIL PROTECTED] schrieb:

> 
> Hi Werner, do you mean "Derek Shen"? I found this: 
> http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html and he does 
> have a "FacesUtils" .. just wanted to make sure this si what you are 
> alluding to..?
> 
yes...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Create tabs using struts

2006-01-12 Thread Ashish Kulkarni
Hi
Is there a any facility to create tabs in struts?
I want to create a jsp page where user can click on
link in one tab and the selected link will open more
details in other tab, that way i dont have to reload
all the page each time user click on link, 
i am planning to use AJAX to update other tab


Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-12 Thread Werner Punz
Rick Reumann schrieb:

> Please don't get me wrong, I'm not anti-JSF - I really like a LOT of it.
> I just wish there was some kind of effort to bring a lot of this
> together into one 'framework' - I know this goes against a lot of the
> open source thinking, but if Shale is that useful, which I believe it
> is, I'd like to see maybe absorbed into something like MyFaces.. is that
> a possibility? It's just confusing about what you truly need to get to
> be productive.
> 
> 
Just another sidenote before I have to leave, as it looks now, MyFaces
sort of slowly is becoming that framework.

Dont get me wrong, what you want is close to impossible, because JSF
basically is a spec upon which frameworks can build upon.
But given the current state of myfaces, although it is only JSF 1.1 for
now, it slowly is becoming a semi defacto framework of choice for many,
due to the fact, that the Tomahawk components are already very
extensive, Orcale currently is moving some of the ADF the codebase
towards apache (and it is very likely that it will end up in MyFaces)
and the Tobago components soon also will be in there, to my knowledge.

So recommending MyFaces as a framework starting point definitely is a
wise decision.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-12 Thread Werner Punz
I am also in a hurry so I will answer more extensively later...
just to your problem now

Rick Reumann schrieb:
> 
> Sort off-topic but what do you use in JSF to create a display of List
> data from a  managedBean? I believe I was told to use DataTable and
> that's what I used in my lesson, but I thought that was rather limiting.
> Maybe I want to create a bunch of divs and don't want to be using
> t:column. Is there a Component equivalent of a simple forEach loop that
> works well with managedBean list content?
> 
Actually there are various ways:
Datatable is a viable approach,
but MyFaces also has a generic datalist, which does the c:foreach (which
is rather forbidden in JSF 1.1, in jsf 1.2 it should work again)

within the datalist you can place any component you like, even verbatims.

I used a combined approach of datatable and datalist with sergeijs
jsf:html tags for my last application (the datalist for a table with
dynamic colspans)

One big advantage of the datatable is, that you can get paging out of
the box via datascroller components, so it is very powerful, but the
main limit is, that you are somewhat limited with the layout (dynamic
colspan is not really that easy to achieve, css per row or column is easy)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling links according to user's authorization

2006-01-12 Thread Brian Trzupek

Rivka,

Great question. What I have done in the past (and maybe there are better ways) 
is to:
1) When the user logs into the application, I cache off the users role as well 
as other attributes (usually in a small User object in session). thes 
attributes are the result of loading the User and attrs from the Database.

2) I have a Base Action that all the actions in the project extend. In this 
base action I have a method to 'set the access level(s) for calling that 
action'. The second method is an implementation of the perform method that 
first checks the 'access' for the calling user (based on the subclass's set 
access level). If that access is denied, then the appropriate forward is used 
to indicate a credential error. If it is ok, then I call an abstract perform2 
method that the subclass can implement (same signature as perfrom/execute). 
When that method returns then I manage any errors (back in the base method) and 
return the forward from the subclass.

In this way I have a very simple way to subclass and identify for each Action 
an access level(s). I also use a CredentialManagement Class that just does some 
bitwise operations so a user can have multiple roles for access. (That may be 
overkill for you).

I hope this helps, and if you need further info or code snippets, let me know!

Cheers,
Brian Trzupek



shyam kishore alapati wrote:


While login itself you can have the permissions in the session and based on the permissions 
you can hide the links. Just for one variable i think there is no need to call the 
database.use can use  or  for this.
-Original message-
From: "Rivka Shisman" [EMAIL PROTECTED]
Date: Wed, 11 Jan 2006 04:18:23 -0800
To: "Struts Users Mailing List" user@struts.apache.org
Subject: Enabling links according to user's authorization

 


Hi everyone,

We have a web application running on Websphere Application Server V6.
Say I have a JSP page that enables working on Student details.
This JSP page enables users to view, insert, update or delete student
records.
Now, some users can only use the 'View' link, others can also use
'Insert' link, and some other users can only update.

From what i know, i can hold a DB table that indicates for each user and
table - which operations are allowed.
But, my question is - what is the right way to do that on the JSP page?
Do i call this security table on each page load and hide the
unauthorized links? Or, do always show all the links and just let the
database throw an exception and give a message to the user, when he/she
presses an unauthorized link? Or is there a third and better way?

Thanks
Rivka

   




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need Calendar in JSF

2006-01-12 Thread Alexandre Poitras
http://myfaces.apache.org/tomahawk/calendar.html

On 1/12/06, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> Is there any component in JSF for date picker?
>
>
>
> Please let me know.
>
>
>
> Thanks n advance
>
>
>
> jeeva
>
> --
> Greetings!
>
>
>
>
> ICICI Infotech is now 3i Infotech.
>
>
> The e-mail addresses of the company's employees have been changed to 
> @3i-infotech.com. You are requested to take note of this new 
> e-mail ID and make use of the same in future
>
>
> "This e-mail message may contain confidential, proprietary or legally 
> privileged information. It should not be used by anyone who is not the 
> original intended recipient. If you have erroneously received this message, 
> please delete it immediately and notify the sender. The recipient 
> acknowledges that 3i Infotech or its subsidiaries and associated companies, 
> (collectively "3i Infotech"), are unable to exercise control or ensure or 
> guarantee the integrity of/over the contents of the information contained in 
> e-mail transmissions and further acknowledges that any views expressed in 
> this message are those of the individual sender and no binding nature of the 
> message shall be implied or assumed unless the sender does so expressly with 
> due authority of 3i Infotech. Before opening any attachments please check 
> them for viruses and defects."
>
>
>


--
Alexandre Poitras
Québec, Canada

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Frank W. Zammetti

Java Web Parts can do this:

http://javawebparts.sourceforge.net

And your in luck!  The cookbook comes with an example of doing precisely 
this.  Download it here:


http://sourceforge.net/project/showfiles.php?group_id=140728&package_id=167877&release_id=366815

Frank

Ashish Kulkarni wrote:

Hi
I have a jsp where there are 2 drop down boxes,
I want to populate the value in second drop down box
depending on the selection of first dropdown box,
Suppose onClick event on first dropdown box i call a
struts Action  using AJAX, this Action class populates
the Form bean and sends it back to 
How can in ajax i can access this form bean, get the

data, once i get the data i can update drop down using
DHTML,
Is there some framework or tutorial for doing this.
I am populating form bean to make this application
workable in non AJAX supporting browser also, and all
my existing application is written this way and i dont
want to change a lot in it

Ashish

A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



.



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 06:47 -0800, Ashish Kulkarni wrote:
> Hi
> I have a jsp where there are 2 drop down boxes,
> I want to populate the value in second drop down box
> depending on the selection of first dropdown box,
> Suppose onClick event on first dropdown box i call a
> struts Action  using AJAX, this Action class populates
> the Form bean and sends it back to 
> How can in ajax i can access this form bean, get the
> data, once i get the data i can update drop down using
> DHTML,
> Is there some framework or tutorial for doing this.
> I am populating form bean to make this application
> workable in non AJAX supporting browser also, and all
> my existing application is written this way and i dont
> want to change a lot in it

DWR might help you; http://getahead.ltd.uk/dwr/

This example is not too far from what you're trying to do;
http://getahead.ltd.uk/dwr/examples/lists

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Opening a new window

2006-01-12 Thread rahul kshirsagar
Hi,

I am using struts in my application.I have one parent jsp from which i am 
opening a new window.Now i want to pass some value from this child window and 
close the same.
How to pass this value from child to parent jsp and also retain values in 
parent jsp?
Which is the efficient way to implement the same?  


Re: Opening a New window

2006-01-12 Thread Rick Reumann

rahul kshirsagar wrote the following on 1/12/2006 8:36 AM:

Hi,

Do i need to call action class on submit

> of new jsp?

I wasn't able to follow all of your original post, but in my opinion, 
you should always go through an Action, even if it's the the default 
ActionForward. This way, if later on you truly need to do some 
processing in a custom Action you just change you action mapping and 
don't need to change any of your jsp links.


--
Rick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Ashish Kulkarni
Hi
I have a jsp where there are 2 drop down boxes,
I want to populate the value in second drop down box
depending on the selection of first dropdown box,
Suppose onClick event on first dropdown box i call a
struts Action  using AJAX, this Action class populates
the Form bean and sends it back to 
How can in ajax i can access this form bean, get the
data, once i get the data i can update drop down using
DHTML,
Is there some framework or tutorial for doing this.
I am populating form bean to make this application
workable in non AJAX supporting browser also, and all
my existing application is written this way and i dont
want to change a lot in it

Ashish

A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jsp , struts page forward problem?

2006-01-12 Thread Melih U. Unsal
I am developing a web application with jsp and struts. (i am developing 
with websphere studio application developer).


My question is about forwarding between pages. I have 2 jsp pages. First 
one is "user.jsp" and the other one is "useraddress.jsp"


My first page (user.jsp) will show a user (only one user) in my database 
when loaded. I don't have problem with that, i can show the user on my 
user.jsp page.


At this page i can edit the user's "name" and "surname" values if i want 
to update these information. But If i want to edit "address" information 
of user, i have to that in another jsp page
and for that i want to use "useraddress.jsp" page. I want that when i 
click a button on my "user.jsp" ,"useraddress.jsp" page will be loaded 
and show the address information of user and provide me to update the 
address information. Then turn back to "user.jsp". How can i do that?


How can i show the "useraddress.jsp" page when i clicked a button on my 
"user.jsp". Which button must i use? (submit or another).
What can i do to not to lose information of user when i turned back to 
"user.jsp" from "useraddress.jsp"?







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need Calendar in JSF

2006-01-12 Thread Rahul Akolkar
On 1/12/06, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there any component in JSF for date picker?
>


Tomahawk calendar [1] for one.

-Rahul

[1] http://myfaces.apache.org/tomahawk/calendar.html


>
>
> Please let me know.
>
> Thanks n advance
>
> jeeva
>
> --
> Greetings!
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Space in jsp

2006-01-12 Thread Thomas Joseph
Hi, 

You may like to refer to the book "Core Servlets and Java Server Pages" by 
Marty Hall. (www.coreservlets.com)
An online version is avalable at 
http://pdf.coreservlets.com/CSAJSP-Chapter4.pdf section 4.4.



| Hi,
| 
| Would you please explain what gzip compression in the servlet container is?
| & How do you turn it on?
| Is it some tool that needs to be downloaded from some where.
| 
| Thanks & Regards,
| MS
| 
| -Original Message-
| From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
| Sent: Thursday, January 12, 2006 1:12 PM
| To: Struts Users Mailing List
| Subject: Re: Space in jsp
| 
| 
| On Wed, 2006-01-11 at 23:06 -0800, Vasumathi wrote:
| > 
| >after running the web application, when i see the source of that
| > page, 
| > there are lots and lots of space between each line.
| > what is the reason for that, anyone can help me plz.
| > i not used any &nbsb in that jsp page... 
| 
| It's per jsp spec, whitespace is retained, and i think (if memory serves
| right) that tags are converted to whitespace. 
| 
| You can turn on gzip compression in the servlet container to compress
| output to reduce page download time.
| 
| -- 
| Torgeir Veimo <[EMAIL PROTECTED]>
| 


Thanks and Regards,
Thomas Joseph
[EMAIL PROTECTED]
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India
www.kottsoftware.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get Struts Internal Logs From Tomcat

2006-01-12 Thread Jim Reynolds
Yes, it is there.



On 1/11/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Did you put a copy of log4j.jar in WEB-INF/lib?
>
> L.
>
> Jim Reynolds wrote:
> > Hello,
> > I am creating a Struts webapp, and I would like to get some of the
> > internal messages that struts throws out ... eg. Bean Creation, scope,
> > etc.
> >
> > I created a log4j.properties and laid it into my /WEB-INF/classes directory 
> > ...
> > log4j.rootCategory=DEBUG, R
> > log4j.appender.R=org.apache.log4j.RollingFileAppender
> > log4j.appender.R.File=C:/logs/cpe1.log
> > log4j.appender.R.MaxFileSize=1500KB
> > log4j.appender.R.MaxBackupIndex=10
> > log4j.appender.R.layout=org.apache.log4j.PatternLayout
> > log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
> > log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/cpe]=DEBUG,
> > R
> >
> >
> > then I have this in my web.xml file:
> >  
> >   action
> >   org.apache.struts.action.ActionServlet
> >   
> > config
> > /WEB-INF/struts-config.xml
> >   
> >   
> > config/cpe
> > 
> > /WEB-INF/classes/zzt/struts-config-cpe.xml
> >   
> >
> >   
> > debug
> > 1
> >   
> >   
> >   detail
> > 2
> >   
> >   
> > application
> > zzt_general
> >   
> >   2
> > 
> >
> >
> > Bottom line is, I do not get the Struts internal messages, nor
> > actually any messages?
> >
> > Thanks,
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Opening a New window

2006-01-12 Thread rahul kshirsagar
Hi,

I am using struts in my application.I have one JSP in which i have "search" and 
"submit" button.I am opening a new window on click of "search" and populating a 
jsp.Now i want to pass a value from this new jsp to old jsp and also want to 
retain data in old jsp.I am not able to pass the value back to old jsp?Do i 
need to call action class on submit of new jsp?

Can you provide me the solution for the same?


Re:

2006-01-12 Thread Dave Newton

Josh McDonald wrote:


Quick question, is it possible to make  generate an id="" ?
 

styleId, reference the taglib docs: 
http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#form



Or to generate a name="" that's not based on the name of the form bean?
 


I'm not sure why you'd want to that.


The whole setup of the  taglib doesn't make a lot of sense
from where I sit really :(
 

It makes sense if you're using form beans. If you're not using the 
Struts form processing stuff then no, it wouldn't.


Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



My ISP dumped me

2006-01-12 Thread Murray Collingwood
Hi folks

I have a problem with one of my new sites not connecting to the MySQL
database.  I believe the problem is  definitely in the context.xml, however
different things happen when I move the app between two servers.  You can
see the site at http://www.pancakemanor.com.au and although it looks like
there is data coming up I can assure this is the hardcoded sample text I
display if there are no records from the database.




When running on my ISP hosts machine the app fails to connect to the
database.  Not sure of the message, my ISP wouldn't send them.  If I run the
app locally on my Tomcat server and connect to my database at the ISP it
works fine.

What makes it worse is the email I received today from my ISP.  They're
pulling support for Tomcat and leaving me in the lurch.  Check out the email
below.  Does anybody have any ideas what I should try and do?

Kind regards
Murray

Hi Murray,
We have closely examined the server configuration and operation, we have
experimented with modifing various parts of the configuration.

We can see the logs on the database server, and we know that the website
is not even attempting to make a connection when the website is browsed.
We can see regular entries for the other sites in the database logs, and
can safely assume that the associated websites are functioning correctly.
e.g. *http://www.backpackers-express.com/* and
*http://www.focus-computing.com.au/*
**
**The most we will do is deploy the war file as supplied, if it doesn't
work, we can not assume responsibility.

As Bill is no longer with Actrix, Actrix is no longer able to support JSP
in the form provided by Bill as he had a unique skill set around this
product.

Management has made the decision to halt further development on JSP
under Windows. We are hoping to offer the service again in 3-6 months on
a unix platform where we can support it with our current skill set.
---
Regards,
Mark Munro.
<[EMAIL PROTECTED]>


RE: Tomcat issues

2006-01-12 Thread hermod.opstvedt
Hi

Look in the Tomcat logs directory. In the ocalhost_logtxt file you will 
probably find your answer.

Hermod

-Original Message-
From: Bogdan Paduraru [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 1:22 PM
To: Struts Users Mailing List
Subject: RE: Tomcat issues


I used Tomcat Manager for deploy and it works.
I wonder why it didn't work when I just copied the file myself ...

Thanx,
Bogdan

-Original Message-
From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 1:57 PM
To: Struts Users Mailing List
Subject: Re: Tomcat issues

Bogdan Paduraru wrote:
> I'm trying to run a Struts application built with Ant. Ant makes me
the
> war file, I copy it under application directory in webapps of Tomcat
> server. When I try to run something from my browser it tells me the
> resource I call is unavailable. When I deploy the application unpacked
> from the war file , it runs nicely, no problems. Can you tell me what
> should I do on Tomcat configuration to run war correctly?

You should enable Tomcat Manager application. When you do that, 
you can see all the applications on the server, so you can check 
if the application is deployed or not.

Did you try to restart server after deployment of WAR file?

Regards,
Ognjen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat issues

2006-01-12 Thread Bogdan Paduraru
I used Tomcat Manager for deploy and it works.
I wonder why it didn't work when I just copied the file myself ...

Thanx,
Bogdan

-Original Message-
From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 1:57 PM
To: Struts Users Mailing List
Subject: Re: Tomcat issues

Bogdan Paduraru wrote:
> I'm trying to run a Struts application built with Ant. Ant makes me
the
> war file, I copy it under application directory in webapps of Tomcat
> server. When I try to run something from my browser it tells me the
> resource I call is unavailable. When I deploy the application unpacked
> from the war file , it runs nicely, no problems. Can you tell me what
> should I do on Tomcat configuration to run war correctly?

You should enable Tomcat Manager application. When you do that, 
you can see all the applications on the server, so you can check 
if the application is deployed or not.

Did you try to restart server after deployment of WAR file?

Regards,
Ognjen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Struts in Tomcat

2006-01-12 Thread Neil Meyer

Good day,

I know this is probably not the right user group for this question but I
really need some advice I run 'n struts application in Tomcat. It is tomcat
5.5.9 and JDK: j2sdk-1_11_2_09.

The problem is that this Tomcat get sometimes so slow and it is not stable it
will sometimes just hang.

At this moment I have a problem that one of the pages only renders half way.

I think it might be some where in the server.xml that I need to optimize some
of the setting but I have tried few combinations and it doesn't seem to help.

I cater for a about a 2000 unique users a day, they use this system to pull
information from thus the data that is streamed is a lot and everything is
database driven.

If there is anybody out there running high volume servers with tomcat
prepared to provide me with there server.xml file so that I can compare it
with mine it will be appreciated, or any ideas will also help?

Regards
Neil

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



need Calendar in JSF

2006-01-12 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all,

 

Is there any component in JSF for date picker?

 

Please let me know.

 

Thanks n advance

 

jeeva

-- 
Greetings!

 


ICICI Infotech is now 3i Infotech.


The e-mail addresses of the company's employees have been changed to @3i-infotech.com. You are requested to take note of this new e-mail ID and 
make use of the same in future

 
"This e-mail message may contain confidential, proprietary or legally 
privileged information. It should not be used by anyone who is not the original 
intended recipient. If you have erroneously received this message, please 
delete it immediately and notify the sender. The recipient acknowledges that 3i 
Infotech or its subsidiaries and associated companies, (collectively "3i 
Infotech"), are unable to exercise control or ensure or guarantee the integrity 
of/over the contents of the information contained in e-mail transmissions and 
further acknowledges that any views expressed in this message are those of the 
individual sender and no binding nature of the message shall be implied or 
assumed unless the sender does so expressly with due authority of 3i Infotech. 
Before opening any attachments please check them for viruses and defects."



Re: Tomcat issues

2006-01-12 Thread Ognjen Blagojevic

Bogdan Paduraru wrote:

I'm trying to run a Struts application built with Ant. Ant makes me the
war file, I copy it under application directory in webapps of Tomcat
server. When I try to run something from my browser it tells me the
resource I call is unavailable. When I deploy the application unpacked
from the war file , it runs nicely, no problems. Can you tell me what
should I do on Tomcat configuration to run war correctly?


You should enable Tomcat Manager application. When you do that, 
you can see all the applications on the server, so you can check 
if the application is deployed or not.


Did you try to restart server after deployment of WAR file?

Regards,
Ognjen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Space in jsp

2006-01-12 Thread Meenakshi Singh
Ok. I'll do some R & D on it.
Thanks a lot for your responses.

Regards,
Meenakshi

-Original Message-
From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 4:30 PM
To: user@struts.apache.org
Subject: RE: Space in jsp


On Thu, 2006-01-12 at 15:39 +0530, Meenakshi Singh wrote:
> My net surfing is not working today.
> I did manage to view the main page but cudn't see the related links.
>
> I understood what gzip does.However, I couldn't understand as to how can I
> implement it in my application. I use IBM websphere server.  I don't know
if
> I need to get some tool etc.
> For ex: we need to download winzip or similiar utility to zip the files.
>
> What do we actualy do to implement such a thing.
> Would you please explain the steps which we need to perform to enable
gzip.

Well, if memory serves right, websphere can do it in version 5 and up,
but i guess they call it http compression. You need to look in the
configuration or help section. It's also possible, but more difficult to
do it with a servlet filter.

--
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Space in jsp

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 15:39 +0530, Meenakshi Singh wrote:
> My net surfing is not working today.
> I did manage to view the main page but cudn't see the related links.
> 
> I understood what gzip does.However, I couldn't understand as to how can I
> implement it in my application. I use IBM websphere server.  I don't know if
> I need to get some tool etc.
> For ex: we need to download winzip or similiar utility to zip the files.
> 
> What do we actualy do to implement such a thing.
> Would you please explain the steps which we need to perform to enable gzip.

Well, if memory serves right, websphere can do it in version 5 and up,
but i guess they call it http compression. You need to look in the
configuration or help section. It's also possible, but more difficult to
do it with a servlet filter.

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Space in jsp

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 15:43 +0530, Meenakshi Singh wrote:
> Also in another application , I have checked the entries that you have
> specified for the compression on tomcat are already there. However, cudn't
> see much difference in terms of performance.

Well the network is probably fast between you and your test server. And
if you try to view the files with the browser, it transparently
decompresses them for you, so you never really notice.


-- 
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Space in jsp

2006-01-12 Thread Meenakshi Singh

Also in another application , I have checked the entries that you have
specified for the compression on tomcat are already there. However, cudn't
see much difference in terms of performance.

Thanks & Regards,
Meenakshi.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Space in jsp

2006-01-12 Thread Meenakshi Singh
My net surfing is not working today.
I did manage to view the main page but cudn't see the related links.

I understood what gzip does.However, I couldn't understand as to how can I
implement it in my application. I use IBM websphere server.  I don't know if
I need to get some tool etc.
For ex: we need to download winzip or similiar utility to zip the files.

What do we actualy do to implement such a thing.
Would you please explain the steps which we need to perform to enable gzip.

Thanks & Regards,
Meenakshi

-Original Message-
From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 2:58 PM
To: user@struts.apache.org
Subject: RE: Space in jsp


On Thu, 2006-01-12 at 14:50 +0530, Meenakshi Singh wrote:
> Hi,
>
> Would you please explain what gzip compression in the servlet container
is?

http://www.httprevealer.com/usage_gzip.htm

--
Torgeir Veimo <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >