Thursday, October 14, 2010

JSP and EJB interaction



The following is a snippet code, demonstrates the JSP to interact with the EJB session bean.





In the JSP in the Java code should be as little as possible.

In the above example, JSP designers have to deal with and understand the mechanism of access to EJB. Place in a Mediator in the compression mechanism on the EJB and the EJB method as a Mediator of the way, you can use in JSP Mediator. Mediator usually prepared by the EJB designer. Mediator can provide additional value, such as attribute caching, etc..

JSP scriptlet code must be minimized. If you want to direct requests for JSP EJB may have to write much code in the JSP, including the try ... catch block to operate other functions.

Using a standard JavaBean as a JSP and EJB server as an intermediary can reduce the Java code in JSP in the number and increase reusability. This must be a JavaBean to access the EJB you coverage (wrapper).

If you use the standard JavaBean, you can use JSP: useBean tag to initialize EJB parameters, such as the server URL and server

Security parameters.

Custom tags can also be an option. However, this requires more than a simple JavaBean wrapper coding.

This must be re-written the code as small as possible and as light as possible to ensure the contents of JSP scripts (light). These are JSP and EJB interaction







Recommended links:



Only store is not Enough



Store goods Without manually



Dell Digital denial distribution Relationship with HP induced breakdown



Manufacturing Integration Trend Manufacturing And EMS Has Approaching



Casino And Gambling Shop



Science - Screen SAVERS Directory



How to end special promotions?



NavInfo SAIC Roewe help promote the car navigation



PICKED Recreation



FLV To IPod



H.264 To AVI



buy jbl bookshelf speakers



Comparison Of CMM And CMMI



Best Astronomy



MTS to MP4



Effective process improvement method must CONTAIN the elements



Sunday, October 10, 2010

Jobs sick industry concerns raised



Beijing on Jan. 15, "Business Week" article pointed out that although Apple's Steve Jobs is sick of the business will function, but no one can replace Steve Jobs on Apple's role.

In 2004, Apple CEO Steve Jobs finished to return to work after pancreatic cancer surgery, when Business Week asked in an interview in his role on how much Apple's problem. He jokes that he is in charge of Apple's porter, and then the serious and said: "Ultimately, Apple needs some cohesion to people together. Otherwise, you only get a lot of fragmented technologies, but could not integrate them."

The question now is, Apple could lose this cohesiveness. January 14, 53, Jobs said he will be suspended until June for medical treatment. He said in a public statement: "My health problems than I originally thought to be more complex." After the news release, Apple's stock immediately plummeted within minutes of 10%.

Investors worry that Jobs may never come back, but lack the Jobs of Apple will certainly not be the original apples. Jobs left Apple in 1985 until 1996, when Apple returned to the company near bankruptcy. Forrester Research analyst James LMcQuivey proposed: "missing the magic of Steve Jobs, Apple going to do?"

For Apple, Jobs has a great role. He is a perfectionist, it is in his leadership, Apple was developing so many elegant and refined products. He is standing in the forefront of mainstream advertising marketing genius. He is a master of speech, always able to attract public attention to Apple's latest product up.

Jobs through the management of regular meetings every Monday to play its far-reaching influence. In the other executives with the help of Apple's everything be decided by him alone, whether to enter new markets, or the latest retail store what color wall brush, micromanager that he will personally make decisions.

For Apple, Steve Jobs may be his greatest value to employees and outside influence. Only Steve Jobs can lead Apple has 32,000 employees in this large enterprise resolutely offensive has new business and re-write the rules of competition in those markets. While the mobile phone industry competitors have launched dozens of products to meet all consumer demand, and he led Apple just introduced a product iPhoee this, but now this phone has been occupied in the smart phone market is large share. He also persuaded AT & T and other wireless carriers to give up on the iPhone, the control of pre-installed software, so Apple have the opportunity to release a new iPhone applications.

In the personal computer business, Jobs and resolutely not the same as other manufacturers with the industry price war, but rather to focus on the quality of products, so Apple just made up profit margins and market share simultaneously good results. Jobs said that this strategy mainly from his use of personal computers for many years of experience gained. He said in an interview: "Look me lucky ah, I, together with the computer industry has grown up. Just emerging in the computer industry, I have done every job, sweeping the board, purchase chips, you can say out work I have done. I use my hands to assemble the computer. "

Apple's Steve Jobs will temporarily to the daily management of the highly respected chief operating officer Tim Cook. Investors peace of mind that while Jobs select the sick, Apple has been doing for the future development of various preparations. But Apple certainly can not rely on existing products to eat a lifetime. Forrester's McQuivey said: "People can not help but think that Apple is still the future to develop innovative products?"







Recommended links:



Golden Abacus settled in Wuhan air "Gold Dealer"



I Think The JSP Problem (on)



RECOMMEND Graphic



Dealers Have To Learn To Make Money, "Pong" Manufacturers That Moneybags



Easy to use Terminal And Telnet Clients



ASF converter



PhotoShop New Tricks: Paintings In Paintings



PS produced with Small fine pixel button



VOB to Zune



Flash5 ActionScript Advanced Programming Guide (8)



VOB to MPG



windows 7 hidden gems



Non-fiction list: set list "fashion" and "elegant"



Experts say too early to LOWER domestic oil prices



Wednesday, September 29, 2010

Fireworks 4.0 Zhezhao Daquan ---- second class to create a bitmap Zhe Zhao



Lesson created bitmap Zhe Zhao

Here we begin creating their own Fireworks Zhezhao image. You can use the level of board or menu command to create Zhe Zhao.

Create a bitmap Zhe Zhao

1. Choose to be Zhezhao object.



2. If the object is a vector object Zhe Zhao, need to convert bitmap graphics. Select the menu Modify -> Convert to Bitmap (Ctrl + Alt + Shift + z)





3. Click the Add Mask lower right corner of the Layers Panel button.



At this time the canvas in edit mode from the original vector into a bitmap editing mode.



4. Use bitmap tools to draw Zhezhao canvas object. (This uses the brush is red.)



Board at the level we saw Zhezhao object display block (mouse pointing) there is a black graphics.



Note: use a different bitmap drawing tools have different methods of Zhe Zhao values. If you use the drawing rectangle, ellipse, erasers and other tools, Zhe Zhao and the choice of the degree of fill color, whereas the use of brushes, pens and other tools, Zhe Zhao extent of the fill color has nothing to do with choice.

5. Complete bitmap Zhe Zhao.









Recommended links:



The Most Beloved Of Five Welfare Workers



OGM To MKV



Windows mpeg to avi dvd conversion



China International Open Source Day, Held In Dalian



Multi-pronged approach TO create pleasant blog header



OGM to MP4



The production of a Three-dimensional characters



FLV to PSP



Make a transparent background with Dreamweaver Flash



Shop Development



IPS detection and Prevention simultaneously



8848 tort compensation of the companies set up 1.16 million and made an apology



brief Audio CD Players



Thursday, September 23, 2010

Good news! Good news! !



Domestic devaluation: "Free Genuine brand" software, which provides the first free site installation (limited to Shanghai within the outer ring) and training, you can register the software installed on the same day genuine serial number; overseas customers via the web and mail access to the original brand software; extremely suitable for small and medium enterprises!






Recommended links:



Servlet's Context And Config



ADO Programming In The Definition Of The Problem Encountered By ATL



EMC Q3 earnings results announced revenue fell 5.3% over the same period



XviD to MP4



Word It



Audio Video Tools Directory



Premier Compilers And INTERPRETERS



10 tips to help you pass the Interview off



Easy Audio Presentation Tools



The BATTLE with Ninetowns of Warcraft account



Create the perfect performance of "culture" [2]



Different Opinions



MKV to Zune



Science - Screen SAVERS Expert



M2TS To MKV



Thursday, September 16, 2010

C # dbparameter few areas need attention



1. Even if the database fields that can have parameters for the air to perform the insert or change, we need to ensure that the non-parameter value for the null, as null when prompted not all aviariables bound, but can be "" (empty string string)

Such as Oracle, there is a table t, t, there is a field varchar2 (10) field c1

Take the value of a text box TextBox1 Insert Field

For example insert into t values (: p1)

OracleParameter op = new OracleParameter ("p1", TextBox1.text); this can not go wrong because the textbox will get an empty string instead of null

But if taking null value as parameter value will be wrong (in fact, the program will reference the variable does not exist error) an error message is not all aviariables bound ~ (many cases of this error, not initialized ah)

As a reference to a class of property is not initialized

銆??OracleParameter op=new OracleParameter("p1",SomeClass.XX)鍏朵腑 XX鏈鍒濆鍖?br />
2. The wrong variable name: sql statement in the declaration of variable argument list is not found in the appropriate bindings

3.not all aviariables bound for this error is because there are redundant variables are not binding. sql statement does not, or spelling errors, and bind the variables in







相关链接:



Using the seven combat the Heart Jakarta Struts



Easy Graphic



South CHINA Sea Hammer Properties Limited



Real Player Iphone 3g



Unlimited access to the latest trick for Gmail account



CEO Online: Yan Huang star CEO Chang on August 15 guest Sina



video format for blackberry



Interview Xoceco Xie SIYU: flat panel TV has been reversed in the Western pattern



Easy Mathematics Education



Infomation File And Disk Management



Convert Avi To 3gp



Call of operations of foreign carriers



MMS can replace SMS?



ps3 OGM



ACCELERATOR with the PP to see potatoes, no buffer Youku



Do for others to do the wedding dress carriers should be out of the "influence" the edge



GOOD ASP And PHP



Wednesday, August 4, 2010

"Valve" it into the new single, Shi Jia shook hands Correlation Between the valve


Recently, China's "Valve" star enterprise - Valve Co., Ltd. Yuhuan jiashi signed Correlation Between ERP. Thus, the good and the Correlation Between the formal official valves together, a total of laying of information to success.

Jia Shi produces bathroom faucet valve, bathroom accessories, brass valves and other products. In recent years, enterprises relying on regional advantages, seize the good opportunities for development of the industry, show a strong momentum of development. Enterprises are mechanical processing industry, production is characterized by many varieties of small batch, the production plan can not respond quickly to market changes and feel more manual management difficult; the existing financial system to account main function, it is difficult to meet the market development. Company hopes to fully enable the enterprise information system to improve the efficiency of enterprise management, improve the overall quality of staff, and offer sales, profit control, copper procurement management, production scheduling, quality management, optimized management.

Correlation Between the valve industry has many successful cases, the entire valve Yuhuan area companies are familiar with plumbing. Moreover, the Correlation Between ERP has good flexibility to support the enterprise features of production management. In addition, the Correlation Between the implementation of the service capacity has also been unanimously approved enterprises. After a rigorous selection, the final Correlation Between overwhelmingly from a number of competitors, a good official partner of valves. I believe, Correlation Between ERP valve in the successful implementation of official good will certainly enhance the overall management level of enterprises and competitiveness. Meanwhile, the successful cooperation of both the valve industry in China will also establish a new information technology model!







Recommended links:



JSF to pass parameters via URL



New ECONOMY Weekly cover story: the role of Angel Zhou Hongyi and more



Ad Blockers comparison



Mkv converter free



Expert Math And Scientific Tools



convert mkv



Interview with B & Q (China) Vice President, Human Resources Director Miss Hu Weiyan



Photoshop To Create Beauty Facial Skin Texture



swf format



Dell's earnings report late three times or face Nasdaq delisting



Picked Games Kids



Interior Design with 3dmax4.0 production (7) Make a wall



Recommend Covert SURVEILLANCE



IC card Reading and writing in PowerBulider



convert mp4 to 3gp free



Sunday, July 25, 2010

On the JSP page Jump and forward the request



JSP page forwards the request collection Jump

1, response.sendRedirect (url)

The request is redirected, the parameters of the original page is not here, that use request.getParameter ("param") returns null

2, forward the request forwarding, refer to the original page request, response objects passed a new page, so this page has the same old request, response object. This request.getParameter ("param") to the corresponding values can be

3, distinguish ServletContext.getRequestDispatcher and ServletRequest.getRequestDispatcher

ServletContext.getRequestDispatcher relative context path must be the absolute path

ServletRequest.getRequestDispatcher may be a relative can also be absolutely

4, attention is this: After using the forward forward to see in the browser address bar shows is not transmitted before forwarding the post. If the test.jsp to good.jsp forward, then the address bar shows test.jsp. This is because the forward was carried out on the server side, the browser did not know, but redirection is carried out in the client, so Use response.sentRedirect ("red.jsp") will be directly directed to red.jsp. And that brings me index.jsp servlet if the request is then carried out forawrd servlet forward to another red.jsp page, but view the results, in the address bar displays the name of the servlet that will only rather than red.jsp, if you want to know the name of the final page to see that only the search code.

reference it:

Server-side to turn the four kinds of methods:

1. ServletContext of getRequestDispatcher ()

2. ServletContext of getNamedDispatcher ()

3. ServletRequest of getRequestDispatcher ()

4. ServletResponse of sendRedirect () to turn.

1.2.3 => forward () 4. SendRedirect ()

Using the forward method because it more efficient. Only way forward can not be used (for example, to turn to a non web application), then use ServletResponse the sendRedirect () method.

Comparison with sendRedirect

Although sendRedirect methods can browse the web browser, redirect to another page, but the two are not the same in principle.

a.: Action is to use server-side, the data output to the buffer mechanism, the previous page is still output to the client before the cancellation of the output data, and then output the data to another Web page, to redirect the browser effect.

Advantages: two pages within the object request can be shared between the variables.

b. sendRedirect: action through the HTTP protocol Header, redirect the browser to issue commands, therefore, does not involve the issue to the server-side buffer.

However, as sendRedirect method acting on the client, so redirect there around the page can not share the variables in the request object.

Solution: response.sendRedirect ("sendRedirect.htm? Name = sparkwu & E-Mail = spark.wu @ cobra-tech.com")







Recommended links:



Photoshop effect of creating non-mainstream MTV



Ninetowns Submitted To The U.S. SEC Annual Report FY08 Net Profit Down 72% Correction



Graphics come from paint in



Foxconn Jumped Reproduction Of A Female Employee Jumped 7th Floor



News SERVERS Specialist



Correct UNDERSTANDING of the importance of examinations and the usual accumulation of [2]



Compare Themes And Wallpaper



Response To Illegal Cash Payments, Said Bao Claimed "seriously Inaccurate Information"



Dvd Audio Ripper



Rm To Avi



CHINA IPTV-What is the short board?



convert 3GP to mp4



Games Arcade evaluation



BPR Get To The Root



Aac files



Comprehensive understanding of redirection 301