Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Michael Rush

   
 ...
 
 ...
   


Related to this, is there a way to specify the tiles-defs file to  
use? For example, my application has 3 modules, each with its own  
tiles-defs file.


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



Re: sslext -- anyone using it?

2006-09-15 Thread Michael Rush
I have been using the sslext library for some time. I have only  
used it

with Struts 1.1 and 1.2 though, never with 1.3.

As for your concerns regarding the custom controller/processor class,
sslext comes with a SecureTilesRequestProcessor class. I have been  
using

it with tiles without issue.

Adam


Thats helpful. I guess I'll download it and give it a try. Thanks!

-michael

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



sslext -- anyone using it?

2006-09-15 Thread Michael Rush
I'm looking into implementing something to force ssl for logins (and  
a few other pages) and then switching back to standard http once  
logged in.


I found sslext at http://sslext.sourceforge.net/ but it looks like it  
hasn't been updated in a couple of years. I have a couple of concerns:

 * I'm running struts 1.3.x, which isn't officially supported
 * it requires using a custom controller/processorClass. I'm  
currently using the TilesRequestProcessor. So (I think) I'd have to  
create a custom Tiles processor that extends their  
SecureRequestProcessor.


Are any of you using sslext? Or, any other solution?

I also saw Ted's page at http://husted.com/struts/FAQ/controller- 
ssl.htm where another solution was offered, but I'm opposed to  
putting the host/domain info in the struts config file.


Any feedback would be appreciated.

Thanks,
Michael

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



Re: "name" Attribute in tag

2006-09-06 Thread Michael Rush
Struts uses the "name" attribute to repopulate your form on  
submit.  So if you have an action /someAction mapped to a form bean  
named "myForm", it should look like , and thus .  So in your  
JavaScript you can refer to document.myForm.


unless of course you're using xhtml mode, in which case it's id="myForm"...>, so in your javascript you could do  
document.getElementById('myForm');


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



re: Centralized logging software

2006-08-22 Thread Michael Rush

Hello,
This my question off the topic, but was just wondering if you guys  
know of
any open source software that lets me view all my application logs  
deployed
on various servers to be viewable from one place and that should be  
online.

Please share if you know of any such software?

Thanks much
Gnan


Here's one way...

log4j has a number of appenders that would allow you to send logging  
into to a central logging server.


Chainsaw (http://logging.apache.org/log4j/docs/chainsaw.html) is a  
GUI tool that allows you to read multiple log files:


"Rather than rely on a combination of tail/grep/vi or equivalent to  
view/query/trace-through a huge trail of logging events, you can use  
Chainsaw. Chainsaw can read log files formatted in Log4j's XMLLayout,  
receive events from remote locations, read events from a DB, it can  
even work with the JDK 1.4 logging events."


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



Re: Struts and Jsessionid control

2006-08-17 Thread Michael Rush

http://tomcat.apache.org/tomcat-5.0-doc/config/context.html says:

Set to true if you want cookies to be used for session identifier  
communication if supported by the client (this is the default). Set  
to false if you want to disable the use of cookies for session  
identifier communication, and rely only on URL rewriting by the  
application.



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



html:form / styleId in xhtml mode

2006-08-01 Thread Michael Rush
I was just looking into upgrading my app from 1.2.9 to 1.3.4 and have  
run into a snag:


2006-08-01 15:33:49,911 (ERROR) InsertTag.doEndTag - ServletException  
in '/pages/site/entry.jsp': Cannot specify "styleId" when in XHTML  
mode as the HTML "id" attribute is already used to store the bean name
javax.servlet.ServletException: Cannot specify "styleId" when in  
XHTML mode as the HTML "id" attribute is already used to store the  
bean name


FormTag dictates that the styleId attribute cannot be set in the  
html:form tag when using xhtml mode:


   protected void renderName(StringBuffer results)
throws JspException {
if (this.isXhtml()) {
if (getStyleId() == null) {
renderAttribute(results, "id", beanName);
} else {
throw new JspException(messages.getMessage 
("formTag.ignoredId"));

}
} else {
renderAttribute(results, "name", beanName);
renderAttribute(results, "id", getStyleId());
}
}

The question is, why?

Couldn't it just as easily be done as the following?

if (this.isXhtml()) {
if (getStyleId() == null) {
renderAttribute(results, "id", beanName);
} else {
renderAttribute(results, "id", getStyleId());
}
}

We're using quite a bit of AJAX in our application and referring to  
document elements by id quite regularly, not to mention that  
stylesheets reference specific ids as well (i.e. all of our forms  
have a styleId attribute). Going through and renaming all of the ids  
of the forms doesn't seem very attractive. Can someone verify that  
it's necessary?


Thanks,
Michael



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



Re: javascript question

2004-11-03 Thread Michael Rush
Excellent. I figured there was something like this. Your solution 
worked nicely. For any others that may be interested, here's an example 
of what I used:

onclick="this.form['parent.nestedname'][2].checked='true'"
Thanks,
Michael
On Nov 3, 2004, at 10:51 AM, Jason King wrote:
document.formname["parent.nestedname"] will reference an element in 
the form formname which has a period in it's name.
Michael Rush wrote:

I've got a form that's using nested forms, with the following type of 
layout..

[radio] option 1
   [text] value 1
   [text] value 2
[radio] option 2
   [text] value 1
   [text] value 2
[radio] option 3
   [text] value 1
   [text] value 2
Each of the groups is a nested form, so the form element names are in 
the form of nestedform.property. I would like to add an onclick to 
the text fields so that the radio button for that group is selected 
if someone starts entering text in the value1 or value 2 fields. The 
problem is that the field names have a period in them, so javascript 
is thinking there's another object in the hierarchy. Is there a way 
to escape or quote the name of the field? Or another way to identify 
the field?

Thanks,
Michael
-
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]


javascript question

2004-11-03 Thread Michael Rush
I've got a form that's using nested forms, with the following type of 
layout..

[radio] option 1
   [text] value 1
   [text] value 2
[radio] option 2
   [text] value 1
   [text] value 2
[radio] option 3
   [text] value 1
   [text] value 2
Each of the groups is a nested form, so the form element names are in 
the form of nestedform.property. I would like to add an onclick to the 
text fields so that the radio button for that group is selected if 
someone starts entering text in the value1 or value 2 fields. The 
problem is that the field names have a period in them, so javascript is 
thinking there's another object in the hierarchy. Is there a way to 
escape or quote the name of the field? Or another way to identify the 
field?

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


Re: OT: IE loosing session / cookies

2004-08-06 Thread Michael Rush
It's probably related to security settings . More specifically you may 
want to look into deploying a compact privacy policy (P3P).

On Aug 5, 2004, at 7:10 AM, Rosenberg, Leon wrote:
Hi,

A bit off-topic, but maybe you have had this too...

We have an application running with struts on tomcat 5 in an 
application
running with xslt on tomcat 3 in a frame.

The problem is, that explorer doesn't send the jsession cookie to the
embedded application (we tcpdumped this).

The embedded application is running under different domain, it works
fine with mozilla and firefox.

Does anybody know anything about this problem?

Regards
Leon

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


sharing images across modules

2004-08-04 Thread Michael Rush
I'd like to use some common images across modules. I've found that I 
can accomplish what I need by using:

   "/>
Originally I was trying to accomplish this using the html:img tag, but 
the module attribute is ignored in this case:

   
Does anyone know why the latter doesn't work? Is it possible that it 
will work in the future?

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


sharing images across modules

2004-08-04 Thread Michael Rush
I'd like to use some common images across modules. I've found that I 
can accomplish what I need by using:

   "/>
Originally I was trying to accomplish this using the html:img tag, but 
the module attribute is ignored in this case:

   
Does anyone know why the latter doesn't work? Is it possible that it 
will work in the future?

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