锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av片一区二区三区,亚洲精品网站在线观看你懂的,国产L精品国产亚洲区久久 http://m.tkk7.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://m.tkk7.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://m.tkk7.com/andyj2ee/archive/2006/02/14/30631.html</guid><wfw:comment>http://m.tkk7.com/andyj2ee/comments/30631.html</wfw:comment><comments>http://m.tkk7.com/andyj2ee/archive/2006/02/14/30631.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/andyj2ee/comments/commentRss/30631.html</wfw:commentRss><trackback:ping>http://m.tkk7.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://m.tkk7.com/andyj2ee/aggbug/30631.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/andyj2ee/" target="_blank">java鍏夌幆</a> 2006-02-14 16:23 <a href="http://m.tkk7.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://m.tkk7.com/andyj2ee/archive/2005/04/04/2837.htmljava鍏夌幆java鍏夌幆Mon, 04 Apr 2005 08:24:00 GMThttp://m.tkk7.com/andyj2ee/archive/2005/04/04/2837.htmlhttp://m.tkk7.com/andyj2ee/comments/2837.htmlhttp://m.tkk7.com/andyj2ee/archive/2005/04/04/2837.html#Feedback0http://m.tkk7.com/andyj2ee/comments/commentRss/2837.htmlhttp://m.tkk7.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://m.tkk7.com/andyj2ee/archive/2005/03/25/2432.htmljava鍏夌幆java鍏夌幆Fri, 25 Mar 2005 03:42:00 GMThttp://m.tkk7.com/andyj2ee/archive/2005/03/25/2432.htmlhttp://m.tkk7.com/andyj2ee/comments/2432.htmlhttp://m.tkk7.com/andyj2ee/archive/2005/03/25/2432.html#Feedback0http://m.tkk7.com/andyj2ee/comments/commentRss/2432.htmlhttp://m.tkk7.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://m.tkk7.com/andyj2ee/archive/2005/03/25/2423.htmljava鍏夌幆java鍏夌幆Fri, 25 Mar 2005 01:43:00 GMThttp://m.tkk7.com/andyj2ee/archive/2005/03/25/2423.htmlhttp://m.tkk7.com/andyj2ee/comments/2423.htmlhttp://m.tkk7.com/andyj2ee/archive/2005/03/25/2423.html#Feedback0http://m.tkk7.com/andyj2ee/comments/commentRss/2423.htmlhttp://m.tkk7.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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 婷婷亚洲综合一区二区| 亚洲色偷偷偷鲁综合| 亚洲成A∨人片在线观看无码| 国产日韩久久免费影院| 大学生高清一级毛片免费| 国产公开免费人成视频| 亚洲日本乱码一区二区在线二产线 | 亚洲码和欧洲码一码二码三码| sss在线观看免费高清| 免费观看男人免费桶女人视频| 亚洲理论片在线观看| 6080午夜一级毛片免费看6080夜福利| 亚洲色偷拍另类无码专区| 亚洲黄片手机免费观看| 免费中文字幕在线观看| 亚洲精品视频免费观看| 亚洲国产成人精品无码久久久久久综合| 亚洲av无码专区国产不乱码| 久久久久无码专区亚洲av| 在线观看亚洲精品专区| 四虎影在线永久免费四虎地址8848aa| 亚洲人片在线观看天堂无码| 成全影视免费观看大全二| 亚洲AV无码专区国产乱码不卡| 日本免费的一级v一片| 国产成人综合亚洲一区| 少妇亚洲免费精品| 亚洲免费无码在线| 亚洲国产综合无码一区 | 美女免费精品高清毛片在线视| 国产成人精品高清免费| 亚洲色精品aⅴ一区区三区| 亚洲av成人一区二区三区在线播放 | 国产精品一区二区三区免费| 亚洲精品制服丝袜四区| 国产麻豆成人传媒免费观看| 亚洲精品国产电影午夜| 免费黄色app网站| 一级**爱片免费视频| 久久国产亚洲精品无码| 国产免费av片在线看|