cvs commit: jakarta-struts/src/share/org/apache/struts/validator Resources.java
rleland 2002/11/16 00:23:09 Modified:src/share/org/apache/struts/validator Resources.java Log: Complete JavaDoc Revision ChangesPath 1.6 +10 -6 jakarta-struts/src/share/org/apache/struts/validator/Resources.java Index: Resources.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/validator/Resources.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Resources.java12 Nov 2002 03:56:10 - 1.5 +++ Resources.java16 Nov 2002 08:23:09 - 1.6 @@ -292,11 +292,15 @@ * * @param key The key that the validation rules are under * (the form elements name attribute). -* @param bean +*@param bean The bean validation is being performed on. * @param application servlet context * @param request The current request object. * @param errors The object any errors will be stored in. -* @param page +* @param pageThis in conjunction with the page property +* of a codeFieldcode can control the processing +*of fields. If the field's page is less than or equal +*to this page value, it will be processed. + */ public static Validator initValidator(String key, Object bean, ServletContext application, HttpServletRequest request, -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 14615] New: - NL support for properties in Hebrew
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14615. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14615 NL support for properties in Hebrew Summary: NL support for properties in Hebrew Product: Struts Version: 1.0 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Controller AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When you run an application that contains a FormBean with Hebrew properties and a JSP that refers to Hebrew properties, Struts is unable to find the appropriate set/get methods for the property, although they exist in the FormBean. Trying to run a simple application without Struts (just regular useBean) but with Hebrew properties worked. I assume the same problem will appear with any non-English properties. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 14615] - NL support for properties in Hebrew
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14615. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14615 NL support for properties in Hebrew --- Additional Comments From [EMAIL PROTECTED] 2002-11-16 16:35 --- I know you sent those characters in the original post on the users list, but could you add them here so we might have a better look? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 5518] - Convert HTML Tags to be XHTML-compliant when html:html xhtml=true
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5518. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5518 Convert HTML Tags to be XHTML-compliant when html:html xhtml=true --- Additional Comments From [EMAIL PROTECTED] 2002-11-16 23:48 --- HTML tags now render as xhtml when the page scoped attribute Globals.XHTML_KEY is true. The html:html xhtml=true and html:xhtml/ (new) tags sets this value to true. A dynamically included jsp used in a jsp:include... should use the new xhtml tag. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 13854] - html:form... tag doesn't support focus with control arrays
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13854. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13854 html:form... tag doesn't support focus with control arrays [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-11-17 01:00 --- I tested the fix in IE 6, Netscape 4.77, and Opera 6.05 on a radio button array and text box array. This also seemed to fix Opera's problem of never focusing on single elements. In the future please provide a patch for the fix as this makes our lives considerably easier :-). Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 14331] - Please add new german book about Struts to the news-section
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14331. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14331 Please add new german book about Struts to the news-section [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||LATER --- Additional Comments From [EMAIL PROTECTED] 2002-11-17 01:08 --- Please re-open this enhancement when the book is published and available for sale. We'll post it to the news section when people can actually get it :-). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 14615] - NL support for properties in Hebrew
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14615. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14615 NL support for properties in Hebrew [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2002-11-17 01:10 --- *** This bug has been marked as a duplicate of 14252 *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 14252] - NL support for property names
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14252. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14252 NL support for property names [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2002-11-17 01:10 --- *** Bug 14615 has been marked as a duplicate of this bug. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 10007] - ErrorsTag renders error header and footer even if they are null
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10007. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10007 ErrorsTag renders error header and footer even if they are null [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-11-17 01:22 --- This is already fixed in any current nightly build. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html BaseTag.java
dgraham 2002/11/16 17:48:33 Modified:doc/userGuide struts-html.xml src/share/org/apache/struts/taglib/html BaseTag.java Log: Added server attribute for BaseTag. PR: #5303 Revision ChangesPath 1.37 +8 -0 jakarta-struts/doc/userGuide/struts-html.xml Index: struts-html.xml === RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-html.xml,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- struts-html.xml 16 Nov 2002 07:28:01 - 1.36 +++ struts-html.xml 17 Nov 2002 01:48:32 - 1.37 @@ -61,6 +61,14 @@ pThe window target for this base reference./p /info /attribute + attribute +nameserver/name +requiredfalse/required +rtexprvaluetrue/rtexprvalue +info + pThe server name to use instead of request.getServerName()./p +/info + /attribute /tag 1.11 +34 -6 jakarta-struts/src/share/org/apache/struts/taglib/html/BaseTag.java Index: BaseTag.java === RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseTag.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- BaseTag.java 16 Nov 2002 06:05:22 - 1.10 +++ BaseTag.java 17 Nov 2002 01:48:33 - 1.11 @@ -93,6 +93,11 @@ MessageResources.getMessageResources(Constants.Package + .LocalStrings); /** + * The server name to use instead of request.getServerName(). + */ +protected String server = null; + +/** * The target window for this base reference. */ protected String target = null; @@ -112,10 +117,16 @@ */ public int doStartTag() throws JspException { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); +String serverName = request.getServerName(); StringBuffer buf = new StringBuffer(base href=\); buf.append(request.getScheme()); buf.append(://); -buf.append(request.getServerName()); + +if (this.server != null) { +serverName = this.server; +} + +buf.append(serverName); if (http.equals(request.getScheme()) (80 == request.getServerPort())) { ; } else if (https.equals(request.getScheme()) (443 == request.getServerPort())) { @@ -134,7 +145,7 @@ String xhtml = (String) this.pageContext.getAttribute(Globals.XHTML_KEY, this.pageContext.PAGE_SCOPE); - + if (true.equalsIgnoreCase(xhtml)) { buf.append( /); } else { @@ -150,4 +161,21 @@ } return EVAL_BODY_INCLUDE; } + +/** + * Returns the server. + * @return String + */ +public String getServer() { +return server; +} + +/** + * Sets the server. + * @param server The server to set + */ +public void setServer(String server) { +this.server = server; +} + } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 5303] - BaseTag when there is a web server acting as proxy in front of servlet engine
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5303. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5303 BaseTag when there is a web server acting as proxy in front of servlet engine [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-11-17 01:50 --- BaseTag now accepts a server attribute that will override the server found by request.getServerName(). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Forwards, Absolute URIs and Leading Slash
I was trying to fix http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11021 but got rather confused along the way. The problem seems to be that RequestUtils.forwardURL() always prepends the context path even for absolute urls. The version comments seem to go back and forth on how to behave with a leading / in the url. Sometimes no leading / means don't prepend the context, then that decision was reversed. Maybe I'm not the right person to fix this but we need to decide how to determine if the user has entered an absolute url like http://www.google.com. Thanks, Dave _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]