Subversion Repositories SmartDukaan

Rev

Rev 4632 | Rev 4882 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4632 Rev 4831
Line 168... Line 168...
168
    /**
168
    /**
169
     * 
169
     * 
170
     * @param id
170
     * @param id
171
     */
171
     */
172
    public void setId(String id) {
172
    public void setId(String id) {
173
    	StringTokenizer tokenizer = new StringTokenizer(id,"-");
173
    	String[] tokens = id.split("-");
174
    	while(tokenizer.hasMoreTokens()){
-
 
175
    		this.id = tokenizer.nextToken();
174
    	this.id = tokens[tokens.length - 1];
176
    	}
-
 
177
    	this.productId = Long.parseLong(this.id);
175
    	this.productId = Long.parseLong(this.id);
178
    }
176
    }
179
 
177
 
180
	public Map<String,String> getHtmlSnippets(){
178
	public Map<String,String> getHtmlSnippets(){
181
		System.out.println(" getHtmlSnippets  is called");
179
		System.out.println(" getHtmlSnippets  is called");