锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久av电影,青青草久久爱,青青草av免费在线观看http://www.aygfsteel.com/andyj2ee/category/853.htmljava tec skyzh-cnTue, 27 Feb 2007 11:57:47 GMTTue, 27 Feb 2007 11:57:47 GMT60鍒╃敤scomp 鐢熸垚鎸囧畾package java jar 鍖呭懡浠?/title><link>http://www.aygfsteel.com/andyj2ee/archive/2006/02/14/30631.html</link><dc:creator>java鍏夌幆</dc:creator><author>java鍏夌幆</author><pubDate>Tue, 14 Feb 2006 08:23:00 GMT</pubDate><guid>http://www.aygfsteel.com/andyj2ee/archive/2006/02/14/30631.html</guid><wfw:comment>http://www.aygfsteel.com/andyj2ee/comments/30631.html</wfw:comment><comments>http://www.aygfsteel.com/andyj2ee/archive/2006/02/14/30631.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/andyj2ee/comments/commentRss/30631.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/andyj2ee/services/trackbacks/30631.html</trackback:ping><description><![CDATA[scomp -out weather.jar weather_latlong.xsd  myconfig.xsdconfig<BR><BR>Compiles a schema into XML Bean classes and metadata.<BR>Usage: scomp [opts] [dirs]* [schema.xsd]* [service.wsdl]* [config.xsdconfig]*<BR>Options include:<BR>    -cp [a;b;c] - classpath<BR>    -d [dir] - target binary directory for .class and .xsb files<BR>    -src [dir] - target directory for generated .java files<BR>    -srconly - do not compile .java files or jar the output.<BR>    -out [xmltypes.jar] - the name of the output jar<BR>    -dl - permit network downloads for imports and includes (default is off)<BR>    -noupa - do not enforce the unique particle attribution rule<BR>    -nopvr - do not enforce the particle valid (restriction) rule<BR>    -noann - ignore annotations<BR>    -novdoc - do not validate contents of <documentation><BR>    -compiler - path to external java compiler<BR>    -javasource [version] - generate java source compatible for a Java version (1.4 or 1.5)<BR>    -ms - initial memory for external java compiler (default '8m')<BR>    -mx - maximum memory for external java compiler (default '256m')<BR>    -debug - compile with debug symbols<BR>    -quiet - print fewer informational messages<BR>    -verbose - print more informational messages<BR>    -version - prints version information<BR>    -license - prints license information<BR>    -allowmdef "[ns] [ns] [ns]" - ignores multiple defs in given namespaces (use ##local for no-namespace)<BR>    -catalog [file] -  catalog file for org.apache.xml.resolver.tools.CatalogResolver. (Note: needs resolver.jar from <A >http://xml.apache</A><BR>.org/commons/components/resolver/index.html)<BR><img src ="http://www.aygfsteel.com/andyj2ee/aggbug/30631.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/andyj2ee/" target="_blank">java鍏夌幆</a> 2006-02-14 16:23 <a href="http://www.aygfsteel.com/andyj2ee/archive/2006/02/14/30631.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Avoiding "Do you want to resend information" browser messageshttp://www.aygfsteel.com/andyj2ee/archive/2005/04/04/2837.htmljava鍏夌幆java鍏夌幆Mon, 04 Apr 2005 08:24:00 GMThttp://www.aygfsteel.com/andyj2ee/archive/2005/04/04/2837.htmlhttp://www.aygfsteel.com/andyj2ee/comments/2837.htmlhttp://www.aygfsteel.com/andyj2ee/archive/2005/04/04/2837.html#Feedback0http://www.aygfsteel.com/andyj2ee/comments/commentRss/2837.htmlhttp://www.aygfsteel.com/andyj2ee/services/trackbacks/2837.html This might be a minor thing but significantly improves the user experience. The problem usually happens when the update action forwards to the view action. Instead of doing a redirect. This means the user sees /editPerson.action in the address field of the browser. But he is really looking at /viewPerson.action. This means that if he presses reload he will resubmit the data. It also means the user can navigate back to the /editPerson.action by using the back and forward buttons or the browser history. 

To avoid this you can use the PRG (Post, Redirect and Get) Pattern. It can be summarized as follows: 

Never show pages in response to POST
Always load pages using GET
Navigate from POST to GET using REDIRECT

Using the PRG approach removes this possibility by never showing the /editPerson.action to the user. This means he cannot navigate back to the page in any way. In this case it means a redirect between the editPerson action (update action) and the viewPerson action (view action).

It is easily implemented in Webwork by using the redirect result type. The final mapping of editPerson and viewPerson looks like this.
<action name="editPerson" class="example.EditPersonAction">
   
<result name="success" type="redirect">
       
<param name="location">/viewPerson.action?id=${userId}</param>
       
<param name="parse">true</param>
   
</result>
   
<result name="invalid.token">/duplicate_post.vm</result>
   
<interceptor-ref name="defaultStack"/>
   
<interceptor-ref name="token"/>
</action>

<action name="viewPerson" class="example.ViewPersonAction">
   
<result name="success">/view_person.vm</result>
   
<interceptor-ref name="defaultStack"/>
</action>
One thing to notice is the OGNL expression in the location (/viewPerson.action?id=${userId}) This means Webwork will evaluate the expression at runtime and replace ${userId}. In this case it is taken directly from a request parameter.

In Struts you would have to manually code the redirect as far as I know.



java鍏夌幆 2005-04-04 16:24 鍙戣〃璇勮
]]>
Preventing Duplicate Logins with Acegi Security http://www.aygfsteel.com/andyj2ee/archive/2005/03/25/2432.htmljava鍏夌幆java鍏夌幆Fri, 25 Mar 2005 03:42:00 GMThttp://www.aygfsteel.com/andyj2ee/archive/2005/03/25/2432.htmlhttp://www.aygfsteel.com/andyj2ee/comments/2432.htmlhttp://www.aygfsteel.com/andyj2ee/archive/2005/03/25/2432.html#Feedback0http://www.aygfsteel.com/andyj2ee/comments/commentRss/2432.htmlhttp://www.aygfsteel.com/andyj2ee/services/trackbacks/2432.htmlhow to prevent duplicate logins. No code needed, just some configuration changes. Nice!

Update: I tried this on AppFuse and it does work, but I don't like the default implemementation. If a user is already logged in, you can't log in with that same user until the initial session times out. I'd prefer the first session gets invalidated when the second login is made. What's your preference?

java鍏夌幆 2005-03-25 11:42 鍙戣〃璇勮
]]>
Developing Test-Driven Web Applications with Spring and Hibernatehttp://www.aygfsteel.com/andyj2ee/archive/2005/03/25/2423.htmljava鍏夌幆java鍏夌幆Fri, 25 Mar 2005 01:43:00 GMThttp://www.aygfsteel.com/andyj2ee/archive/2005/03/25/2423.htmlhttp://www.aygfsteel.com/andyj2ee/comments/2423.htmlhttp://www.aygfsteel.com/andyj2ee/archive/2005/03/25/2423.html#Feedback0http://www.aygfsteel.com/andyj2ee/comments/commentRss/2423.htmlhttp://www.aygfsteel.com/andyj2ee/services/trackbacks/2423.html One of the hardest parts about J2EE development is getting started. There is an immense amount of open source tools for web app development. Making a decision on which technologies to use can be tough--actually beginning to use them can be even more difficult.

Once you've decided to use Struts and Hibernate, how do you go about implementing them? If you look on the Hibernate site or the Struts site, you'll probably have a hard time finding any information on integrating the two. What if you want to throw Spring into the mix? For developers, one of the best ways to learn is by viewing sample apps and tutorials that explain how to extend those applications. In order to learn (and remember) how to integrate open source technologies such as Hibernate, Spring, Struts, and Ant/XDoclet, Raible created AppFuse.

The beauty of AppFuse is you can actually get started with Hibernate, Spring, and Struts without even knowing much about them. Using test-driven development, AppFuse and its tutorials will show you how to develop a J2EE web application quickly and efficiently.



java鍏夌幆 2005-03-25 09:43 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 彭阳县| 观塘区| 手机| 松潘县| 偃师市| 博爱县| 柳河县| 海阳市| 方正县| 铜山县| 邳州市| 类乌齐县| 永修县| 缙云县| 合水县| 江源县| 会理县| 延寿县| 桐柏县| 古浪县| 如皋市| 德昌县| 称多县| 南平市| 泸州市| 台中县| 乾安县| 普陀区| 宜章县| 阿坝县| 大理市| 体育| 石嘴山市| 辛集市| 灵武市| 常宁市| 新邵县| 准格尔旗| 晋州市| 绿春县| 肇庆市|